/* 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;600&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;
}

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;
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--matrix-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.logo-ai {
    opacity: 0.5;
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

.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;
}

.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-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 Component Styles */
.exployt-logo {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
}

.exployt-logo.dark {
    --logo-color: var(--matrix-green);
    --logo-glow: rgba(0, 255, 65, 0.7);
}

.exployt-logo.light {
    --logo-color: var(--bg-dark);
    --logo-glow: none;
}

.exployt-logo.size-sm .logo-text-main { font-size: 24px; }
.exployt-logo.size-md .logo-text-main { font-size: 36px; }
.exployt-logo.size-lg .logo-text-main { font-size: 48px; }

.logo-run {
    font-size: 12px;
    color: var(--logo-color);
    opacity: 0.5;
    margin-bottom: -17px;
    margin-left: -6px;
    text-shadow: 0 0 8px var(--logo-glow);
}

.logo-main {
    display: flex;
    align-items: baseline;
    position: relative;
}

.logo-text-main {
    font-weight: 500;
    color: var(--logo-color);
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--logo-glow), 0 0 20px rgba(0, 255, 65, 0.5), 0 0 40px rgba(0, 255, 65, 0.3);
    animation: glow 2s ease-in-out infinite;
}

.logo-glitch {
    position: absolute;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.08;
    transition: all 0.05s;
}

.logo-glitch.red {
    color: var(--glitch-red);
    transform: translate(-1px, 0);
}

.logo-glitch.cyan {
    color: var(--glitch-cyan);
    transform: translate(1px, 0);
}

.logo-glitch.active.red {
    opacity: 0.6;
    transform: translate(-3px, 1px);
}

.logo-glitch.active.cyan {
    opacity: 0.6;
    transform: translate(3px, -1px);
}

.logo-ai-text {
    font-size: 14px;
    color: var(--logo-color);
    opacity: 0.5;
    margin-left: 18px;
    text-shadow: 0 0 8px var(--logo-glow);
}

.logo-cursor {
    display: inline-block;
    width: 10px;
    height: 24px;
    background: var(--logo-color);
    margin-left: 6px;
    animation: blink 1s infinite;
    box-shadow: 0 0 10px var(--logo-glow), 0 0 20px rgba(0, 255, 65, 0.5);
}

.logo-slogan {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--logo-color);
    opacity: 0.6;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
    margin-top: 12px;
    text-align: center;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0,255,65,0.7), 0 0 20px rgba(0,255,65,0.5), 0 0 40px rgba(0,255,65,0.3);
    }
    50% {
        text-shadow: 0 0 6px rgba(0,255,65,0.6), 0 0 16px rgba(0,255,65,0.4), 0 0 30px rgba(0,255,65,0.25);
    }
}

/* 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 {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
}

.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 h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-arrow {
    color: var(--matrix-green);
    font-size: 2rem;
    margin-top: 1rem;
    opacity: 0.5;
}

/* 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;
}

/* 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;
}

.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;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a:not(.btn-primary):not(.btn-secondary) {
        display: none;
    }

    .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: 100%;
    max-width: 420px;
    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-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 {
    color: var(--glitch-red) !important;
}

.btn-danger:hover {
    color: #ff4060 !important;
}

.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 {
    max-width: 1000px;
    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;
}

.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;
}

.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-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);
}

.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);
}

.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 {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    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;
}

.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;
}

.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: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.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: hidden;
}

.admin-table {
    width: 100%;
    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);
}

.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;
}

/* 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: 600px;
}

.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;
    margin-top: 1.5rem;
}

/* 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;
}

/* Nav Logout Button */
.nav-logout {
    padding: 0.5rem 1rem !important;
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
}

.nav-logout:hover {
    color: var(--glitch-red) !important;
}

/* 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;
    }
}
