*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

:root{
  --bg:#020617;
  --card:#0f172a;
  --text:#f8fafc;
  --secondary:#94a3b8;
  --border:#1e293b;
  --primary:#8b5cf6;
  --shadow:0 20px 60px rgba(0,0,0,0.5);
}

body.light{
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#111827;
  --secondary:#475569;
  --border:#dbe4f0;
  --primary:#8b5cf6;
  --shadow:0 20px 60px rgba(0,0,0,0.1);
}

body{
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
  transition:0.3s ease;
}

.bg-animation{
  position:fixed;
  width:100%;
  height:100%;
  background:
  radial-gradient(circle at top left,#8b5cf620,transparent 30%),
  radial-gradient(circle at bottom right,#06b6d420,transparent 30%);
  z-index:-1;
  animation:bgMove 10s infinite alternate;
}

@keyframes bgMove{

  from{
    transform:scale(1);
  }

  to{
    transform:scale(1.1);
  }

}

.app{
  width:100%;
  max-width:1600px;
  margin:auto;
  padding:30px;
  display:grid;
  grid-template-columns:1fr 380px;
  gap:25px;
}

.sidebar,
.preview{
  background:rgba(15,23,42,0.8);
  border:1px solid var(--border);
  backdrop-filter:blur(20px);
  border-radius:30px;
  padding:25px;
  box-shadow:var(--shadow);
  transition:0.3s ease;
}

body.light .sidebar,
body.light .preview{
  background:rgba(255,255,255,0.8);
}

.logo{
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:25px;
}

.logo-icon{
  width:70px;
  height:70px;
  border-radius:22px;
  background:linear-gradient(135deg,#8b5cf6,#06b6d4);
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:24px;
  font-weight:700;
  color:white;
}

.logo h1{
  font-size:28px;
}

.logo p{
  color:var(--secondary);
  margin-top:5px;
}

.tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:20px;
}

.tab{
  flex:1;
  min-width:100px;
  border:none;
  background:var(--card);
  color:var(--text);
  padding:12px;
  border-radius:14px;
  cursor:pointer;
  transition:0.3s ease;
  border:1px solid var(--border);
  font-weight:600;
}

.tab.active{
  background:linear-gradient(135deg,#8b5cf6,#06b6d4);
  color:white;
}

.tab-content{
  display:none;
}

.tab-content.active{
  display:block;
}

textarea,
input,
select{
  width:100%;
  background:var(--card);
  border:1px solid var(--border);
  color:var(--text);
  padding:15px;
  border-radius:18px;
  outline:none;
  margin-bottom:15px;
  transition:0.3s ease;
}

textarea:focus,
input:focus,
select:focus{
  border-color:#8b5cf6;
  box-shadow:0 0 0 4px rgba(139,92,246,0.2);
}

textarea{
  min-height:140px;
  resize:none;
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
}

label{
  display:block;
  margin-bottom:10px;
  font-size:14px;
  color:var(--secondary);
}

.button-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:20px;
}

button{
  border:none;
  cursor:pointer;
  transition:0.3s ease;
}

.button-grid button,
#batchBtn,
#clearHistoryBtn{
  background:linear-gradient(135deg,#8b5cf6,#06b6d4);
  color:white;
  padding:14px;
  border-radius:16px;
  font-weight:600;
}

button:hover{
  transform:translateY(-2px);
}

.preview-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.stats{
  display:flex;
  gap:15px;
  color:var(--secondary);
  font-size:14px;
}

.qr-box{
  min-height:530px;
  background:var(--card);
  border-radius:30px;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:30px;
  overflow:hidden;
  position:relative;
  border:1px solid var(--border);
  transition:0.3s ease;
}

.qr-box svg,
.qr-box canvas,
.qr-box img,
#qrContainer svg,
#qrContainer canvas,
#qrContainer img {
  max-width:100% !important;
  height:auto !important;
}

#qrContainer{
  transition:0.5s;
}

.history{
  margin-top:25px;
}

.history-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
}

.history-item{
  background:var(--card);
  border:1px solid var(--border);
  padding:14px;
  border-radius:16px;
  margin-bottom:10px;
  cursor:pointer;
  word-break:break-all;
  transition:0.3s ease;
}

.history-item:hover{
  border-color:#8b5cf6;
  transform:translateX(5px);
}

.logo-grid{

  display:grid;

  grid-template-columns:repeat(auto-fill, minmax(55px, 1fr));

  gap:12px;

  margin-top:12px;

}



@media(max-width:700px){

  .logo-grid{

    grid-template-columns:repeat(5,1fr);

  }

}


@media(max-width:450px){

  .logo-grid{

    grid-template-columns:repeat(3,1fr);

  }

}


.logo-option{
  width:100%;
  aspect-ratio:1/1;

  object-fit:contain;

  background:rgba(60, 67, 75, 0.636);

  border:2px solid transparent;

  border-radius:14px;

  padding:10px;

  cursor:pointer;

  transition:0.35s ease;

  backdrop-filter:blur(10px);

  box-shadow:
  inset 0 1px 1px rgba(255,255,255,0.05),
  0 8px 20px rgba(0,0,0,0.15);
}


/* DARK MODE */

.logo-option:hover{

  transform:translateY(-4px) scale(1.04);

  border-color:#8b5cf6;

  background:rgba(139,92,246,0.12);

  box-shadow:
  0 0 20px rgba(139,92,246,0.35);

}


.logo-option.active{

  border-color:#8b5cf6;

  background:
  linear-gradient(
    135deg,
    rgba(139,92,246,0.25),
    rgba(6,182,212,0.2)
  );

  box-shadow:
  0 0 25px rgba(139,92,246,0.45);

  transform:scale(1.05);

}

/* LIGHT MODE */

body.light .logo-option{

  background:white;

  border:1px solid #e2e8f0;

  box-shadow:
  0 10px 20px rgba(0,0,0,0.05);

}


body.light .logo-option:hover{

  background:#f8fafc;

  border-color:#8b5cf6;

  box-shadow:
  0 0 20px rgba(139,92,246,0.15);

}


body.light .logo-option.active{

  background:
  linear-gradient(
    135deg,
    #ede9fe,
    #cffafe
  );

  border-color:#8b5cf6;

  box-shadow:
  0 0 25px rgba(139,92,246,0.2);

}
#reader{
  width:100%;
  overflow:hidden;
  border-radius:20px;
}

#scanResult{
  margin-top:15px;
  padding:15px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  word-break:break-all;
  transition:0.3s ease;
}

::-webkit-scrollbar{
  width:8px;
}

::-webkit-scrollbar-thumb{
  background:#8b5cf6;
  border-radius:20px;
}

::-webkit-scrollbar-track{
  background:transparent;
}
/* =========================
   DESKTOP
========================= */

@media(min-width:701px){

  .app{

    grid-template-columns:1fr 380px;

  }

}


/* =========================
   TABLET
========================= */

@media(max-width:700px){

  .app{

    grid-template-columns:1fr;

    padding:18px;

    gap:18px;

  }


  .sidebar,
  .preview{

    padding:20px;

    border-radius:24px;

  }


  /* LOGO */

  .logo{

    gap:12px;

  }


  .logo h1{

    font-size:24px;

  }


  .logo-icon{

    width:60px;

    height:60px;

    font-size:22px;

  }


  /* TABS */

  .tabs{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:10px;

  }


  .tab{

    width:100%;

    min-width:auto;

    font-size:14px;

  }


  /* GRID */

  .grid{

    grid-template-columns:1fr;

  }


  .button-grid{

    grid-template-columns:1fr 1fr;

  }


  /* LOGOS */

  .logo-grid{

    grid-template-columns:
    repeat(4,1fr);

  }


  .logo-option{

    height:65px;

  }


  /* PREVIEW */

  .preview-top{

    flex-direction:column;

    align-items:flex-start;

    gap:10px;

  }


  .stats{

    flex-wrap:wrap;

  }


  .qr-box{

    min-height:320px;

    padding:20px;

  }


  #qrContainer canvas,
  #qrContainer img{

    width:100% !important;

    max-width:280px !important;

    height:auto !important;

  }

}


/* =========================
   MOBILE
========================= */

@media(max-width:450px){

  .app{

    padding:12px;

  }


  .sidebar,
  .preview{

    padding:16px;

    border-radius:20px;

  }


  /* LOGO */

  .logo{

    flex-direction:column;

    align-items:flex-start;

  }


  .logo h1{

    font-size:22px;

  }


  /* TABS */

  .tabs{

    grid-template-columns:1fr;

  }


  .button-grid{

    grid-template-columns:1fr;

  }


  /* LOGOS */

  .logo-grid{

    grid-template-columns:
    repeat(3,1fr);

    gap:10px;

  }


  .logo-option{

    height:58px;

    padding:8px;

  }


  /* QR */

  .qr-box{

    min-height:260px;

    padding:14px;

    border-radius:20px;

  }


  #qrContainer canvas,
  #qrContainer img{

    max-width:220px !important;

  }


  /* TEXTAREA */

  textarea{

    min-height:110px;

  }

}

/* ==========================================================================
   POSTER & BORDER FLYER CUSTOMIZER STYLES
   ========================================================================== */

.flyer-customization {
  margin-top: 25px;
}

/* Custom switch toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: 0.3s ease;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text);
  transition: 0.3s ease;
  border-radius: 50%;
}

.switch-toggle input:checked + .switch-slider {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(22px);
  background-color: white;
}

/* Presets */
.presets-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 15px;
}

.preset-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.preset-btn:hover {
  border-color: #8b5cf6;
  transform: translateY(-1px);
}

.preset-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: white;
  border-color: transparent;
}

/* Range input style updates */
.range-grid label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-grid input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  margin-top: 4px;
  margin-bottom: 12px;
  padding: 0;
  border: none;
}

.range-grid input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8b5cf6;
  cursor: pointer;
  transition: 0.15s ease;
}

.range-grid input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #06b6d4;
}

/* QR Border settings section */
.qr-border-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--border);
}

.qr-border-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Poster Preview Card styling */
.qr-poster-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 20px;
  background: transparent;
  transition: 0.3s ease;
  position: relative;
  max-width: 100%;
  width: auto;
  box-sizing: border-box;
}

.qr-poster-container.poster-mode {
  padding: 30px 25px;
  min-width: 280px;
  max-width: 100%;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

body.light .qr-poster-container.poster-mode {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.poster-qr-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

.poster-qr-wrapper canvas,
.poster-qr-wrapper img,
.poster-qr-wrapper svg {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
}

.poster-text-el {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  text-align: center;
  width: 100%;
  word-break: break-word;
  transition: 0.3s ease;
}

.poster-text-el.header-text {
  margin-bottom: 25px;
}

.poster-text-el.footer-text {
  margin-top: 25px;
}

.poster-text-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-text-icon svg {
  width: 1.3em;
  height: 1.3em;
  stroke-width: 2.2px;
}

/* Make sidebar scrollable for options overlap */
.sidebar {
  max-height: 110vh;
  overflow-y: auto;
}

/* PRINT MEDIA STYLES */
@media print {
  body * {
    visibility: hidden !important;
  }
  .bg-animation {
    display: none !important;
  }
  .preview,
  .qr-box,
  #qrPoster,
  #qrPoster * {
    visibility: visible !important;
  }
  
  .app {
    display: block !important;
    padding: 0 !important;
  }
  
  .preview {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .preview-top, .history {
    display: none !important;
  }
  
  .qr-box {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    min-height: auto !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  #qrPoster {
    box-shadow: none !important;
    border-color: inherit !important;
    transform: scale(1.3);
  }
}

/* ==========================================================================
   15+ PREMIUM BORDER EFFECTS FOR FLYER
   ========================================================================== */

:root {
  --poster-border-color: #8b5cf6;
}

.qr-poster-container.effect-none {
  border: none !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3) !important;
}

body.light .qr-poster-container.effect-none {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.qr-poster-container.effect-solid-thin {
  border: 1px solid var(--poster-border-color) !important;
}

.qr-poster-container.effect-solid-thick {
  border: 5px solid var(--poster-border-color) !important;
}

.qr-poster-container.effect-dashed {
  border: 3px dashed var(--poster-border-color) !important;
}

.qr-poster-container.effect-dotted {
  border: 3px dotted var(--poster-border-color) !important;
}

.qr-poster-container.effect-double {
  border: 6px double var(--poster-border-color) !important;
}

.qr-poster-container.effect-glass {
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15), 0 20px 50px rgba(0,0,0,0.3) !important;
}

.qr-poster-container.effect-neon {
  border: 2px solid var(--poster-border-color) !important;
  box-shadow: 0 0 20px var(--poster-border-color), inset 0 0 15px var(--poster-border-color) !important;
}

.qr-poster-container.effect-accent-tb {
  border: none !important;
  border-top: 8px solid var(--poster-border-color) !important;
  border-bottom: 8px solid var(--poster-border-color) !important;
}

.qr-poster-container.effect-accent-left {
  border: none !important;
  border-left: 10px solid var(--poster-border-color) !important;
}

.qr-poster-container.effect-corners {
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.qr-poster-container.effect-corners::before,
.qr-poster-container.effect-corners::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  pointer-events: none;
  transition: 0.3s ease;
}

.qr-poster-container.effect-corners::before {
  top: 15px;
  left: 15px;
  border-top: 4px solid var(--poster-border-color);
  border-left: 4px solid var(--poster-border-color);
  border-top-left-radius: 8px;
}

.qr-poster-container.effect-corners::after {
  bottom: 15px;
  right: 15px;
  border-bottom: 4px solid var(--poster-border-color);
  border-right: 4px solid var(--poster-border-color);
  border-bottom-right-radius: 8px;
}

.qr-poster-container.effect-groove {
  border: 6px groove var(--poster-border-color) !important;
}

.qr-poster-container.effect-ridge {
  border: 6px ridge var(--poster-border-color) !important;
}

.qr-poster-container.effect-gold {
  border: 4px solid #facc15 !important;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.4), inset 0 0 15px rgba(250, 204, 21, 0.2) !important;
}

.qr-poster-container.effect-inset-shadow {
  border: none !important;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.65) !important;
}

/* ==========================================================================
   QR DOTS & CORNERS CUSTOM SUBPANELS
   ========================================================================== */

.custom-subpanel {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-top: -5px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
  animation: slideDownCustom 0.3s ease-out;
}

body.light .custom-subpanel {
  background: rgba(241, 245, 249, 0.7);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.subpanel-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 12px;
}

@keyframes slideDownCustom {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   ROUTED SPA VIEWS & LAYOUTS
   ========================================================================== */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

body.light .header {
  background: rgba(255, 255, 255, 0.7);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon-small {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 10px;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.nav-link:hover, 
.nav-link.active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.08);
}

body.light .nav-link:hover, 
body.light .nav-link.active {
  background: rgba(139, 92, 246, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-select-container select {
  margin-bottom: 0;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  width: auto;
  cursor: pointer;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.cta-premium-btn {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.2);
  transition: all 0.25s ease;
}

.cta-premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

/* Page routing view toggling */
.page-view {
  display: none;
}

.page-view.active {
  display: block;
  animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-content {
  padding: 20px 0 60px;
}

/* ==========================================================================
   DYNAMIC FILE UPLOAD & REDIRECT CONFIG
   ========================================================================== */

.file-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  background: rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
}

body.light .file-upload-zone {
  background: rgba(241, 245, 249, 0.4);
}

.file-upload-zone:hover, 
.file-upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
}

.upload-icon {
  stroke: var(--primary);
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px rgba(139,92,246,0.2));
}

.file-upload-zone p {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.file-upload-zone span {
  font-size: 12px;
  color: var(--secondary);
  display: block;
  margin-bottom: 18px;
}

.file-browse-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
}

.file-details-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px;
  margin-top: 15px;
}

.file-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-type-badge {
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 11px;
}

.file-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}

.file-name-text {
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size-text {
  font-size: 11px;
  color: var(--secondary);
}

.file-delete-btn {
  background: transparent;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
}

.file-delete-btn:hover {
  color: #ef4444;
}

.file-upload-progress {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #06b6d4);
  transition: width 0.1s linear;
}

.dynamic-toggle-box {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 20px;
}

body.light .dynamic-toggle-box {
  background: rgba(241, 245, 249, 0.5);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  cursor: pointer;
}

.toggle-icon {
  color: var(--primary);
}

.toggle-desc {
  display: block;
  font-size: 11px;
  color: var(--secondary);
  margin-top: 5px;
  padding-left: 24px;
  line-height: 1.4;
}

/* ==========================================================================
   INDUSTRIES & FEATURES DIRECTORY
   ========================================================================= */

.features-wrapper {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 40px;
}

.features-hero {
  text-align: center;
  margin-bottom: 45px;
}

.features-hero h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -1px;
}

.features-hero p {
  color: var(--secondary);
  max-width: 750px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
}

.features-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 35px;
}

.search-bar-container {
  position: relative;
  max-width: 360px;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 15px;
  font-size: 15px;
  color: var(--secondary);
}

.search-bar-container input {
  margin-bottom: 0;
  padding-left: 45px;
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--secondary);
  padding: 9px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-pill:hover, 
.filter-pill.active {
  color: var(--text);
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 26px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
}

.art-category {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.8px;
}

.art-meta-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 15px;
}

.art-rating-box {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #facc15;
}

.article-card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  font-family: 'Outfit', sans-serif;
}

.article-card p {
  font-size: 13.5px;
  color: var(--secondary);
  line-height: 1.5;
  margin-bottom: 22px;
  flex: 1;
}

.art-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 15px;
  font-size: 12px;
  color: var(--secondary);
}

.art-author {
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   MODALS AND DIALOGS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeInModal 0.25s ease-out forwards;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: scaleInModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.article-modal-card {
  width: 800px;
  max-height: 85vh;
}

.small-modal-card {
  width: 460px;
}

.large-modal-card {
  width: 960px;
  max-height: 90vh;
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--secondary);
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text);
  transform: scale(1.1);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.article-reader-body {
  padding: 30px;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: var(--secondary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.art-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-rich-text {
  line-height: 1.65;
  font-size: 14.5px;
}

.article-rich-text h3 {
  margin: 25px 0 12px;
  font-size: 21px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.article-rich-text h4 {
  margin: 20px 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.article-rich-text p {
  margin-bottom: 15px;
  color: var(--secondary);
}

.article-rich-text ul, 
.article-rich-text ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.article-rich-text li {
  margin-bottom: 8px;
  color: var(--secondary);
}

.article-box {
  background: rgba(139, 92, 246, 0.05);
  border-left: 4px solid var(--primary);
  padding: 16px;
  border-radius: 0 14px 14px 0;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.5;
}

.article-box.warning {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.03);
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn {
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn.secondary-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.secondary-btn:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.04);
}

.btn.primary-btn {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.15);
}

.btn.primary-btn:hover {
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.3);
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleInModal {
  from { transform: scale(0.93); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   QR SCANNER PAGE
   ========================================================================== */

.scanner-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px;
}

.scanner-header {
  text-align: center;
  margin-bottom: 35px;
}

.scanner-header h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.scanner-header p {
  color: var(--secondary);
}

.scanner-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 35px;
}

@media(max-width: 768px) {
  .scanner-split {
    grid-template-columns: 1fr;
  }
}

.scanner-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.scanner-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.camera-scan-viewport {
  width: 100%;
  aspect-ratio: 4/3;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.scan-overlay-laser {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444, 0 0 2px #ef4444;
  animation: laserScan 2.5s infinite ease-in-out;
  pointer-events: none;
  z-index: 10;
}

@keyframes laserScan {
  0% { top: 12%; }
  50% { top: 88%; }
  100% { top: 12%; }
}

.scanner-actions {
  margin-top: 20px;
  width: 100%;
}

.scanner-btn {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 600;
  width: 100%;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.15);
}

.scanner-btn.secondary-btn {
  background: #ef4444;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
  margin-top: 10px;
}

.scan-dropzone {
  width: 100%;
  aspect-ratio: 4/3;
  border: 2px dashed var(--border);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(15, 23, 42, 0.1);
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

body.light .scan-dropzone {
  background: rgba(241, 245, 249, 0.5);
}

.scan-dropzone:hover,
.scan-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
}

.dropzone-inner {
  text-align: center;
  padding: 20px;
}

.dropzone-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.dropzone-inner p {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 14px;
}

.dropzone-inner span {
  font-size: 11px;
  color: var(--secondary);
}

.scan-result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.result-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.result-badge {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.scan-time {
  font-size: 11px;
  color: var(--secondary);
  font-weight: 500;
}

.result-text-area {
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  min-height: 60px;
  word-break: break-all;
  white-space: pre-wrap;
  color: var(--text);
}

body.light .result-text-area {
  background: rgba(241, 245, 249, 0.6);
}

.result-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.result-btn {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.result-btn:hover {
  border-color: var(--primary);
}

.result-btn.primary-btn {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  border-color: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#pageReader video {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

/* ==========================================================================
   MY QRS DASHBOARD WORKSPACE
   ========================================================================== */

.dashboard-wrapper {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 40px;
}

.dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 35px;
}

.dashboard-header-row h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.dashboard-header-row p {
  color: var(--secondary);
}

.workspace-stats-cards {
  display: flex;
  gap: 15px;
}

.w-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px 28px;
  border-radius: 20px;
  text-align: center;
  min-width: 130px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.w-stat-num {
  font-size: 24px;
  font-weight: 800;
  display: block;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

.w-stat-lbl {
  font-size: 11px;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

.dash-tabs {
  display: flex;
  gap: 8px;
}

.dash-tab {
  background: transparent;
  border: none;
  color: var(--secondary);
  padding: 9px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.25s ease;
}

.dash-tab.active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.08);
}

.qrs-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.qr-dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.qr-dash-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(139,92,246,0.1);
}

.qr-dash-preview {
  width: 100%;
  aspect-ratio: 1/1;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.qr-dash-preview canvas, 
.qr-dash-preview img {
  max-width: 100%;
  max-height: 100%;
  height: auto !important;
}

.qr-dash-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Outfit', sans-serif;
}

.qr-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--secondary);
  margin-bottom: 16px;
}

.qr-badge-type {
  background: var(--border);
  color: var(--text);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.5px;
}

.qr-badge-type.dynamic {
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary);
}

.qr-dash-target {
  background: rgba(2, 6, 23, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  word-break: break-all;
  margin-bottom: 18px;
  color: var(--secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

body.light .qr-dash-target {
  background: rgba(241, 245, 249, 0.5);
}

.qr-dash-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.qr-dash-btn {
  flex: 1;
  background: var(--border);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qr-dash-btn:hover {
  border-color: var(--primary);
}

.qr-dash-btn.primary-btn {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.15);
}

.qr-dash-btn.primary-btn:hover {
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.25);
}

.analytics-modal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.analytics-stat-row {
  display: flex;
  gap: 20px;
}

.analytics-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

@media(max-width: 850px) {
  .analytics-charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-box {
  background: rgba(2, 6, 23, 0.2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 24px;
}

body.light .chart-box {
  background: rgba(241, 245, 249, 0.4);
}

.chart-box h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.svg-chart-container {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.svg-chart-container svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   COMPARE VIEW & DYNAMIC REDIRECT SLIDER
   ========================================================================== */

.compare-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px;
}

.compare-header {
  text-align: center;
  margin-bottom: 35px;
}

.compare-header h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.compare-header p {
  color: var(--secondary);
}

.compare-slider-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  margin-bottom: 35px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.slider-explain-text {
  text-align: center;
  margin-bottom: 25px;
}

.slider-explain-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.slider-explain-text p {
  color: var(--secondary);
  font-size: 13.5px;
}

.split-slider-container {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  user-select: none;
}

.slider-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

.static-side {
  left: 0;
  background: #090e1f;
  z-index: 1;
}

.dynamic-side {
  right: 0;
  background: #141334;
  z-index: 2;
  width: 50%;
  transition: width 0.05s linear;
}

.side-banner {
  position: absolute;
  top: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
}

.static-side .side-banner {
  background: #ef4444;
  color: white;
  left: 20px;
}

.dynamic-side .side-banner {
  background: #10b981;
  color: white;
  right: 20px;
}

.side-qr-mock {
  width: 130px;
  height: 130px;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.side-qr-mock canvas,
.side-qr-mock img {
  max-width: 100%;
  max-height: 100%;
}

.side-device-frame {
  width: 200px;
  height: 240px;
  border: 6px solid #475569;
  border-radius: 24px 24px 0 0;
  border-bottom: none;
  background: #000000;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.device-notch {
  width: 60px;
  height: 12px;
  background: #475569;
  border-radius: 0 0 8px 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  z-index: 10;
}

.device-screen {
  width: 100%;
  height: 100%;
  padding: 24px 14px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #020617;
}

.device-browser-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px;
  font-size: 11px;
  text-align: center;
  color: var(--secondary);
  margin-bottom: 18px;
  white-space: nowrap;
  overflow: hidden;
  font-family: monospace;
}

.device-content {
  text-align: center;
}

.desc-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  text-transform: uppercase;
}

.desc-badge.red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.desc-badge.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.device-content h4 {
  font-size: 14px;
  margin: 12px 0 6px;
  font-weight: 600;
}

.device-content p {
  font-size: 11px;
  color: var(--secondary);
  line-height: 1.4;
  margin: 0;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--primary);
  z-index: 10;
  cursor: ew-resize;
  transition: left 0.05s linear;
}

.handle-arrows {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.slider-mock-actions {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.slider-mock-actions label {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 0;
}

.control-row {
  display: flex;
  gap: 10px;
}

.control-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.control-btn:hover, 
.control-btn.active {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.08);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-table th, 
.compare-table td {
  padding: 18px 25px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: rgba(15, 23, 42, 0.35);
  font-weight: 700;
  color: var(--text);
}

body.light .compare-table th {
  background: rgba(241, 245, 249, 0.6);
}

.compare-table td.yes {
  color: #10b981;
  font-weight: 600;
}

.compare-table td.no {
  color: #ef4444;
  font-weight: 600;
}

/* ==========================================================================
   PRICING & SUBSCRIPTION
   ========================================================================== */

.pricing-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 45px;
}

.pricing-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

.pricing-header p {
  color: var(--secondary);
  font-size: 15px;
}

.billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  font-weight: 600;
}

.discount-badge {
  background: #10b981;
  color: white;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 5px;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

@media(max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto 40px;
  }
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 35px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.price-card.professional {
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
  transform: scale(1.03);
}

.price-card.professional:hover {
  transform: scale(1.05) translateY(-4px);
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(139,92,246,0.06), transparent);
  pointer-events: none;
}

.pop-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.price-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: 'Outfit', sans-serif;
}

.plan-desc {
  color: var(--secondary);
  font-size: 13px;
  margin-bottom: 25px;
}

.price-row {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.price-row .currency {
  font-size: 24px;
  font-weight: 600;
  color: var(--secondary);
  margin-right: 2px;
}

.price-row .price-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
}

.price-row .period {
  font-size: 14px;
  color: var(--secondary);
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--secondary);
  flex: 1;
}

.plan-btn {
  background: var(--border);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px;
  border-radius: 16px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 14px;
}

.price-card.professional .plan-btn, 
.plan-btn:hover {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

.checkout-summary-box {
  background: rgba(139,92,246,0.06);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.checkout-summary-box strong {
  font-size: 16px;
  font-weight: 600;
  margin-left: 8px;
}

.submit-checkout-btn, 
.submit-contact-btn {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 15px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
  transition: all 0.25s ease;
}

.submit-checkout-btn:hover, 
.submit-contact-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.35);
}

/* ==========================================================================
   SUPPORT & CONTACT & FAQS
   ========================================================================== */

.support-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px;
}

.support-header {
  text-align: center;
  margin-bottom: 40px;
}

.support-header h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.support-header p {
  color: var(--secondary);
}

.support-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}

@media(max-width: 800px) {
  .support-split {
    grid-template-columns: 1fr;
  }
}

.support-form-card, 
.faq-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 4px 12 rgba(0,0,0,0.06);
}

.support-form-card h3, 
.faq-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  user-select: none;
}

.faq-toggle-icon {
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
  font-size: 13.5px;
  color: var(--secondary);
  line-height: 1.55;
}

.faq-item.active .faq-answer {
  max-height: 180px;
  margin-top: 10px;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

/* ==========================================================================
   FLOATING SUPPORT CHATBOT
   ========================================================================== */

.chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: 'Outfit', sans-serif;
}

.chatbot-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.25s ease;
}

.chatbot-toggle-btn:hover {
  transform: scale(1.05) translateY(-2.5px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.55);
}

.chatbot-panel {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 340px;
  height: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  animation: slideUpChat 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bot-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-avatar {
  font-size: 22px;
}

.bot-meta h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
}

.bot-meta span {
  font-size: 10px;
  opacity: 0.8;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.chatbot-close-btn:hover {
  opacity: 1;
}

.chatbot-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.45;
  word-break: break-word;
}

.msg.bot {
  background: var(--border);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

body.light .msg.bot {
  background: #f1f5f9;
}

.msg.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chatbot-input-row {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.chatbot-input-row input {
  margin-bottom: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  flex: 1;
}

.chatbot-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

@keyframes slideUpChat {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   ROUTING & NAV LIGHT MODE COMPATIBILITY & RESPONSIVE FIXES
   ========================================================================== */

body.light .header {
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

body.light .nav-link:hover,
body.light .nav-link.active {
  background: rgba(139, 92, 246, 0.05);
}

body.light .price-card.professional {
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.08);
}

/* Fix main container padding under sticky header */
.app {
  margin-top: 10px;
}

/* Responsive navigation adjustments */
@media(max-width: 950px) {
  .header {
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding: 0 10px 5px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-link {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ==========================================================================
   USER AUTHENTICATION & QUICK GENERATOR EXTENSIONS
   ========================================================================== */

.user-auth-area {
  display: flex;
  align-items: center;
  position: relative;
}

.login-trigger-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.login-trigger-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.user-profile-menu {
  position: relative;
}

.profile-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.25);
  transition: all 0.25s ease;
}

.profile-avatar-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
}

.profile-dropdown {
  position: absolute;
  top: 52px;
  right: 0;
  width: 230px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  padding: 15px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  animation: slideUpChat 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.profile-dropdown.active {
  display: flex;
}

body.light .profile-dropdown {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.dropdown-header {
  padding-bottom: 8px;
}

.dropdown-header h5 {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-badge-plan {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: white;
  background: var(--primary);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

.dropdown-item {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
  background: transparent;
  border: none;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.dropdown-item:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--primary);
}

.logout-action-btn {
  color: #ef4444 !important;
  font-weight: 600;
}

.logout-action-btn:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #ef4444 !important;
}

/* Quick Generate Button prominent styling */
.quick-generate-box {
  margin: 20px 0 15px;
}

.quick-generate-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 16px;
  border: none;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.25);
  transition: all 0.25s ease;
  font-family: 'Outfit', sans-serif;
}

.quick-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.quick-generate-btn:active {
  transform: translateY(0);
}

/* Auth Modal error banners */
.auth-error-banner {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 12px;
  border-radius: 12px;
  font-size: 12.5px;
  margin-bottom: 15px;
  font-weight: 500;
}

.submit-auth-btn {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 15px;
  font-size: 13.5px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
  transition: all 0.25s ease;
  font-family: 'Outfit', sans-serif;
}

.submit-auth-btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.35);
}

.submit-auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-toggle-row {
  text-align: center;
  margin-top: 15px;
}

.auth-toggle-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.auth-toggle-btn:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.custom-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-top: 25px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
}

.preview-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
  margin-bottom: 25px;
}

.preview-action-btn {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: white;
  padding: 12px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: 0.3s ease;
}

.preview-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

@media (max-width: 450px) {
  .preview-actions-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ==========================================================================
   PREMIUM TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 350px;
  width: calc(100% - 40px);
  transition: all 0.3s ease;
}

.toast {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--text);
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-20px);
  opacity: 0;
  animation: toastFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transition: all 0.3s ease;
}

body.light .toast {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.08);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.12);
}

.toast.info {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.12);
}

.toast.hide {
  animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastFadeIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastFadeOut {
  to {
    transform: scale(0.9) translateY(-10px);
    opacity: 0;
  }
}

@media(max-width: 700px) {
  .toast-container {
    top: auto;
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
    width: auto;
  }
}

/* ==========================================================================
   UPI QR CODE PAYMENT STYLES
   ========================================================================== */
.upi-payment-card {
  background: #f4f6fc;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light .upi-payment-card {
  background: #f4f6fc;
}

.upi-merchant-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.upi-merchant-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.upi-merchant-info {
  text-align: left;
}

.upi-merchant-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Outfit', sans-serif;
}

.upi-merchant-desc {
  margin: 0;
  font-size: 11px;
  color: #666666;
  font-weight: 500;
}

.upi-qr-wrapper {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  display: inline-block;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  margin-bottom: 15px;
}

.upi-qr-container {
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upi-payment-details {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.upi-id-row, .upi-amount-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.upi-id-label, .upi-amount-label {
  color: #666666;
  font-weight: 500;
}

.upi-id-value {
  color: #333333;
  font-weight: 600;
  word-break: break-all;
}

.upi-amount-value {
  color: #8b5cf6;
  font-weight: 800;
  font-size: 15px;
}

.upi-instructions {
  font-size: 13px;
  color: #555555;
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: 0.2px;
}

/* Spinner & Loader animation */
.payment-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.spinner-icon {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Profile Payments List */
.profile-payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.profile-payment-item:last-child {
  border-bottom: none;
}

.payment-plan-lbl {
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
}

.payment-amount-val {
  font-weight: 700;
  color: var(--primary);
  font-size: 12px;
}

.payment-date-lbl {
  font-size: 9px;
  color: var(--secondary);
  display: block;
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.admin-table th {
  padding: 12px 15px;
  font-weight: 700;
}

.admin-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-user-info h5 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
}

.admin-user-info p {
  margin: 0 0 3px 0;
  font-size: 12px;
  color: var(--secondary);
  font-weight: 500;
}

.admin-payments-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
  min-width: 220px;
}

.admin-payment-log-item {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.light .admin-payment-log-item {
  background: rgba(139, 92, 246, 0.03);
}

.admin-payment-log-item span {
  font-weight: 700;
  color: var(--primary);
}

.admin-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 5px;
}

.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  width: 140px;
  transition: all 0.2s ease;
}

body.light .admin-checkbox-label {
  background: rgba(0, 0, 0, 0.02);
}

.admin-checkbox-label:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
}

.admin-checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

