/* outfit-latin-ext-300-normal */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(./outfit-latin-ext-300-normal-BYS6Dpvq.woff2) format('woff2'), url(./outfit-latin-ext-300-normal-CMIMshEd.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* outfit-latin-300-normal */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(./outfit-latin-300-normal-CRYTwY6m.woff2) format('woff2'), url(./outfit-latin-300-normal-AWLfuCom.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* outfit-latin-ext-400-normal */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./outfit-latin-ext-400-normal-5tcqmc2S.woff2) format('woff2'), url(./outfit-latin-ext-400-normal-DHm7mdGe.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* outfit-latin-400-normal */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./outfit-latin-400-normal-BGsTXAXT.woff2) format('woff2'), url(./outfit-latin-400-normal-DMwTpYkH.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* outfit-latin-ext-500-normal */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./outfit-latin-ext-500-normal-zeox_O30.woff2) format('woff2'), url(./outfit-latin-ext-500-normal-DrCvqoFD.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* outfit-latin-500-normal */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./outfit-latin-500-normal-DKnIMDSk.woff2) format('woff2'), url(./outfit-latin-500-normal-ClnHRwRh.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* outfit-latin-ext-600-normal */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./outfit-latin-ext-600-normal-B85nYjL1.woff2) format('woff2'), url(./outfit-latin-ext-600-normal-CWJcPgd7.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* outfit-latin-600-normal */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./outfit-latin-600-normal-B7SfZ07L.woff2) format('woff2'), url(./outfit-latin-600-normal-BEfTtDA7.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* outfit-latin-ext-700-normal */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./outfit-latin-ext-700-normal-CI4iH74K.woff2) format('woff2'), url(./outfit-latin-ext-700-normal-fjS8-Gm7.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* outfit-latin-700-normal */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./outfit-latin-700-normal-Cu9v6i1X.woff2) format('woff2'), url(./outfit-latin-700-normal-D4itBLBr.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --bg-dark: #1b191c;
  --bg-surface: #242226;
  --bg-surface-hover: #333036;
  --text-primary: #ffffff;
  --text-secondary: #9e9ba3;
  --accent: #00d492;
  --accent-secondary: #5ee9b5;
  /* Neon green accent from the design */
  --accent-purple: #b59efa;
  --border-radius: 20px;
  --border-color: rgba(255, 255, 255, 0.08);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
/* Base App Layout */
.app-container {
  display: grid;
  grid-template-columns: 80px 1fr;
  height: 100vh;
  width: 100vw;
  background: radial-gradient(circle at 10% 20%, #2f2722 0%, var(--bg-dark) 40%);
}
.app-container.viewer-active {
  grid-template-columns: 80px 1fr 380px;
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: all 0.2s ease;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}
.firebase-emulator-warning {
  display: none !important;
}
/* Global Drag and Drop Overlay */
.global-dropzone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  /* Let events pass to window listeners */
  background: rgba(0, 212, 146, 0.11);
  /* very light accent tint */
  box-shadow: inset 0 0 0 4px var(--accent);
  border-radius: 8px;
  /* slight rounding internally if wanted, though 0 is fine for 100vw */
  animation: subtle-pulse 2s ease-in-out infinite;
}
@keyframes subtle-pulse {
  0% {
    box-shadow: inset 0 0 0 4px rgba(0, 212, 146, 1);
    background: rgba(0, 212, 146, 0.02);
  }

  50% {
    box-shadow: inset 0 0 0 4px rgba(0, 212, 146, 1);
    background: rgba(0, 212, 146, 0.11);
  }

  100% {
    box-shadow: inset 0 0 0 4px rgba(0, 212, 146, 1);
    background: rgba(0, 212, 146, 0.02);
  }
}.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    border-right: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    height: 100vh;
    min-height: 0;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    gap: 32px;
}

.logo-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.logo-container:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.logo-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 30px;
}

.nav-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: transparent;
}

.nav-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--text-primary);
    color: #000000;
}

.sidebar-bottom .nav-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.sidebar-bottom .nav-item.active {
    background: var(--text-primary);
    color: #000;
}

.sidebar-bottom .nav-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.pro-badge {
    position: absolute;
    top: -2px;
    right: -10px;
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #000;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    pointer-events: none;
    opacity: 0.85;
}

.update-btn {
    color: #4ade80 !important;
    animation: pulse-update 2s infinite ease-in-out;
}

.update-btn:hover {
    background: rgba(74, 222, 128, 0.15) !important;
    color: #4ade80 !important;
    animation: none;
}

@keyframes pulse-update {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.5)); }
    100% { transform: scale(1); opacity: 0.8; }
}.canvas-container {
    display: flex;
    flex-direction: column;
    padding: 32px;
    gap: 24px;
    min-width: 0;
}

.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-group {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.title-group h1 {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-group .subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.canvas-content {
    flex: 1;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.canvas-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    z-index: 10;
}

.canvas-controls button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.canvas-controls button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.zoom-wrapper {
    width: 100% !important;
    height: 100% !important;
}

.zoom-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-image {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

@keyframes canvas-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}.notes-sidebar {
    background: rgba(0, 0, 0, 0.1);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.notes-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.notes-loading-state p {
    font-size: 14px;
}

.notes-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 3rem 1rem;
    color: #ff5e5e;
}

.notes-error-state p {
    font-size: 14px;
    font-weight: 500;
}

.notes-error-state span {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.notes-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 24px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Optional: subtle separator */
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
}

.header-top h2 strong {
    color: var(--accent)
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.progress-bar-container {
    height: 6px;
    background: var(--bg-surface);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #4ade80;
    border-radius: 3px;
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.notes-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

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

/* Note Cards Matching Image Reference Aesthetics */
.note-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Subtle Gradient Tops based on type */
.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.note-card.error::before {
    background: rgb(var(--sticky-color-rgb, 255, 94, 94));
}

.note-card.warning::before {
    background: #f3c260;
}

.note-card.suggestion::before {
    background: var(--accent);
}

.note-card-correction-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}

.incorrect-text {
    color: #ff3b30;
    background-color: rgba(255, 59, 48, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

/* Base style for warning/suggestion backgrounds if needed */
.note-card.warning .incorrect-text {
    color: #f3c260;
    background: rgba(243, 194, 96, 0.1);
}

.note-card.suggestion .incorrect-text {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.correction-arrow {
    color: var(--text-secondary);
}

.correct-text {
    color: rgb(var(--sticky-color-rgb));
    background: rgba(var(--sticky-color-rgb), 0.15);
    /* Sticky color bg */
    padding: 2px 8px;
    border-radius: 6px;
}

.note-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.note-card-footer {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.done-btn {
    background: var(--text-primary);
    color: #000;
}

.done-btn:hover {
    background: #e0e0e0;
}

.done-btn.completed {
    background: #4ade80;
    color: #000;
}

.done-btn.completed:hover {
    background: #22c55e;
}

.ignore-btn {
    background: transparent;
    color: var(--text-secondary);
}

.ignore-btn:hover,
.ignore-btn.ignored-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.note-card.ignored {
    filter: grayscale(100%);
    opacity: 0.5 !important;
}.settings-container {
    grid-column: 2 / -1;
    /* spans canvas and notes columns */
    display: flex;
    flex-direction: column;
    padding: 48px;
    gap: 32px;
    height: 100vh;
    overflow-y: auto;
}

.settings-header h1 {
    font-size: 32px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settings-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.settings-content {
    display: flex;
    gap: 48px;
    flex: 1;
}

.settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 240px;
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
}

.settings-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.settings-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.settings-panel {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.settings-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-section h2 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section p.manage-sub-help {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.subscription-settings-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.active-plan-card {
    background-color: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.active-plan-card.empty {
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
    font-style: italic;
}

.active-plan-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.active-plan-header .plan-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.active-plan-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.active-plan-desc {
    margin: 0;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.active-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.active-plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.feature-check {
    color: var(--accent);
    flex-shrink: 0;
}

.subscription-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.upgrade-sub-btn {
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upgrade-sub-btn:hover:not(:disabled) {
    background-color: var(--text-primary);
    transform: translateY(-1px);
}

.upgrade-sub-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.manage-sub-link-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.manage-sub-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s;
}

.manage-sub-link:hover:not(:disabled) {
    color: var(--text-primary);
}

.manage-sub-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: none;
}

.settings-section p.manage-sub-help {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--accent);
}

.account-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.save-btn {
    background: var(--text-primary);
    color: #000;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
}

.logout-text-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.logout-text-btn:hover {
    color: #ff5e5e;
}

.settings-version-info {
    margin-top: auto;
    padding: 32px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.version-number {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.5;
}

.branding-slogan {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}.home-container {
    grid-column: 2 / -1;
    /* spans canvas and notes columns */
    display: flex;
    flex-direction: column;
    padding: 48px;
    gap: 48px;
    height: 100vh;
    overflow-y: auto;
}

.home-header h1 {
    font-size: 32px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.home-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.home-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-section h2 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.active-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.upload-card {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
    min-height: 220px;
}

.upload-card.standalone {
    width: 100%;
    min-height: 180px;
}

.upload-card:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 146, 0.11);
}

.upload-card:hover .upload-icon-container {
    background: var(--accent);
    color: #000;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 24px;
}

.upload-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.upload-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.upload-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scan-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.scan-list-item:hover {
    background: var(--bg-surface-hover);
    transform: translateX(4px);
}

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

.list-thumbnail {
    width: 48px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    object-position: top;
    background: #fff;
}

.item-details h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.item-details p {
    font-size: 13px;
    color: var(--text-secondary);
}

.item-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.view-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.scan-list-item:hover .view-btn {
    background: var(--text-primary);
    color: #000;
}.scan-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.scan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.scan-thumbnail {
    height: 140px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.scan-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0.8;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    color: var(--text-secondary);
    opacity: 0.5;
}

.status-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.status-overlay.progress {
    background: rgba(0, 212, 146, 0.9);
    color: #000;
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.status-overlay.queue {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.status-overlay.error {
    background: rgba(255, 60, 60, 0.85);
    color: #fff;
}

.scan-info {
    padding: 16px;
}

.scan-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scan-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.scan-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.scan-meta .date {
    font-size: 13px;
    color: var(--text-secondary);
}

.mistake-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 94, 94, 0.15);
    color: #ff5e5e;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.mistake-badge.perfect {
    background: hsla(161, 100%, 42%, 0.11);
    color: var(--accent);
}

.overlay-cancel-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-card:hover .overlay-cancel-btn {
    opacity: 1;
}

.overlay-cancel-btn:hover {
    color: #fff;
    background: rgba(255, 60, 60, 0.85);
    transform: scale(1.05);
}.files-container {
    grid-column: 2 / -1;
    display: flex;
    flex-direction: column;
    padding: 48px;
    gap: 40px;
    height: 100vh;
    overflow-y: auto;
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.files-header h1 {
    font-size: 32px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.files-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.add-folder-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--text-primary);
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
}

.add-folder-btn:hover {
    background: #e0e0e0;
}

.folders-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.folder-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.folder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.folder-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.folder-icon {
    color: var(--accent);
}

.folder-title h2 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.folder-path {
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.folder-scans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}.recent-container {
    grid-column: 2 / -1;
    display: flex;
    flex-direction: column;
    padding: 48px;
    gap: 40px;
    height: 100vh;
    overflow-y: auto;
}

.recent-header h1 {
    font-size: 32px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.recent-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}.subscription-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.subscription-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    padding: 0;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.subscription-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.subscription-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.subscription-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 64px 48px 32px 48px;
}

.subscription-fixed-footer {
    padding: 24px 48px 48px 48px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.subscription-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.subscription-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.subscription-header p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.popular {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.pricing-card.popular .plan-name,
.pricing-card.popular .plan-price {
    color: #000;
}

.pricing-card.popular .plan-description,
.pricing-card.popular .plan-period,
.pricing-card.popular .plan-features li {
    color: rgba(0, 0, 0, 0.8);
}

.pricing-card.popular .feature-check {
    color: #000;
}

.pricing-card.popular:hover {
    box-shadow: 0 12px 24px rgba(0, 87, 60, 1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.plan-icon-container.popular {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.plan-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 42px;
}

.plan-price-container {
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-period {
    color: var(--text-secondary);
    font-size: 16px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.feature-check {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-action-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.plan-action-btn.primary {
    background: var(--accent);
    color: #000;
}

.plan-action-btn.primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(210, 243, 96, 0.2);
}

.plan-action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.plan-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}.team-container {
    grid-column: 2 / -1;
    display: flex;
    flex-direction: column;
    padding: 48px;
    height: 100vh;
    overflow-y: auto;
    background: var(--bg-main);
    color: var(--text-primary);
}

.team-header {
    margin-bottom: 48px;
    flex-shrink: 0;
}

.team-header h1 {
    font-size: 32px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.team-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.coming-soon-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
    margin-bottom: 48px;
}

.coming-soon-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.banner-icon {
    width: 100px;
    height: 100px;
    background: rgba(var(--brand-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--brand-primary);
}

.banner-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.banner-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 48px;
}

.feature-previews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.feature-preview {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-preview svg {
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.feature-preview h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-preview p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .feature-previews {
        grid-template-columns: 1fr;
    }
}.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auth-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 90%;
    max-width: 1040px;
    max-height: 700px;
    height: 90vh;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal-left {
    flex: 1;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    min-width: 0;
    overflow: hidden;
}

.auth-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.onboarding-welcome-slide {
    width: 100%;
    height: 100%;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.welcome-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.floating-word {
    position: absolute;
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
    animation: drift 15s linear infinite;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(20px, -20px) rotate(2deg);
    }

    66% {
        transform: translate(-10px, -40px) rotate(-1deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.welcome-logo {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    z-index: 1;
}

.welcome-tagline {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.01em;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
    position: relative;
    z-index: 1;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-modal-right {
    flex: 0 0 550px;
    width: 550px;
    padding: 0 48px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.auth-modal-right>* {
    margin: 30px 0;
}

/* Onboarding Step */
.onboarding-step {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.onboarding-brand {
    margin-bottom: 32px;
    color: var(--accent);
}

.onboarding-progress-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.onboarding-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.onboarding-progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease-out;
}

.onboarding-text h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.onboarding-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 48px;
}

.onboarding-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.auth-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: none;
    transition: all 0.2s;
    flex: 1;
}

.auth-secondary-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.auth-secondary-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

.onboarding-skip {
    position: absolute;
    top: -24px;
    right: 0;
}

.onboarding-skip button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
}

.onboarding-skip button:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Auth Step */
.auth-step {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.auth-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.auth-logo-container {
    width: 64px;
    height: 64px;
    background: rgba(210, 243, 96, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.auth-logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.auth-logo-icon {
    color: var(--accent);
}

.auth-brand h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-brand p {
    font-size: 15px;
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .input-group {
    flex: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 16px 0 44px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.auth-submit-btn {
    width: 100%;
    height: 48px;
    background: var(--accent);
    color: #000;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
    flex-shrink: 0;
}

.onboarding-actions .auth-submit-btn {
    margin-top: 0;
    flex: 4;
}

.auth-form .auth-submit-btn {
    margin-top: 8px;
}

.auth-submit-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(210, 243, 96, 0.2);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0 16px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider::before {
    margin-right: 16px;
}

.auth-divider::after {
    margin-left: 16px;
}

.google-auth-btn {
    width: 100%;
    height: 48px;
    background: #fff;
    color: #000;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.google-auth-btn:hover:not(:disabled) {
    background: #f8f8f8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.google-auth-btn:active {
    transform: translateY(0);
}

.google-auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-footer {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 32px;
}

.auth-footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

.toggle-auth-btn {
    color: var(--accent);
    font-weight: 500;
    margin-left: 6px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.toggle-auth-btn:hover {
    text-decoration: underline;
}

.auth-error {
    background: rgba(255, 94, 94, 0.15);
    border: 1px solid rgba(255, 94, 94, 0.3);
    color: #ff5e5e;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.terms-step {
    padding-top: 24px;
}

.terms-scroll-container {
    max-height: 240px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.terms-scroll-container h4 {
    color: var(--text-primary);
    margin: 16px 0 8px;
    font-size: 15px;
}

.terms-scroll-container h4:first-child {
    margin-top: 0;
}

.terms-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 24px;
}

.terms-checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}.watch-folder-animation-container {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 32px;
}

.wf-scene {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-radar-circle {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 2px solid rgba(210, 243, 96, 0.4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    animation: radarPulse 3.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    z-index: 0;
}

.wf-radar-circle.delay {
    animation-delay: 1.75s;
}

@keyframes radarPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.4);
        opacity: 0;
        border-width: 4px;
    }

    30% {
        opacity: 0.6;
        border-color: rgba(210, 243, 96, 0.6);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
        border-width: 1px;
    }
}

.wf-folder-container {
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.wf-folder-icon {
    display: block;
}

.wf-file-container {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: fileDropIn 4s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.wf-file {
    background: #ffffff;
    width: 60px;
    height: 80px;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.wf-file-icon {
    color: #4a4a4a;
    margin-bottom: 14px;
    margin-top: 6px;
}

.wf-file-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.wf-line {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    width: 100%;
}

.wf-line.short {
    width: 60%;
}

@keyframes fileDropIn {
    0% {
        transform: translate(-50%, -100px) scale(0.8);
        opacity: 0;
    }

    15% {
        transform: translate(-50%, -10px) scale(1.1);
        opacity: 1;
    }

    25% {
        transform: translate(-50%, 25px) scale(1);
        opacity: 1;
    }

    33% {
        transform: translate(-50%, 80px) scale(0.8);
        opacity: 0;
    }

    35%,
    100% {
        transform: translate(-50%, 80px) scale(0.8);
        opacity: 0;
    }
}

.wf-scan-line {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 4px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    border-radius: 2px;
    opacity: 0;
    z-index: 15;
    animation: scanSweep 4s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scanSweep {

    0%,
    35% {
        opacity: 0;
        transform: translateY(-40px);
    }

    40% {
        opacity: 1;
        transform: translateY(-40px);
    }

    70% {
        opacity: 1;
        transform: translateY(40px);
    }

    75%,
    100% {
        opacity: 0;
        transform: translateY(40px);
    }
}

.wf-result-pop {
    position: absolute;
    top: 10%;
    right: 0%;
    background: #4ade80;
    color: #000;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.5);
    animation: resultPop 4s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes resultPop {

    0%,
    65% {
        opacity: 0;
        transform: scale(0);
    }

    70%,
    82% {
        opacity: 1;
        transform: scale(1);
    }

    86%,
    100% {
        opacity: 0;
        transform: scale(0);
    }
}.interactive-canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
}

.ic-content-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    margin: auto;
}

.interactive-canvas-bg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.65);
    transition: all 0.5s ease;
}

.ic-svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.ic-dashed-path {
    opacity: 0;
    /* We use both dash movement and a fade-in */
    animation: ic-dash 1s linear infinite, ic-fadeIn 0.5s forwards;
    /* Note: animation-delay is set inline per element */
}

@keyframes ic-dash {
    to { stroke-dashoffset: -16; }
}

@keyframes ic-fadeIn {
    to { opacity: 1; }
}

.ic-highlight {
    position: absolute;
    border-radius: 4px;
    border: 3px solid;
    z-index: 20;
    opacity: 0;
    animation: ic-popInHighlight 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1), blinking 1.5s infinite;
}

@keyframes blinking {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); box-shadow: inset 0 0 10px currentColor, 0 0 10px currentColor; }
}

@keyframes ic-popInHighlight {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.ic-note-container {
    position: absolute;
    width: 220px;
    z-index: 30;
    transform-origin: center left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border-radius: 12px;
    opacity: 0;
    animation: ic-popInNote 0.6s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ic-popInNote {
    0% { opacity: 0; transform: translateY(15px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ic-float-wrapper {
    width: 100%;
    animation: ic-floatNote 4s ease-in-out infinite;
}

@keyframes ic-floatNote {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.ap-animation-container {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 32px;
}

.ap-scene {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap-card {
    position: absolute;
    background: #ffffff;
    width: 150px;
    height: 200px;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    animation: ap-cardCycle 6s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center bottom;
}

@keyframes ap-cardCycle {

    0%,
    26% {
        transform: scale(0.8) translateY(-60px);
        z-index: 1;
        opacity: 1;
        filter: brightness(0.6);
    }

    33.3%,
    59% {
        transform: scale(0.9) translateY(-25px);
        z-index: 2;
        opacity: 1;
        filter: brightness(0.85);
    }

    66.6%,
    88% {
        transform: scale(1) translateY(15px);
        z-index: 3;
        opacity: 1;
        filter: brightness(1);
    }

    94% {
        transform: scale(1.05) translate(150px, 60px) rotate(25deg);
        z-index: 3;
        opacity: 0;
        filter: brightness(1);
    }

    96%,
    100% {
        transform: scale(0.8) translateY(-60px);
        z-index: 1;
        opacity: 0;
        filter: brightness(0.6);
    }
}

.ap-file-icon {
    color: #4a4a4a;
    margin-bottom: 24px;
    margin-top: 10px;
}

.ap-file-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.ap-line {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    width: 100%;
}

.ap-line.short {
    width: 60%;
}

.ap-line.medium {
    width: 80%;
}

.ap-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    border-radius: 2px;
    opacity: 0;
    z-index: 15;
    animation: ap-scanSweep 6s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ap-scanSweep {

    0%,
    68% {
        opacity: 0;
        transform: translateY(-10px);
    }

    71% {
        opacity: 1;
        transform: translateY(-10px);
    }

    83% {
        opacity: 1;
        transform: translateY(195px);
    }

    85%,
    100% {
        opacity: 0;
        transform: translateY(195px);
    }
}

.ap-mistake {
    position: absolute;
    opacity: 0;
    animation: ap-mistakePop 6s infinite cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 20;
}

.ap-mistake-1 {
    width: 45px;
    height: 35px;
    top: 60px;
    right: 28px;
}

.ap-mistake-2 {
    width: 70px;
    height: 16px;
    bottom: 56px;
    left: 24px;
}

.ap-mistake-box {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 4px;
}

.ap-mistake-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

@keyframes ap-mistakePop {

    0%,
    76% {
        opacity: 0;
        transform: scale(0.6);
    }

    79%,
    88% {
        opacity: 1;
        transform: scale(1);
    }

    91%,
    100% {
        opacity: 0;
        transform: scale(0.6);
    }
}