/* ==========================================================================
   PROMPTRY - AI PROMPT PAD - MAIN STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Outfit:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');
@import url(../css/auth.css);

:root {
  /* Brand Colors */
  --primary-blue: #1866DC;

  /* Tag Colors */
  --tag-gpt4-bg: #09E4C61A;
  --tag-gpt4-text: #09E4C6;
  --tag-gemini-bg: #4D96FF1A;
  --tag-gemini-text: #4D96FF;
  --tag-midjourney-bg: #B494FF1A;
  --tag-midjourney-text: #B494FF;
  --tag-claude-bg: #F64DFF1A;
  --tag-claude-text: #F64DFF;

  /* Neutral Theme Tokens (Light Mode) */
  --bg-page: #E2E8F0;
  /* Light desk canvas */
  --bg-app: #F6F7F9;
  --bg-sidebar: #ffffff;
  --bg-htop: linear-gradient(180deg, #FFFFFF -66.67%, #E7B22A 100%);
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #010101;

  /* Main Glass Card Tokens */
  --main-card-bg: #F6F7F9;
  --main-card-border: #0101011A;
  --main-card-shadow: 0px 4px 14px 0px #00000014;
  --main-card-backdrop: none;

  /* Lined Paper Lines */
  --line-paper: rgba(226, 232, 240, 0.75);

  /* Scrollbar Theme Tokens */
  --scrollbar-track: transparent;
  --scrollbar-thumb: rgba(24, 102, 220, 0.35);
  --scrollbar-thumb-hover: #1866DC;

  /* Fonts */
  --font-sans: "Inter", sans-serif;
}

/* Light Mode Tokens */
[data-theme="light"] {
  --bg-page: #E2E8F0;
  --bg-app: #F6F7F9;
  --bg-sidebar: #ffffff;
  --bg-htop: linear-gradient(180deg, #FFFFFF -66.67%, #E7B22A 100%);
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #010101;

  /* Main Glass Card Tokens */
  --main-card-bg: #F6F7F9;
  --main-card-border: #0101011A;
  --main-card-shadow: 0px 4px 14px 0px #00000014;
  --main-card-backdrop: none;

  /* Lined Paper Lines */
  --line-paper: rgba(226, 232, 240, 0.75);

  /* Scrollbar Theme Tokens */
  --scrollbar-track: transparent;
  --scrollbar-thumb: rgba(24, 102, 220, 0.35);
  --scrollbar-thumb-hover: #1866DC;
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-page: #1E1E1E;
  --bg-app: #161F35;
  --bg-sidebar: #0F172A;
  --bg-htop: #1866DC;
  --bg-card: #162032;
  --border-color: #1e293b;
  --text-main: #ffffff;
  --line-paper: rgba(255, 255, 255, 0.04);

  /* Main Glass Card Tokens */
  --main-card-bg: linear-gradient(88.3deg, rgba(255, 255, 255, 0.0636) 0%, rgba(255, 255, 255, 0.0528) 99.66%);
  --main-card-border: #FFFFFF1A;
  --main-card-shadow: none;
  --main-card-backdrop: blur(16.84000015258789px);

  /* Scrollbar Theme Tokens */
  --scrollbar-track: transparent;
  --scrollbar-thumb: rgba(24, 102, 220, 0.55);
  --scrollbar-thumb-hover: #3b82f6;
}

/* ==========================================================================
   GLOBAL THEME SCROLLBAR STYLES (Applies across all pages & containers)
   ========================================================================== */

/* Firefox Global Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Webkit Global Scrollbars (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
  transition: background 0.2s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

dl,
ol,
ul {
  margin: 0;
  padding: 0;
}

a:hover {
  color: #000000;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Outer Wrapper for Notebook Canvas */
.app-wrapper {
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 3D Spiral Notebook Ring Binding Container */
.notebook-container {
  display: flex;
  flex: 1;
  width: 100%;
  height: 100%;
  max-height: 100%;
  background-color: var(--bg-app);
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Spiral Ring Binding Column - Fixed 30px gap & SVG styling */
.spiral-binding {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 0;
  gap: 30px;
  /* Exact 30px space between each spiral SVG */
  pointer-events: none;
  overflow: hidden;
}



.spiral-svg {
  width: 38px;
  height: 15px;
  margin-left: -6px;
  flex-shrink: 0;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.25));
}

/* Sidebar Layout */
.app-sidebar {
  width: 320px;
  min-width: 320px;
  height: 100%;
  background-color: var(--bg-sidebar);
  padding: 24px 20px 24px 58px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

/* Collapsed Mini-Sidebar Mode (Triggered by Hamburger!) */
.notebook-container.collapsed .app-sidebar {
  width: 110px;
  min-width: 110px;
  padding: 24px 12px 24px 40px;
  align-items: center;
}

.notebook-container.collapsed .brand-text,
.notebook-container.collapsed .brand-subtitle,
.notebook-container.collapsed .nav-section-title,
.notebook-container.collapsed .nav-text,
.notebook-container.collapsed .btn-text {
  display: none;
}

.notebook-container.collapsed .sidebar-brand {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.notebook-container.collapsed .nav-section {
  width: 100%;
  margin-bottom: 20px;
}

.notebook-container.collapsed .nav-list {
  align-items: center;
}

.notebook-container.collapsed .nav-item {
  width: 100%;
  display: flex;
  justify-content: center;
}

.notebook-container.collapsed .nav-item a,
.notebook-container.collapsed .nav-item button {
  justify-content: center;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.notebook-container.collapsed .btn-subscribe {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  margin: 0 auto;
}

.sidebar-brand {
  margin-bottom: 28px;
  transition: margin 0.3s ease;
}

.sidebar-close-btn {
  display: none;
}

/* .brand-logo-link {
  display: flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  justify-content: center;
} */

.logo-img {
  display: none;
  height: auto;
  margin: auto;
  transition: opacity 0.2s ease;
}

/* Light Mode: Expanded (full logo-light), Collapsed (small logo-light-small) */
.logo-light {
  display: block;
  max-width: 156px;
}

.notebook-container.collapsed .logo-light {
  display: none;
}

.notebook-container.collapsed .logo-light-small {
  display: block;
  width: 38px;
}

/* Light Mode ([data-theme="light"]): Expanded (full logo-light), Collapsed (small logo-light-small) */
[data-theme="light"] .notebook-container .logo-dark,
[data-theme="light"] .notebook-container .logo-dark-small {
  display: none;
}

[data-theme="light"] .logo-light {
  display: block;
  max-width: 156px;
}

[data-theme="light"] .notebook-container.collapsed .logo-light {
  display: none;
}

[data-theme="light"] .notebook-container.collapsed .logo-light-small {
  display: block;
  width: 38px;
}

/* Dark Mode ([data-theme="dark"]): Expanded (full logo-dark), Collapsed (small logo-dark-small) */
[data-theme="dark"] .notebook-container .logo-light,
[data-theme="dark"] .notebook-container .logo-light-small {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
  max-width: 156px;
}

[data-theme="dark"] .notebook-container.collapsed .logo-dark {
  display: none;
}

[data-theme="dark"] .notebook-container.collapsed .logo-dark-small {
  display: block;
  width: 38px;
}

/* Menu Sections */
.nav-section {
  margin-bottom: 24px;
}

.nav-section-title {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 19%;
  color: var(--text-main);
  margin-bottom: 12px;
  transition: opacity 0.2s ease;
  opacity: 0.6;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item a,
.nav-item button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.6;
}

.nav-item a:hover,
.nav-item button:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}

[data-theme="dark"] .nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-item.active a {
  background: linear-gradient(90deg, #1E79E5 0%, #FFFFFF 100%);
  color: #ffffff;
  opacity: 1;
}

[data-theme="dark"] .nav-item.active a {
  background: linear-gradient(90deg, rgba(30, 121, 229, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);

}

.nav-item.active a svg path {
  fill: #ffffff;
}

/* Subscribe Button */
.btn-subscribe {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 16px 16px;
  background:
    radial-gradient(63.11% 63.11% at 31.97% 19.67%,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0) 69.79%),
    #2F6EFF !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: -3px -4px 7px 0px #FFFFFF26 inset;
  transition: all 0.3s ease;
}

.btn-subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(25, 100, 242, 0.55);
}

/* Main Layout Area */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-app);
  overflow: hidden;
  position: relative;
}

/* Top Banner Header */
.top-banner {
  background: var(--bg-htop);
  height: 56px;
  min-height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 99;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #010101;
  transition: background-color 0.2s, transform 0.2s;
}

[data-theme="dark"] .hamburger-btn {
  color: #ffffff;
}

.hamburger-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  border: 1.36px solid #0101014D;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
  background-color: transparent;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.theme-toggle-btn svg path {
  fill: #010101;
}

[data-theme="dark"] .theme-toggle-btn svg path {
  fill: #ffffff;
}

/* User Profile Trigger & Dropdown */
.profile-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 9px;
  color: #ffffff;
  transition: background-color 0.2s;
  border: 1.36px solid #0101014D;
  height: 44px;
}

.profile-trigger:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .profile-trigger,
[data-theme="dark"] .theme-toggle-btn {
  border: 1.36px solid #FFFFFF4D;
}

[data-theme="dark"] .profile-trigger svg {
  stroke: #ffffff;
}

.avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 170px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
  animation: fadeIn 0.15s ease-out;
}

.profile-dropdown.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.dropdown-item:hover,
.dropdown-item.active {
  background-color: #eff6ff;
  color: var(--primary-blue);
  font-weight: 600;
}

[data-theme="dark"] .profile-dropdown {
  background: var(--bg-app);
  border: 1px solid var(--main-card-border);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .dropdown-item {
  color: #ffffff;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item.active {
  background: var(--main-card-bg);
  color: #fff;
  font-weight: 600;
  border: 1px solid var(--main-card-border);
}

/* Main Pad Content Area - Internal Scrolling */
.pad-content {
  flex: 1;
  padding: 28px 30px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  background-image: linear-gradient(to bottom, transparent 27px, var(--line-paper) 28px);
  background-size: 100% 28px;
  background-attachment: local;
  position: relative;
}

.pad-content::-webkit-scrollbar {
  width: 7px;
}

.pad-content::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 10px;
}

.pad-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

/* Top Welcome & Search Row */
.content-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.welcome-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 280px;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-main);
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border-radius: 9px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.search-input::placeholder {
  color: var(--text-main);
  opacity: 0.4;
  font-size: 16px;
  font-weight: 500;
}

.search-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(29, 107, 243, 0.15);
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(29, 107, 243, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  border-bottom: 2px solid #E7B22A;
}

.btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 107, 243, 0.35);
}

[data-theme="dark"] .btn-add {
  border-bottom: 2px solid #ffffff;
}

/* Category Filter Tabs Bar */
.filter-container {
  display: flex;
  justify-content: center;
  max-width: 454px;
  margin: 0 auto;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.filter-pills {
  display: flex;
  align-items: center;
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border-radius: 16px;
  padding: 7px;
  width: 100%;
  gap: 10px;
}

.filter-pill {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-main);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--main-card-border);
  width: 100%;
}

.filter-pill span {
  opacity: 0.3;
}

.filter-pill.active {
  background-color: var(--primary-blue);
  color: #ffffff;
  font-weight: 600;
  border-color: transparent;
}

.filter-pill.active span {
  opacity: 1;
}

.filter-pill:not(.active):hover span {
  color: var(--text-main);
}

/* Responsive Cards Grid & Sections */
.section-block {
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.section-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;

}

.section-header-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);

}

.section-header-title svg {
  color: #7C8A99;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 20px;
}

/* Card Styling */
.note-card {
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  z-index: 1;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

[data-theme="dark"] .note-card:hover {
  border-color: #475569;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.4);
}

.note-card.detail-note-card {
  cursor: default !important;
}

.note-card.detail-note-card:hover {
  transform: none !important;
  box-shadow: var(--main-card-shadow) !important;
  border-color: var(--main-card-border) !important;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* Model Tag Badges */
.tag-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 15px;
  border-radius: 90px;
  text-transform: uppercase;
}

.tag-gpt4 {
  background-color: var(--tag-gpt4-bg);
  color: var(--tag-gpt4-text);
}

.tag-gemini {
  background-color: var(--tag-gemini-bg);
  color: var(--tag-gemini-text);
}

.tag-midjourney {
  background-color: var(--tag-midjourney-bg);
  color: var(--tag-midjourney-text);
}

.tag-claude {
  background-color: var(--tag-claude-bg);
  color: var(--tag-claude-text);
}


/* Star Button */
.star-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  font-size: 18px;
  transition: color 0.2s, transform 0.2s;
  padding: 2px;
  opacity: 0.3;
}

.star-btn:hover,
.star-btn.active {
  color: #E7B22A;
  opacity: 1;
}

/* Card Main Body */
.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-snippet {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.55;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.5;
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--main-card-border);
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
  opacity: 0.5;
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code_note {
  display: flex;
  align-items: center;
  gap: 3px;
}

.share-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  transition: color 0.2s;
  opacity: 0.5;
}

.share-btn:hover {
  color: var(--primary-blue);
  opacity: 1;
}

/* Modal Overlay & Bootstrap Integration */
.modal-content {
  background: var(--bg-app);
  border: 1px solid var(--main-card-border);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  color: var(--text-main);
  outline: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  margin: auto;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 16px;
  position: relative;
}

.modal-content .btn-close {
  position: absolute;
  right: 30px;
  top: 30px;
  z-index: 2;
}

.modal {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
  padding: 30px;
}

/* Select Option Modal */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 24px;
  border-bottom: none;
  padding: 0;
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 24px;
}

.modal-close,
.modal-header .modal-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-main);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: opacity 0.2s;
  opacity: 0.6;
}

.modal-close:hover,
.modal-header .modal-close:hover {
  opacity: 1;
  color: var(--text-main);
}


.option-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 16px;
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

button.option-card {
  font-family: inherit;
  width: 100%;
}

button.option-card:focus,
button.option-card:focus-visible {
  outline: none;
}

.option-card[disabled],
.option-card:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.option-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(29, 107, 243, 0.15);
}

.option-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.25s ease;
}

.option-card:hover .option-icon-circle {
  transform: scale(1.08);
}

.option-label {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-main);
  opacity: 0.8;
}


.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  opacity: 0.6;
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-app);
  border: 1px solid 1px solid var(--main-card-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.btn-cancel {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid 1px solid var(--main-card-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  opacity: 0.6;
  cursor: pointer;
}

.btn-save {
  padding: 10px 20px;
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Empty State Container */
.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
}

.empty-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 460px;
}

.empty-state-svg-wrapper {
  margin-bottom: 20px;
}

.empty-state-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.empty-state-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-main);
  opacity: 0.6;
  line-height: 1.5;
  margin-bottom: 28px;
}

.empty-state-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: var(--primary-blue);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(24, 102, 220, 0.4);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: var(--main-card-bg);
  color: var(--text-main);
  font-size: 16px;
  font-weight: 600;
  border-radius: 22px;
  cursor: pointer;
  box-shadow: var(--main-card-shadow);
  transition: all 0.2s ease;
  border: none;
  border-bottom: 1px solid var(--main-card-border);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
}

.btn-secondary:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.dark-empty-icon {
  display: none;
}

[data-theme="dark"] .dark-empty-icon {
  display: block;
}

[data-theme="dark"] .light-empty-icon {
  display: none;
}

/* ─────────────────────────────────────────────────────────────
   CODE NOTE - DETAIL & EDIT VIEWS & DELETE CONFIRMATION POPUP
   ───────────────────────────────────────────────────────────── */

/* View Containers */
.view-container {
  display: block;
  width: 100%;
}


/* Detail & Edit Header */
.page-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  width: 100%;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  color: var(--text-main);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .btn-back {
  background: var(--main-card-bg);
}

.btn-back:hover {
  transform: translateX(-2px);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.page-top-actions {
  display: flex;
  align-items: center;
}

.icon-action-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  opacity: 0.7;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.icon-action-btn:hover {
  opacity: 1;
  color: var(--primary-blue);
  background: var(--main-card-bg);
}

.icon-action-btn.delete-btn:hover {
  color: #ef4444;
}

[data-theme="dark"] .icon-action-btn {
  opacity: 1;
}

.status-pill-saving {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #01010108;
  border: 1px solid var(--main-card-border);
  backdrop-filter: blur(14px);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
  opacity: 0.85;
  transition: all 0.25s ease;
}

[data-theme="dark"] .status-pill-saving {
  background: var(--main-card-bg);
}

.saving-spinner.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Split Layout Grid for Detail & Edit */
.note-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 1;
}


/* Right Panel: Code Output Block */
.code-panel-header {

  display: flex;
  align-items: center;
  justify-content: space-between;
}


.code-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Syntax Highlighted Code Viewer Container */
.code-block-viewer {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  min-height: 420px;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .code-block-viewer {
  background: #ffffff;
  color: #0f172a;
}

.code-block-viewer1 {
  min-height: 286px;
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  color: var(--text-main);
}

[data-theme="dark"] .code-block-viewer1 {
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  color: var(--text-main);
}

/* Code Syntax Colors */
.code-comment {
  color: #16a34a;
  font-weight: 600;
}

.code-keyword {
  color: #d946ef;
  font-weight: 600;
}

.code-function {
  color: #0284c7;
}

.code-variable {
  color: #0284c7;
}

.code-string {
  color: #0f172a;
}

.code-property {
  color: #0284c7;
}

.code-bracket {
  color: #475569;
}

/* Edit View Specific Form Components */



.form-select-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231866DC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.form-select-field option,
.form-select option {
  background-color: #ffffff;
  color: #1e293b;
  padding: 10px;
}

[data-theme="dark"] .form-select-field {
  /* background: #161F35; */
  color: #ffffff;

}

[data-theme="dark"] .form-select-field option,
[data-theme="dark"] .form-select option {
  background-color: #161F35;
  color: #ffffff;
}

.model-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.model-select-wrapper .model-icon-prefix {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.model-select-wrapper .form-select-field {
  padding-left: 44px;
}

/* Rich Text Editor Toolbar Box */
.editor-box {
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--main-card-border);
}

.editor-tool-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.editor-tool-btn:hover {
  opacity: 1;
  background: rgba(24, 102, 220, 0.15);
  color: var(--primary-blue);
}

.form-input-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.editor-textarea,
.editor-content {
  width: 100%;
  min-height: 240px;
  padding: 16px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  font-family: inherit;
  overflow-y: auto;
  font-weight: 500;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
}

.editor-content:empty::before,
.editor-content[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: var(--text-main);
  opacity: 0.45;
  pointer-events: none;
  display: block;
}

.editor-content[placeholder]:empty::before {
  content: attr(placeholder);
  color: var(--text-main);
  opacity: 0.45;
  pointer-events: none;
  display: block;
}

.editor-content[data-empty="true"]::before {
  content: attr(data-placeholder);
  color: var(--text-main);
  opacity: 0.45;
  pointer-events: none;
  display: block;
}

.editor-tool-btn.active {
  background: rgba(24, 102, 220, 0.25);
  color: var(--primary-blue);
  opacity: 1;
}

.editor-textarea::placeholder,
.editor-content::placeholder {
  color: var(--text-main);
  opacity: 0.45;
}

[data-theme="dark"] .form-input-field {
  border-color: transparent;
}

/* ─────────────────────────────────────────────────────────────
   DELETE CODE NOTE CONFIRMATION POPUP
   ───────────────────────────────────────────────────────────── */

.delete-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.delete-icon-wrapper svg {
  color: #f87171;
}

.delete-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 28px;
  max-width: 320px;
}

.delete-modal-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.blue-btn {
  flex: 1;
  padding: 12px 20px;
  background: var(--primary-blue);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid #E7B22A;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.blue-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(24, 102, 220, 0.4);
}

[data-theme="dark"] .blue-btn {
  border-color: #ffffff;
}

.btn-confirm-delete {
  flex: 1;
  padding: 12px 20px;
  background: #01010133;
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  color: var(--text-main);
  font-size: 16px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid #0101011A;
  text-decoration: none;
  text-align: center;
}

.btn-confirm-delete:hover {
  background-color: #dc2626;
  color: #ffffff;
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-confirm-delete {
  background: linear-gradient(88.3deg, rgba(255, 255, 255, 0.0636) 0%, rgba(255, 255, 255, 0.0528) 99.66%);
  border-bottom: 2px solid #FFFFFF1A;
}

.red-pill-btn {
  background: #FF7C7E;

}

/* ─────────────────────────────────────────────────────────────
   REUSABLE UTILITY CLASSES & DETAIL/EDIT COMPONENT EXTENSIONS
   ───────────────────────────────────────────────────────────── */

.editor-tool-btn.btn-italic {
  font-style: italic;
}

.editor-tool-btn.btn-underline {
  text-decoration: underline;
}

.form-group-mb {
  margin-bottom: 20px;
}

.detail-card-content {
  margin-top: 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-card-title-lg {
  font-size: 20px;
}

.detail-card-snippet-full {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
  display: block;
  -webkit-line-clamp: unset;
}

.detail-card-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-split-grid.preview-mode {
  opacity: 0.4;
}

.btn-back,
.icon-action-btn {
  text-decoration: none;
}

.is-hidden {
  display: none;
}


/* ==========================================================================
   Contact Support Page Styles
   ========================================================================== */
.support-wrapper {
  max-width: 410px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

.support-illustration-box {
  position: relative;
  margin: 0 auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-illustration-box img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.contact-dark-img {
  display: none;
}

[data-theme="dark"] .contact-dark-img {
  display: block;
}

[data-theme="dark"] .contact-light-img {
  display: none;
}

.support-header-text {
  margin-bottom: 20px;
}

.support-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.support-subtext {
  font-size: 14px;
  color: var(--text-main);
  opacity: 0.7;
}

.support-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  border-radius: 10px;
  padding: 14PX 14PX;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.support-contact-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.support-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.support-card-value {
  font-size: 14px;
  color: var(--text-main);
  opacity: 0.6;
}

.support-card-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  flex-shrink: 0;
}

/* ==========================================================================
   Suggest a Feature Page Styles
   ========================================================================== */

.form-textarea-field {
  font-family: inherit;
}

.attachments-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.attachment-upload-box {
  width: 80px;
  height: 80px;
  background: var(--main-card-bg);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border: 1.5px dashed var(--main-card-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-blue);
  transition: all 0.2s ease;
}

.attachment-upload-box:hover {
  border-color: var(--primary-blue);
  background: rgba(30, 121, 229, 0.05);
}

.attachment-preview-box {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.attachment-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.attachment-remove-btn:hover {
  background: #ef4444;
}

.submit-row {
  max-width: 428px;
  margin: auto;
  padding-top: 10px;
}

.submit-row .blue-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}



/* ==========================================================================
   Profile Page Styles
   ========================================================================== */


.profile-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border-radius: 16px;
  padding: 20px 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-outline-edit {
  border: 1px solid var(--primary-blue);
  background: #1866DC0F;
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-outline-edit:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

.profile-menu-card {
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border-radius: 16px;
  overflow: hidden;
  padding: 0 20px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--main-card-border);
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: background 0.2s ease;
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .profile-menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.profile-menu-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
}

.profile-menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
}

.profile-menu-item .arrow-next {
  color: var(--primary-blue);
}

.profile-menu-item.danger {
  color: #FF383C;
}

.profile-menu-item.danger .profile-menu-icon {
  color: #FF383C;
}

[data-theme="dark"] .profile-menu-icon {
  color: #fff;
}

[data-theme="dark"] .profile-menu-item.danger {
  color: #FF7C7E;
}

[data-theme="dark"] .profile-menu-item.danger .profile-menu-icon {
  color: #FF7C7E;
}

/* ==========================================================================
   Edit Profile Modal Styles
   ========================================================================== */
.avatar-edit-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.avatar-ring-wrapper {
  position: relative;
  width: 88px;
  height: 88px;
  border: 1px solid var(--primary-blue);
  padding: 3px;
  border-radius: 50%;
}

.avatar-ring-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;

}

.avatar-badge-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #ffffff;
  border: 2px solid #161F35;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-remove-photo {
  background: none;
  border: none;
  color: #FF383C;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn-remove-photo:hover {
  text-decoration: underline;
}

/* ==========================================================================
   PROMPTRY SUBSCRIPTION PAGE & FEEDBACK POPUP MODALS
   ========================================================================== */
.sub-content-container {
  max-width: 778px;
  margin: auto;
}

/* Pro Plan Current Status Card */
.sub-status-card {
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--main-card-shadow);
  transition: all 0.25s ease;
  margin-bottom: 30px;
}

.sub-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sub-plan-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

.sub-plan-renews,
.sub-price-period {
  font-size: 13px;
  color: var(--text-main);
  opacity: 0.6;
  margin: 0;
}

.sub-price-info {
  text-align: right;
}

.sub-price-amount {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-blue);
}



.sub-card-divider {
  height: 2px;
  background: var(--main-card-border);
  margin: 16px 0;
}

.sub-card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-main);
  opacity: 0.6;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.sub-status-value {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-status-value.active {
  color: #22c55e;
}

.sub-status-value.inactive {
  color: #94a3b8;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  display: inline-block;
}

.sub-status-value.inactive .status-dot {
  background-color: #94a3b8;
}

.sub-valid-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* Premium Benefits Section Title */
.sub-section-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.6;
}

/* Benefits Grid Container */
.sub-benefits-card {
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border-radius: 16px;
  padding: 20px 20px;
  box-shadow: var(--main-card-shadow);
  margin-bottom: 30px;
}

.sub-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sub-benefit-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.sub-benefit-desc {
  font-size: 13px;
  color: var(--text-main);
  opacity: 0.6;
  margin: 0;
}


.sub-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.sub-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2C75DF1A;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-action-wrapper {
  max-width: 340px;
  margin: auto;
}

.btn-cancel-subscription {
  background: #FF7C7E1A;
  border-bottom: 2px solid #FF7C7E;
  color: #FF383C;

}

.btn-cancel-subscription:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

[data-theme="dark"] .btn-cancel-subscription {
  border-bottom: 2px solid #FF7C7E;
}

/* ==========================================================================
   UNIFIED SINGLE BOOTSTRAP 5 MODAL CSS
   ========================================================================== */

/* Common Modal Elements */
.modal-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.modal-icon-circle.blue-bg {
  background: rgba(24, 102, 220, 0.12);
  color: var(--primary-blue);
}

.modal-icon-circle.red-bg {
  background: #FF7C7E1A;
  color: #FF7C7E;
}



.modal-desc {
  font-size: 14px;
  color: var(--text-main);
  opacity: 0.7;
  margin-bottom: 20px;
  font-weight: 400;
}

.opt-tag {
  font-weight: 400;

}

/* Emoji Rating Buttons */
.rating-emoji-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  text-align: center;
}

.emoji-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--main-card-border);
  border-radius: 50%;
  padding: 8px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  background: var(--main-card-bg);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  box-shadow: var(--main-card-shadow);
  margin: auto;

}

.emoji-icon {
  font-size: 32px;
  line-height: 1;

}

.emoji-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-main);
  opacity: 0.7;
}

.emoji-btn.active {
  border-color: #1866DC;
  background: rgba(24, 102, 220, 0.08);
}

.emoji-btn.active .emoji-label {
  color: var(--text-main);
  font-weight: 700;
}

/* ==========================================================================
   PROMPTRY LEGAL PAGES (TERMS & PRIVACY POLICY)
   ========================================================================== */

.legal-content-card {
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
}

.legal-content-card p {
  color: var(--text-main);
  opacity: 0.88;
  margin-bottom: 1.1rem;
  line-height: 1.8;
}

.legal-content-card h1,
.legal-content-card h2,
.legal-content-card h3,
.legal-content-card h4,
.legal-content-card h5,
.legal-content-card h6 {
  color: var(--text-main);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.legal-content-card h1 { font-size: 22px; }
.legal-content-card h2 { font-size: 20px; }
.legal-content-card h3 { font-size: 18px; }
.legal-content-card h4 { font-size: 16px; }

.legal-content-card ul,
.legal-content-card ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  padding-left: 1rem;
  color: var(--text-main);
}

.legal-content-card li {
  margin-bottom: 0.5rem;
  opacity: 0.88;
  line-height: 1.7;
}

.legal-content-card a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.legal-content-card a:hover {
  text-decoration: none;
}

.legal-content-card strong,
.legal-content-card b {
  color: var(--text-main);
  font-weight: 600;
}

.legal-heading {
  font-size: 18px;
}

.legal-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 12px 0;
}

.legal-bullet-list {
  margin: 12px 0 20px 30px;
  padding: 0;
  list-style-type: disc;
}

.legal-bullet-list li {
  margin-bottom: 8px;
  opacity: 0.88;
}


/* ================== */
.model-select-wrapper {
  position: relative;
  width: 100%;
}

.model-select-selected {
  min-height: 48px;
  width: 100%;
  padding: 0 14px 0 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
}

.model-icon-prefix,
.model-option-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-icon-prefix svg,
.model-option-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.model-icon-prefix img,
.model-option-icon img,
.model-icon-img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
}

.model-selected-text {
  flex: 1;
}

.model-select-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  color: #0d6efd;
}

.model-select-wrapper.open .model-select-arrow {
  transform: rotate(180deg);
}

.model-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1050;

  display: none;

  background: var(--main-card-bg);
  border: 1px solid var(--main-card-border);
  box-shadow: var(--main-card-shadow);
  backdrop-filter: var(--main-card-backdrop);
  -webkit-backdrop-filter: var(--main-card-backdrop);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  overflow: hidden;

}

.model-select-wrapper.open .model-options {
  display: block;
}

.model-option {
  min-height: 48px;
  padding: 0 14px;

  display: flex;
  align-items: center;
  gap: 10px;

  cursor: pointer;
  color: var(--text-main);
  background: var(--main-card-bg);
}

.model-option:hover {
  background: var(--main-card-bg);
}

.model-option.active {
  background: #0d6efd;
  color: #fff;
}

.model-option.active svg,
.model-option:hover svg {
  color: inherit;
}

/* ==========================================================================
   QUILL EDITOR & CODEMIRROR PROMPTRY INTEGRATION STYLES
   ========================================================================== */

/* Quill Editor Overrides */
.editor-box .ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid var(--main-card-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  font-family: var(--font-sans);
}

.editor-box .ql-toolbar.ql-snow .ql-formats {
  margin-right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-box .ql-toolbar.ql-snow button {
  width: 32px;
  height: 32px;
  padding: 4px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--text-main);
}

.editor-box .ql-toolbar.ql-snow button .ql-stroke {
  stroke: var(--text-main) !important;
  transition: stroke 0.2s ease;
}

.editor-box .ql-toolbar.ql-snow button .ql-fill {
  fill: var(--text-main) !important;
  transition: fill 0.2s ease;
}

.editor-box .ql-toolbar.ql-snow button:hover {
  background: rgba(24, 102, 220, 0.15);
}

.editor-box .ql-toolbar.ql-snow button:hover .ql-stroke {
  stroke: var(--primary-blue) !important;
}

.editor-box .ql-toolbar.ql-snow button:hover .ql-fill {
  fill: var(--primary-blue) !important;
}

.editor-box .ql-toolbar.ql-snow button.ql-active {
  background: rgba(24, 102, 220, 0.25);
}

.editor-box .ql-toolbar.ql-snow button.ql-active .ql-stroke {
  stroke: var(--primary-blue) !important;
}

.editor-box .ql-toolbar.ql-snow button.ql-active .ql-fill {
  fill: var(--primary-blue) !important;
}

.editor-box .ql-container.ql-snow {
  border: none;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-main);
  background: transparent;
}

.editor-box .ql-editor {
  min-height: 240px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  font-weight: 500;
  outline: none;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: pre-wrap !important;
}

.editor-box .ql-editor.ql-blank::before {
  color: var(--text-main);
  opacity: 0.45;
  font-style: normal;
  left: 16px;
  right: 16px;
}

/* CodeMirror Theme Overrides for Promptry (Matching Figma Design & Responsive Wrapping) */
#codeOutputCodeMirror {
  box-shadow: var(--main-card-shadow) !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.CodeMirror {
  height: 530px;
  max-height: 530px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--main-card-bg) !important;
  border: 1px solid var(--main-card-border) !important;
  box-shadow: var(--main-card-shadow) !important;
  backdrop-filter: var(--main-card-backdrop) !important;
  -webkit-backdrop-filter: var(--main-card-backdrop) !important;
  border-radius: 16px;
  color: var(--text-main);
  font-family: 'Fira Code', monospace, var(--font-sans) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  padding: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: break-all !important;
  overflow: hidden !important;
  position: relative;
}

.CodeMirror-scroll {
  height: 100% !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  padding: 16px 20px !important;
  scrollbar-width: thin !important;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track) !important;
}

.CodeMirror-scroll::-webkit-scrollbar {
  display: block !important;
  width: 7px !important;
  height: 7px !important;
}

.CodeMirror-scroll::-webkit-scrollbar-track {
  background: var(--scrollbar-track) !important;
  margin: 12px 0 !important;
}

.CodeMirror-scroll::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb) !important;
  border-radius: 10px !important;
  transition: background 0.2s ease-in-out !important;
}

.CodeMirror-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover) !important;
}

.CodeMirror-sizer {
  min-height: auto !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.CodeMirror-lines,
.CodeMirror-line,
.CodeMirror-line>span,
.CodeMirror-wrap .CodeMirror-line {
  padding: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: break-all !important;
  white-space: pre-wrap !important;
}

.CodeMirror-vscrollbar,
.CodeMirror-hscrollbar,
.CodeMirror-scrollbar-filler {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.CodeMirror-gutters {
  display: none !important;
}

.CodeMirror-cursor {
  border-left: 2px solid var(--primary-blue) !important;
}

.CodeMirror-selected {
  background: rgba(24, 102, 220, 0.25) !important;
}

.CodeMirror-focused .CodeMirror-selected {
  background: rgba(24, 102, 220, 0.35) !important;
}

.CodeMirror-empty.CodeMirror-focused .CodeMirror-placeholder {
  opacity: 0.3;
}

.CodeMirror-placeholder {
  color: var(--text-main) !important;
  opacity: 0.45 !important;
}

/* Figma Syntax Highlighting Tokens */
.CodeMirror .cm-comment {
  color: #16a34a !important;
  font-style: normal;
  font-weight: 600;
}

.CodeMirror .cm-keyword {
  color: #d946ef !important;
  font-weight: 600;
}

.CodeMirror .cm-def {
  color: #0284c7 !important;
  font-weight: 500;
}

.CodeMirror .cm-variable {
  color: #0284c7 !important;
  font-weight: 500;
}

.CodeMirror .cm-variable-2 {
  color: #0284c7 !important;
  font-weight: 500;
}

.CodeMirror .cm-variable-3 {
  color: #0284c7 !important;
  font-weight: 500;
}

.CodeMirror .cm-string,
.CodeMirror .cm-string-2 {
  color: var(--text-main);
}

.CodeMirror .cm-property {
  color: #0284c7 !important;
  font-weight: 500;
}

.CodeMirror .cm-operator {
  color: var(--text-main);
}

.CodeMirror .cm-number {
  color: #0284c7 !important;
}

.CodeMirror .cm-atom {
  color: #d946ef !important;
  font-weight: 600;
}

.CodeMirror .cm-type,
.CodeMirror .cm-builtin {
  color: #d946ef !important;
}

.CodeMirror .cm-tag {
  color: #d946ef !important;
  font-weight: 600;
}

.CodeMirror .cm-attribute {
  color: #0284c7 !important;
}

.CodeMirror .cm-bracket {
  color: var(--text-main);
}

.CodeMirror .cm-punctuation {
  color: var(--text-main);
}

/* ==========================================================================
   JQUERY VALIDATION & FORM ERROR STYLES
   ========================================================================== */

small.text-danger {
  color: #f46a6a !important;
  font-size: 13px;
  margin-top: 6px;
  display: block;
  font-weight: 400;
  line-height: 1.4;
}

.form-input-field.is-invalid {
  border-color: #f46a6a !important;
  box-shadow: 0 0 0 1px rgba(244, 106, 106, 0.25) !important;
}

[data-theme="dark"] .form-input-field.is-invalid {
  border-color: #f46a6a !important;
}

/* ==========================================================================
   PROMPT & CODE NOTE WORD / CHARACTER COUNTER
   ========================================================================== */

.editor-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 16px 12px 16px;
  background: transparent;
  user-select: none;
}

.word-char-counter {
  font-size: 13px;
  font-weight: 500;
  color: #8E9CAE;
  letter-spacing: 0.2px;
  line-height: 1;
}

[data-theme="dark"] .word-char-counter {
  color: #8E9CAE;
}

.word-char-counter.limit-reached {
  color: #f59e0b;
}

/* ==========================================================================
   CUSTOM SUBSCRIPTION POPUP ("Continue in the App")
   ========================================================================== */

.custom-popup.subscription-modal .modal-dialog {
  max-width: 440px;
  margin: 1.75rem auto;
}

.custom-popup.subscription-modal .modal-content {
  position: relative;
  border-radius: 20px;
  padding: 32px 24px 34px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111a28;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65);
}

.custom-popup.subscription-modal .modal-body {
  padding: 0;
}

.custom-popup .popup-close {
  display: none !important;
}

.custom-popup .icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(24, 102, 220, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.custom-popup .icon-circle span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-popup .icon-circle svg {
  /* width: 24px; */
  height: 30px;
}

.custom-popup .modal-text-contant {
  margin-bottom: 22px;
  text-align: center;
}

.custom-popup .popup-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.custom-popup .popup-text {
  font-size: 13.5px;
  color: #8b99ad;
  line-height: 1.5;
  max-width: 350px;
  margin: 0 auto;
}

.custom-popup .qr-code-img {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
}

.custom-popup .qr-inner {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.custom-popup .qr-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #182236;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.custom-popup .qr-box:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 102, 220, 0.4);
}

.custom-popup .qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.custom-popup .qr-inner a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.custom-popup .qr-inner a img {
  height: 40px;
  width: auto;
  max-width: 142px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-popup .qr-inner a:hover img {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Light Theme ([data-theme="light"]) */
[data-theme="light"] .custom-popup.subscription-modal .modal-content {
  background: #ffffff;
  border: 1px solid #eef2f6;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .custom-popup .icon-circle {
  background: #eaf1fb;
}

[data-theme="light"] .custom-popup .popup-title {
  color: #0f172a;
}

[data-theme="light"] .custom-popup .popup-text {
  color: #64748b;
}

[data-theme="light"] .custom-popup .qr-box {
  background: #ffffff;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .custom-popup .qr-box img {
  filter: invert(1);
}

@media (max-width: 440px) {
  .custom-popup.subscription-modal .modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  .custom-popup.subscription-modal .modal-content {
    padding: 24px 16px 26px 16px;
  }
  .custom-popup .qr-code-img {
    gap: 12px;
  }
  .custom-popup .qr-box {
    padding: 10px;
  }
  .custom-popup .qr-inner a img {
    height: 36px;
  }
}
