/* Exployt.ai - Main Styles */
/* Brand Colors: Matrix Green #00ff41, Cyan #00d4ff, Red #ff0040 */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --matrix-green: #00ff41;
    --glitch-cyan: #00d4ff;
    --glitch-red: #ff0040;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #111111;
    --text-primary: #f8f8f8;
    --text-secondary: #888888;
    --border-color: #222222;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

/* Force hide mobile menu on desktop */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links a:hover {
    color: var(--matrix-green);
}

/* Buttons */
.btn-primary {
    background: var(--matrix-green);
    color: var(--bg-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--matrix-green);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--matrix-green);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(0, 255, 65, 0.1);
}

.btn-warning {
    background: transparent;
    color: #ffcc00;
    border: 1px solid #ffcc00;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-warning:hover {
    background: rgba(255, 204, 0, 0.15);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 2rem 0;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-visual {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
}

/* ExploytLogo - 1:1 from morph.html, only xlogo- prefix added */
.xlogo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    line-height: normal;
}
.xlogo-main {
    display: flex;
    flex-direction: column;
    position: relative;
}
.xlogo-main-row {
    display: flex;
    align-items: baseline;
    position: relative;
}
.xlogo-dollar-run {
    color: #00ff41;
    opacity: 0.5;
    text-shadow: 0 0 8px rgba(0,255,65,0.5);
    align-self: flex-start;
    position: relative;
    z-index: 5;
    transition: opacity 0.2s;
}
.xlogo-dollar-sign {
    display: inline-block;
    position: relative;
}
.xlogo-dollar-run-text {
    display: inline-block;
    margin-left: 0.4em;
}
.xlogo-text-container {
    position: relative;
    display: inline-block;
}
.xlogo-layer-stack {
    position: relative;
}
.xlogo-text-layer {
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}
.xlogo-layer-stack .xlogo-glitch-red,
.xlogo-layer-stack .xlogo-glitch-cyan {
    position: absolute;
    top: 0;
    left: 0;
}
.xlogo-glitch-red {
    color: #ff0040;
    opacity: 0.08;
    transform: translate(-1px, 0);
    transition: all 0.05s;
}
.xlogo-glitch-cyan {
    color: #00d4ff;
    opacity: 0.08;
    transform: translate(1px, 0);
    transition: all 0.05s;
}
.xlogo-main-text {
    color: #00ff41;
    position: relative;
    text-shadow: 0 0 9px rgba(0,255,65,0.63), 0 0 18px rgba(0,255,65,0.45), 0 0 36px rgba(0,255,65,0.27);
    transition: text-shadow 2s ease-in-out;
}
.xlogo-char {
    display: inline-block;
    position: relative;
}
.xlogo-char-e .xlogo-normal-char,
.xlogo-char-e .xlogo-glitch-char {
    transition: opacity 0.12s ease-in-out;
}
.xlogo-char-e .xlogo-glitch-char {
    position: absolute;
    top: -0.02em;
    left: 0.35em;
    opacity: 0;
    transform: scale(1.15, 0.92);
    transform-origin: bottom;
}
.xlogo-char-x .xlogo-normal-char {
    transition: opacity 0.08s;
}
.xlogo-char-x .xlogo-glitch-char {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    transform: translate(0, 0) scale(1);
    transform-origin: center bottom;
    transition: transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.08s;
    will-change: transform, opacity;
}
.xlogo-char-x .xlogo-glitch-char.xlogo-morphed {
    transform: translate(0.2em, -0.85em) scale(0.65, 0.585);
}
.xlogo-ai-suffix {
    color: #00ff41;
    opacity: 0.5;
    text-shadow: 0 0 8px rgba(0,255,65,0.5);
}
.xlogo-ai-a {
    cursor: pointer;
}
.xlogo-cursor {
    background: #00ff41;
    margin-left: 6px;
    animation: xlogo-blink 1s infinite;
    box-shadow: 0 0 10px rgba(0,255,65,0.7), 0 0 20px rgba(0,255,65,0.5);
    position: relative;
    z-index: 5;
    display: inline-block;
    cursor: pointer;
}
.xlogo-slogan {
    color: #00ff41;
    opacity: 0.4;
    text-shadow: 0 0 8px rgba(0,255,65,0.4);
    letter-spacing: 2px;
    margin-top: 12px;
    text-align: center;
}

/* Glitch active state — offsets scaled per size (large=80px base) */
/* Large (80px): 3px */
.xlogo-large.xlogo-glitch-active .xlogo-glitch-red {
    opacity: 0.6;
    transform: translate(-3px, 1px);
}
.xlogo-large.xlogo-glitch-active .xlogo-glitch-cyan {
    opacity: 0.6;
    transform: translate(3px, -1px);
}
/* Medium (36px): 36/80 * 3 ≈ 1.35px */
.xlogo-medium.xlogo-glitch-active .xlogo-glitch-red {
    opacity: 0.6;
    transform: translate(-1.35px, 0.45px);
}
.xlogo-medium.xlogo-glitch-active .xlogo-glitch-cyan {
    opacity: 0.6;
    transform: translate(1.35px, -0.45px);
}
/* Small (20px): 20/80 * 3 = 0.75px */
.xlogo-small.xlogo-glitch-active .xlogo-glitch-red {
    opacity: 0.6;
    transform: translate(-0.75px, 0.25px);
}
.xlogo-small.xlogo-glitch-active .xlogo-glitch-cyan {
    opacity: 0.6;
    transform: translate(0.75px, -0.25px);
}
.xlogo-char-e.xlogo-morphed .xlogo-normal-char {
    opacity: 0;
}
.xlogo-char-e.xlogo-morphed .xlogo-glitch-char {
    opacity: 1;
}
.xlogo.xlogo-glitch-active .xlogo-dollar-run {
    opacity: 0;
    transition: opacity 0.05s;
}

/* Size: large */
.xlogo-large .xlogo-dollar-run { font-size: 20px; margin-bottom: -19px; margin-left: -8px; }
.xlogo-large .xlogo-text-layer { font-size: 80px; }
.xlogo-large .xlogo-ai-suffix { font-size: 28px; margin-left: 24px; }
.xlogo-large .xlogo-cursor { width: 18px; height: 52px; }
.xlogo-large .xlogo-slogan { font-size: 14px; }

/* Size: medium */
.xlogo-medium .xlogo-dollar-run { font-size: 12px; margin-bottom: -8px; margin-left: -4px; }
.xlogo-medium .xlogo-text-layer { font-size: 36px; }
.xlogo-medium .xlogo-ai-suffix { font-size: 14px; margin-left: 18px; }
.xlogo-medium .xlogo-cursor { width: 10px; height: 24px; }
.xlogo-medium .xlogo-slogan { font-size: 11px; }

/* Size: small */
.xlogo-small .xlogo-dollar-run { font-size: 7px; margin-bottom: -4px; margin-left: -2px; }
.xlogo-small .xlogo-text-layer { font-size: 20px; }
.xlogo-small .xlogo-ai-suffix { font-size: 8px; margin-left: 10px; }
.xlogo-small .xlogo-cursor { width: 5px; height: 14px; }
.xlogo-small .xlogo-slogan { font-size: 8px; }

/* Checkbox (square border around $x) */
.xlogo-checkbox {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-1%, -58%);
    aspect-ratio: 1;
    height: 102%;
    border: 6px solid #cc0033;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.05s;
    z-index: 2;
}
.xlogo.xlogo-box-active .xlogo-checkbox {
    opacity: 0.3;
    transform: translate(-8%, -58%);
    box-shadow: -3px 1px 0 rgba(255,0,64,0.6), 3px -1px 0 rgba(0,212,255,0.6);
}
.xlogo.xlogo-box-active .xlogo-char-e,
.xlogo.xlogo-box-active .xlogo-char-x {
    transform: translateX(-40%);
}
.xlogo-medium .xlogo-checkbox { border-width: 3px; }
.xlogo-small .xlogo-checkbox { border-width: 2px; }

/* Hidden cat */
.xlogo-cat-canvas {
    position: absolute;
    right: -10px;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.05s;
}

/* Fast mode for hold interaction */
.xlogo-char-x .xlogo-glitch-char.xlogo-fast {
    transition: transform 0.12s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.05s;
}

/* Tear slices */
.xlogo-tear-slice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    text-align: left;
}

/* Flying dollar */
.xlogo-flying-dollar {
    position: absolute;
    color: #00ff41;
    font-weight: 700;
    pointer-events: none;
    z-index: 20;
    will-change: transform;
    text-shadow: 0 0 8px rgba(0,255,65,0.5);
}

/* Flying run text */
.xlogo-flying-run {
    position: absolute;
    color: #00ff41;
    pointer-events: none;
    z-index: 20;
    will-change: transform, opacity;
    text-shadow: 0 0 8px rgba(0,255,65,0.5);
}

@keyframes xlogo-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Sections */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Features Section */
.features-section {
    background: var(--bg-darker);
    max-width: none;
    padding: 6rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--matrix-green);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--matrix-green);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works-section {
    text-align: center;
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* .step styles moved to Home.razor for better control */

.step-number {
    width: 48px;
    height: 48px;
    background: var(--matrix-green);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* step-arrow moved to Home.razor */

/* Pricing Section */
.pricing-section {
    background: var(--bg-darker);
    max-width: none;
    padding: 6rem 2rem;
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    margin-top: -2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card.featured {
    border-color: var(--matrix-green);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--matrix-green);
    color: var(--bg-dark);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--matrix-green);
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: "✓";
    color: var(--matrix-green);
    margin-right: 0.5rem;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 100%;
    display: block;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--matrix-green);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FAQ Page */
.faq-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
}

.faq-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary, #f8f8f8);
    font-family: 'JetBrains Mono', monospace;
}

.faq-page .search-box {
    position: relative;
    margin-bottom: 2rem;
}

.faq-page .search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border, #333);
    border-radius: 8px;
    background: var(--bg-surface, #1a1a1a);
    color: var(--text-primary, #f8f8f8);
    font-family: 'JetBrains Mono', monospace;
}

.faq-page .search-box input::placeholder {
    color: var(--text-muted, #666);
}

.faq-page .search-box input:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.faq-page .clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary, #a0a0a0);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.faq-page .clear-search:hover {
    color: #00ff41;
}

.faq-page .no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary, #a0a0a0);
}

.faq-category {
    margin-bottom: 2rem;
}

.faq-category h2 {
    font-size: 1.25rem;
    color: #00ff41;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00ff41;
    font-family: 'JetBrains Mono', monospace;
}

.faq-page .faq-item {
    border: 1px solid var(--border, #333);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s;
    background: var(--bg-surface, #1a1a1a);
}

.faq-page .faq-item:hover {
    border-color: #00ff41;
}

.faq-page .faq-item.expanded {
    border-color: #00ff41;
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    background: var(--bg-surface, #1a1a1a);
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-hover, #252525);
}

.expand-icon {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #00ff41;
    margin-top: 0.25rem;
}

.question-text {
    font-weight: 500;
    color: var(--text-primary, #f8f8f8);
}

.faq-answer {
    padding: 1rem 1rem 1rem 2.5rem;
    background: var(--bg-primary, #0a0a0a);
    border-top: 1px solid var(--border, #333);
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.6;
}

.faq-answer p {
    margin: 0 0 1rem 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul, .faq-answer ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.25rem;
}

.faq-answer a {
    color: #00ff41;
    text-decoration: underline;
}

.faq-answer code {
    background: var(--bg-surface, #1a1a1a);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    padding: 8rem 2rem;
    max-width: none;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Footer */
.app-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--matrix-green);
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--matrix-green);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Mobile Menu Button - hidden by default on desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--matrix-green);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
}

.mobile-menu a,
.mobile-menu button {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
    color: var(--matrix-green);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu a.cta {
    background: var(--matrix-green);
    color: var(--bg-dark);
    text-align: center;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .hero-cta {
        flex-direction: column;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .pricing-card.featured {
        transform: none;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Progress */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--matrix-green);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    color: var(--matrix-green);
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* Error UI */
#blazor-error-ui {
    background: var(--glitch-red);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: var(--glitch-red);
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Auth Pages */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 100px;
}

.auth-container {
    width: 50%;
    min-width: 420px;
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin: 1rem 0 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--matrix-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1);
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

.password-input-wrapper .form-input.password-input {
    padding-right: 5.25rem; /* room for 2 icon buttons */
}

.password-input-wrapper .form-input.password-input.password-input--single {
    padding-right: 3rem; /* room for 1 icon button */
}

.password-action-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s, background-color 0.15s;
}

.password-action-btn:hover:not(:disabled) {
    color: var(--matrix-green);
    background: rgba(255, 255, 255, 0.05);
}

.password-action-btn:focus-visible {
    outline: 2px solid var(--matrix-green);
    outline-offset: 2px;
}

.password-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.password-toggle-btn {
    right: 0.5rem;
}

.password-generate-btn {
    right: 2.75rem;
}

.password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.password-requirements span {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-darker);
    border-radius: 4px;
    color: var(--text-secondary);
}

.password-requirements span.valid {
    color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.btn-text:hover {
    color: var(--matrix-green);
}

.btn-danger {
    background: transparent;
    color: var(--glitch-red);
    border: 1px solid var(--glitch-red);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ff4060;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 0, 64, 0.1);
    border: 1px solid var(--glitch-red);
    color: var(--glitch-red);
}

.alert-success {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--matrix-green);
    color: var(--matrix-green);
}

.auth-terms {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

.auth-terms a {
    color: var(--matrix-green);
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--matrix-green);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

.spinner-large {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Account Page */
.account-section {
    /* 1200px matches the site-wide content width (nav, footer, admin, pricing) so the
       account page right gutter lines up with the header gutter — keeps the Account and
       Sign Out buttons sharing the same right anchor for left-edge alignment */
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 100px;
    min-height: 100vh;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.account-header h1 {
    font-size: 2rem;
}

/* Header Account button and account-page Sign Out button share an equal min-width so
   their left edges align (both right-anchored to the same 1200px gutter) */
.nav-links a.btn-secondary[href="/account"],
.account-header .btn-secondary {
    min-width: 120px;
    text-align: center;
}

.nav-links a.btn-secondary[href="/account"] {
    display: inline-block;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

/* Profile spans two grid rows so the right column fills with Download App on
   top and Security underneath, ending flush with the Profile block. Falls
   back gracefully to a single-row layout when the grid collapses to 1 col
   on small screens (handled by the existing @media (max-width:768px) rule
   that switches .account-grid to grid-template-columns:1fr). */
.account-card.profile-card {
    grid-row: span 2;
}

.account-card h2 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subscription-card {
    grid-column: 1 / -1;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--matrix-green), var(--glitch-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bg-dark);
}

.profile-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.profile-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: rgba(0, 255, 65, 0.15);
    color: var(--matrix-green);
}

.badge-warning {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
}

.badge-muted {
    background: rgba(255, 255, 255, 0.08);
    color: #64748b;
}

.badge-info {
    background: rgba(0, 212, 255, 0.15);
    color: var(--glitch-cyan);
}

.badge-danger {
    background: rgba(255, 0, 64, 0.15);
    color: var(--glitch-red);
}

.badge-default {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.security-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-label {
    font-size: 0.9rem;
}

.subscription-free, .subscription-active {
    text-align: center;
}

.subscription-free h3, .subscription-active h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.subscription-free p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.subscription-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subscription-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.subscription-limits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.limit-item {
    text-align: center;
}

.limit-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--matrix-green);
}

.limit-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cancel-confirm {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.cancel-confirm p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.cancel-confirm-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: "✓ ";
    color: var(--matrix-green);
    margin-right: 0.5rem;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.auth-required {
    text-align: center;
    padding: 3rem;
}

.auth-required h2 {
    margin: 1.5rem 0 0.5rem;
}

.auth-required p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal,
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2,
.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.secret-display {
    background: var(--bg-darker);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.secret-display code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--matrix-green);
    word-break: break-all;
}

/* Admin Pages */
.admin-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 100px;
    min-height: 100vh;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.admin-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Shared AdminLayout (Layout/AdminLayout.razor) tab strip. Lives DIRECTLY in
   the .app-main slot (no .admin-section wrapper between it and the fixed
   .app-header), so it needs its own header-clearance padding + horizontal
   centering matching .admin-section. Without this the 27-tab strip rendered
   at top:0 and was hidden behind the position:fixed MainLayout header
   (Bug #1 regression observed by user 2026-05-25 in Screenshot_2026-05-25_00-11-50.png).
   Feature jsrKotK2Fg / Task qza16GgL0j iter 2. */
.admin-nav.admin-nav-sticky {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem 1rem;
    box-sizing: border-box;
}

/* When the page-level .admin-section is a sibling that follows the
   AdminLayout-provided sticky nav, its own padding-top:100px would push
   content far below the nav. Tighten the gap so the section's content
   sits directly under the nav strip instead. */
.admin-nav.admin-nav-sticky ~ .admin-section {
    padding-top: 1rem;
}

.admin-nav-item {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.admin-nav-item:hover {
    border-color: var(--matrix-green);
    color: var(--text-primary);
}

.admin-nav-item.active {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--matrix-green);
    color: var(--matrix-green);
}

.access-denied {
    text-align: center;
    padding: 4rem 2rem;
}

.access-denied h2 {
    margin-bottom: 1rem;
}

.access-denied p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card.highlight {
    border-color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.05);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--matrix-green);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.admin-card h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.growth-stats {
    display: flex;
    justify-content: space-around;
}

.growth-item {
    text-align: center;
}

.growth-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--matrix-green);
}

.growth-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.security-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.stat-percent {
    color: var(--matrix-green);
    font-weight: 500;
}

.progress-bar {
    height: 6px;
    background: var(--bg-darker);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--matrix-green), var(--glitch-cyan));
    transition: width 0.3s;
}

.plan-list {
    list-style: none;
}

.plan-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.plan-list li:last-child {
    border-bottom: none;
}

.plan-name {
    font-weight: 500;
}

.plan-count {
    color: var(--matrix-green);
    font-weight: 600;
}

.no-data {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

/* Admin Table */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.toolbar-tabs {
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card, #0a0a1a);
    border: 1px solid var(--border-color, #1e1e3a);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.08);
    border-color: rgba(0, 255, 65, 0.3);
}

.toolbar-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Admin inline selects (status/priority dropdowns in tables) */
.admin-section select {
    padding: 0.4rem 1.75rem 0.4rem 0.6rem;
    background-color: var(--bg-darker, #050505);
    border: 1px solid var(--border-color, #1e1e3a);
    border-radius: 6px;
    color: var(--text-primary, #e0e0e0);
    color-scheme: dark;
    font-size: 0.8rem;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2300ff41' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    transition: border-color 0.2s;
}

.admin-section select option {
    background: var(--bg-darker, #050505);
    color: var(--text-primary, #e0e0e0);
}

.admin-section select:focus {
    outline: none;
    border-color: var(--matrix-green);
    box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.1);
}

.admin-section select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Auto-style inputs/selects inside admin modals (dark theme) */
.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content input[type="date"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
    color-scheme: dark;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--matrix-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1);
}

/* Small button variant */
.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Feedback toolbar — stacked layout */
.feedback-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feedback-toolbar .toolbar-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.toolbar-search {
    width: 260px;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
}

.form-select {
    padding: 0.625rem 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-select:focus {
    outline: none;
    border-color: var(--matrix-green);
}

.search-bar {
    margin-bottom: 1.5rem;
}

.search-bar .form-input {
    max-width: 400px;
}

.admin-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-darker);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table tr.row-critical {
    background: rgba(255, 0, 64, 0.05);
    border-left: 3px solid var(--glitch-red);
}

.admin-table input[type="checkbox"],
.admin-section input[type="checkbox"] {
    accent-color: var(--matrix-green);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.actions-cell {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: nowrap;
}

/* Icon action buttons */
.action-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color, #1e1e3a);
    border-radius: 6px;
    background: var(--bg-darker, #050505);
    color: var(--text-secondary, #888);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 0;
    line-height: 1;
}

.action-icon-btn svg {
    width: 16px;
    height: 16px;
}

.action-icon-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.action-icon-btn.action-view:hover {
    border-color: rgba(99, 102, 241, 0.5);
    color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
}

.action-icon-btn.action-resolve:hover {
    border-color: rgba(0, 255, 65, 0.5);
    color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.1);
}

.action-icon-btn.action-reopen:hover {
    border-color: rgba(0, 212, 255, 0.5);
    color: var(--glitch-cyan);
    background: rgba(0, 212, 255, 0.1);
}

.action-icon-btn.action-reply:hover {
    border-color: rgba(168, 85, 247, 0.5);
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

.action-icon-btn.action-delete:hover {
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.truncate {
    display: inline-block;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-data {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem !important;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--matrix-green), var(--glitch-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.user-info .user-name {
    font-weight: 500;
}

.user-info .user-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.no-data-cell {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem !important;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.page-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Admin Cards Grid */
.admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.subscription-admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.subscription-admin-card.inactive {
    opacity: 0.6;
}

.subscription-admin-card .sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.subscription-admin-card .sub-header h3 {
    font-size: 1.25rem;
}

.subscription-admin-card .sub-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--matrix-green);
    margin-bottom: 0.75rem;
}

.subscription-admin-card .sub-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.subscription-admin-card .sub-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.subscription-admin-card .sub-limits {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.subscription-admin-card .limit {
    display: flex;
    flex-direction: column;
}

.subscription-admin-card .limit-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.subscription-admin-card .limit-value {
    font-weight: 600;
    color: var(--text-primary);
}

.subscription-admin-card .sub-features h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.subscription-admin-card .sub-features ul {
    list-style: none;
    font-size: 0.85rem;
}

.subscription-admin-card .sub-features li {
    padding: 0.25rem 0;
}

.subscription-admin-card .sub-features li::before {
    content: "• ";
    color: var(--matrix-green);
}

.subscription-admin-card .sub-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.subscription-admin-card .sub-sync-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.subscription-admin-card .sub-sync-status.synced {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.subscription-admin-card .sub-sync-status.not-synced {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.btn-paddle {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-paddle:hover { background: #2563eb; }
.btn-paddle:disabled { opacity: 0.5; cursor: default; }

.btn-country-prices {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-country-prices:hover { background: rgba(139, 92, 246, 0.25); }

.btn-country-prices .badge-small {
    font-size: 0.65rem;
    background: #8b5cf6;
    color: #fff;
    border-radius: 10px;
    padding: 0.1rem 0.35rem;
    margin-left: 0.25rem;
}

.sync-toast {
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.sync-toast.sync-success { background: rgba(76, 175, 80, 0.15); color: #4caf50; }
.sync-toast.sync-error { background: rgba(244, 67, 54, 0.15); color: #f44336; }

/* Country Prices — Inline Editor */
.modal-xl {
    max-width: 1100px;
    width: 95%;
}

.country-prices-base-info {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.country-prices-table-wrapper {
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.country-prices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.country-prices-table thead th {
    position: sticky;
    top: 0;
    background: var(--bg-secondary, #1e1e2e);
    padding: 0.5rem 0.6rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    white-space: nowrap;
}

.country-prices-table tbody td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.country-prices-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.country-prices-table tbody tr.manual-override { background: rgba(139, 92, 246, 0.08); }

.country-prices-table .price-col {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.tier-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.tier-badge.tier-premium { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
.tier-badge.tier-standard { background: rgba(100, 181, 246, 0.2); color: #64b5f6; }
.tier-badge.tier-growth { background: rgba(76, 175, 80, 0.2); color: #4caf50; }
.tier-badge.tier-emerging { background: rgba(255, 152, 0, 0.2); color: #ff9800; }

.country-prices-footer {
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Country Prices — Inline Section & Edit Controls */
.country-prices-section {
    margin-top: 1.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.country-prices-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.country-prices-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.country-prices-filter-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.country-prices-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.price-cell-editable {
    cursor: pointer;
    transition: background 0.15s;
}

.price-cell-editable:hover {
    background: rgba(139, 92, 246, 0.12) !important;
}

.price-edit-inline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.price-edit-input {
    width: 80px;
    padding: 0.2rem 0.3rem;
    font-size: 0.8rem;
    background: var(--bg-card, #111);
    color: var(--text-primary);
    border: 1px solid #8b5cf6;
    border-radius: 4px;
    text-align: right;
}

.price-edit-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.btn-save-price,
.btn-cancel-price {
    padding: 0.15rem 0.35rem;
    font-size: 0.75rem;
    border-radius: 3px;
    line-height: 1;
}

.btn-save-price {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.btn-save-price:hover { background: rgba(76, 175, 80, 0.35); }

.btn-cancel-price {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.btn-cancel-price:hover { background: rgba(244, 67, 54, 0.3); }

.btn-reset-price {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    cursor: pointer;
}

.btn-reset-price:hover { background: rgba(255, 152, 0, 0.3); }

.price-override {
    color: #8b5cf6;
    font-weight: 600;
}

/* Translation Admin */
.translation-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.translation-filter .form-select,
.translation-filter .form-input {
    flex: 1;
    max-width: 300px;
}

.key-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    background: var(--bg-darker);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--glitch-cyan);
}

.category-badge {
    background: rgba(0, 212, 255, 0.15);
    color: var(--glitch-cyan);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.default-text-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.translation-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Modal Large */
.modal-large {
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    flex-shrink: 0;
}

/* App Loading */
.app-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-dark);
}

.loading-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--matrix-green);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    margin-bottom: 2rem;
}

.loading-logo span {
    opacity: 0.5;
    font-size: 0.8em;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--matrix-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero-section {
        padding: 6rem 1rem 3rem;
    }

    .features-grid,
    .pricing-grid,
    .admin-grid,
    .account-grid,
    .admin-cards-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-right {
        flex-direction: column;
    }

    .admin-table-container {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 600px;
    }
}

/* Account Profile Management */
.forgot-password-link {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    color: var(--accent-color, #6366f1);
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.field-hint {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.field-hint.checking {
    color: #94a3b8;
}

.field-hint.available {
    color: #22c55e;
}

.field-hint.taken {
    color: #ef4444;
}

.form-input.input-valid {
    border-color: #22c55e;
}

.form-input.input-invalid {
    border-color: #ef4444;
}

.profile-edit-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-field {
    margin-bottom: 1rem;
}

.edit-field label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.edit-field-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.edit-field-row .form-input {
    flex: 1;
}

.username-display {
    color: #94a3b8;
    font-size: 0.9rem;
}

.inline-form {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
}

.security-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

/* Promo Codes */
.promo-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.375rem;
}

.promo-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #00ff41;
    background: rgba(0, 255, 65, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.promo-expiry {
    color: #64748b;
    font-size: 0.8rem;
    margin-left: auto;
}

.redeem-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.redeem-section h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.redeem-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.redeem-form .input-field {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
}

/* Download Card */
.download-card {
    border-color: rgba(0, 255, 65, 0.3) !important;
}

.download-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.download-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.download-info h3 {
    color: #00ff41;
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
    font-family: 'JetBrains Mono', monospace;
}

.download-platform {
    color: #a0a0a0;
    font-size: 0.8rem;
    margin: 0 0 0.25rem;
}

.download-desc {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
}

.btn-download {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    transition: all 0.2s;
}

.btn-download:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.danger-zone {
    border-color: rgba(255, 0, 64, 0.3) !important;
}

.danger-zone h2 {
    color: var(--glitch-red);
}

.danger-zone p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.danger-zone .btn-danger {
    background: var(--glitch-red);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.danger-zone .btn-danger:hover {
    background: #cc0033;
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.4);
}

/* Pricing Page (dedicated /pricing route) */
.pricing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 120px;
    min-height: 100vh;
}

.pricing-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.pricing-page .pricing-subtitle {
    margin-top: 0;
}

.pricing-page .pricing-grid {
    max-width: 1100px;
}

.pricing-price {
    margin: 1.5rem 0;
}

.pricing-price .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--matrix-green);
}

.pricing-price .price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-height: 2.5em;
}

.pricing-action {
    margin-top: auto;
}

.pricing-card .btn-full {
    width: 100%;
    display: block;
    text-align: center;
}

.pricing-card.current {
    border-color: var(--glitch-cyan);
}

.pricing-badge.current-badge {
    background: var(--glitch-cyan);
}

.pricing-features .more-features {
    color: var(--text-secondary);
    font-style: italic;
}

.pricing-features .more-features::before {
    content: "";
    margin-right: 0;
}

.pricing-card button:disabled,
.pricing-card a.btn-secondary[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.pricing-faq {
    margin-top: 5rem;
    text-align: center;
}

.pricing-faq h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.pricing-faq .faq-grid {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-faq .faq-item h4 {
    margin-bottom: 0.5rem;
}

/* Subscription upgrade cards on Account page */
.upgrade-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.upgrade-plan-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}

.upgrade-plan-card.active-plan {
    border-color: var(--glitch-cyan);
}

.upgrade-plan-card h4 {
    margin-bottom: 0.25rem;
}

.upgrade-plan-card .plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--matrix-green);
    margin: 0.5rem 0;
}

.upgrade-plan-card .plan-price span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.upgrade-plan-card .plan-limits {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.upgrade-plan-card .btn-primary,
.upgrade-plan-card .btn-secondary {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Pricing hint on login/register pages */
.pricing-hint {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.pricing-hint p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.pricing-hint a {
    color: var(--matrix-green);
    text-decoration: none;
}

.pricing-hint a:hover {
    text-decoration: underline;
}

.plan-selection-banner {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    text-align: center;
}

.plan-selection-banner p {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0;
}

.plan-selection-banner strong {
    color: var(--matrix-green);
}

/* --- 6-Tier Subscription: Category Toggle --- */
.pricing-category-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.category-btn:hover {
    border-color: var(--matrix-green);
    color: var(--text-primary);
}

.category-btn.active {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--matrix-green);
    color: var(--matrix-green);
    font-weight: 600;
}

.category-btn .category-icon {
    margin-right: 0.4rem;
}

.pricing-category-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 6-Tier Subscription: Tier Badges --- */
.plan-tier-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.basic-badge {
    background: rgba(100, 181, 246, 0.15);
    color: #64b5f6;
    border: 1px solid rgba(100, 181, 246, 0.3);
}

.expert-badge {
    background: rgba(0, 255, 65, 0.1);
    color: var(--matrix-green);
    border: 1px solid rgba(0, 255, 65, 0.25);
}

/* --- 6-Tier Subscription: Expert Card Accent --- */
.pricing-card.expert-card {
    border-color: rgba(0, 255, 65, 0.2);
}

.pricing-card.expert-card:hover {
    border-color: rgba(0, 255, 65, 0.4);
}

/* --- 6-Tier Subscription: Trial Badge --- */
.pricing-badge.trial-badge {
    background: rgba(100, 181, 246, 0.15);
    color: #64b5f6;
}

/* --- 6-Tier Subscription: Alternative Pricing --- */
.pricing-alternatives {
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pricing-alt-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.pricing-alt-option .alt-label {
    color: var(--text-secondary);
}

.pricing-alt-option .alt-price {
    color: var(--matrix-green);
    font-weight: 600;
}

.pricing-alt-option .alt-note {
    width: 100%;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-align: right;
}

/* --- 6-Tier Subscription: Revenue Threshold --- */
.revenue-threshold {
    color: #64b5f6;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* --- 6-Tier Subscription: Comparison Table --- */
.comparison-section {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.comparison-section h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table thead th {
    background: var(--bg-darker);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comparison-table tbody td {
    color: var(--text-primary);
}

.comparison-table .basic-col {
    text-align: center;
    color: var(--text-secondary);
}

.comparison-table .expert-col {
    text-align: center;
    color: var(--matrix-green);
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table .target-row td {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.feature-yes {
    color: var(--matrix-green);
    font-weight: 700;
}

.feature-no {
    color: var(--text-muted);
}

/* --- 6-Tier Subscription: AI Provider Notice --- */
.ai-notice {
    max-width: 800px;
    margin: 2.5rem auto 0;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ai-notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ai-notice-content h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.ai-notice-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

/* --- 6-Tier Subscription: Home Page Pricing Hints --- */
.pricing-company-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.home-ai-notice {
    max-width: 700px;
    margin: 1.5rem auto 0;
    padding: 0.75rem 1rem;
    background: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.15);
    border-radius: 6px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.home-ai-notice a {
    color: var(--matrix-green);
    text-decoration: none;
}

.home-ai-notice a:hover {
    text-decoration: underline;
}

.home-pricing-company-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

/* --- Admin Subscription: Alt Price --- */
.sub-alt-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* Feedback Page */
.feedback-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.feedback-header {
    margin-bottom: 2rem;
}

.feedback-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feedback-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feedback-form-card,
.feedback-history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.feedback-form-card h2,
.feedback-history-card h2 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.type-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.type-btn {
    flex: 1;
    padding: 0.6rem 0.75rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.type-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.type-btn.active.bug {
    background: rgba(255, 0, 64, 0.1);
    border-color: var(--glitch-red);
    color: var(--glitch-red);
}

.type-btn.active.feature {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--glitch-cyan);
    color: var(--glitch-cyan);
}

.type-btn.active.feedback {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--matrix-green);
    color: var(--matrix-green);
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.submission-item {
    padding: 0.75rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.submission-item:hover {
    border-color: var(--matrix-green);
}

.submission-item.resolved {
    opacity: 0.7;
}

.submission-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.submission-subject {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.submission-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.resolution-badge {
    color: var(--matrix-green);
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
    word-break: break-all;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-section {
    margin-bottom: 1rem;
}

.detail-section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.detail-message {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}

.resolution-section {
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 8px;
    padding: 1rem;
}

.resolution-text {
    border-color: rgba(0, 255, 65, 0.15);
}

.screenshot-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0.5rem;
}

.screenshot-thumb-wrap {
    position: relative;
    display: inline-block;
}

.screenshot-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: opacity 0.15s;
}

.screenshot-thumb:hover {
    opacity: 0.8;
}

.screenshot-delete-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #e53e3e;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}

.screenshot-thumb-wrap:hover .screenshot-delete-btn {
    opacity: 1;
}

.screenshot-size {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
}

.text-center {
    text-align: center;
}

.auth-required {
    text-align: center;
    padding: 4rem 2rem;
}

.auth-required h2 {
    margin-bottom: 0.75rem;
}

.auth-required p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .feedback-layout {
        grid-template-columns: 1fr;
    }

    .type-selector {
        flex-direction: column;
    }
}

/* Payment tab — Paddle portal button + note layout (R4-B, Task 0iKMsVTBu5).
   The Paddle anchor is .btn-primary which defaults to inline-block; without a
   block-level wrapper its vertical margin collapsed against the preceding <p>
   making it visually overlap the intro text. Wrap in a block row + spaced note. */
.payment-portal-row {
    display: block;
    margin-top: 1rem;
}

.payment-portal-note {
    margin-top: 1rem;
    font-size: 0.85rem;
}
