/* TorScript — Vercel-inspired Landing Page */
:root {
    --bg: #000;
    --bg-subtle: #0a0a0a;
    --bg-card: #111;
    --border: #222;
    --border-hover: #333;
    --text: #ededed;
    --text-secondary: #888;
    --text-tertiary: #666;
    --accent: #fff;
    --blue: #0070f3;
    --blue-dark: #0060df;
    --blue-glow: rgba(0,112,243,0.15);
    --purple: #7928ca;
    --pink: #ff0080;
    --cyan: #79ffe1;
    --green: #50e3c2;
    --orange: #f5a623;
    --red: #e00;
    --success: #0070f3;
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1100px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text-secondary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--text); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0,0,0,0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-logo svg, .nav-logo i { font-size: 20px; color: var(--text); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    background: var(--text) !important;
    color: var(--bg) !important;
    font-weight: 500 !important;
    padding: 6px 16px !important;
    border-radius: 6px;
    font-size: 14px !important;
}

.nav-cta:hover { opacity: 0.9; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* ========== HERO ========== */
.hero {
    padding: 160px 0 120px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: conic-gradient(from 180deg at 50% 50%, var(--blue) 0deg, var(--purple) 120deg, var(--pink) 240deg, var(--blue) 360deg);
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 16px 6px 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-badge strong { color: var(--text); font-weight: 500; }

.hero h1 {
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    position: relative;
}

.hero h1 .gradient-text {
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .gradient-accent {
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    position: relative;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: #ccc;
    color: #000;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: #1a1a1a;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text-secondary);
    color: var(--text);
}

.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: var(--blue-dark); color: #fff; }

/* ========== SECTIONS ========== */
section {
    padding: 100px 0;
    position: relative;
}

.section-divider {
    height: 1px;
    background: var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-label {
    display: inline-block;
    color: var(--text-secondary);
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* ========== FEATURES ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-card {
    background: var(--bg);
    padding: 40px 32px;
    transition: background 0.2s;
}

.feature-card:hover {
    background: var(--bg-card);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ========== CODE WINDOW ========== */
.code-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 680px;
    margin: 64px auto 0;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-hover);
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-title {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-left: 8px;
    font-family: var(--font-mono);
}

.code-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary);
    overflow-x: auto;
}

.code-body .keyword { color: var(--pink); }
.code-body .string { color: var(--cyan); }
.code-body .function { color: var(--blue); }
.code-body .comment { color: var(--text-tertiary); }
.code-body .number { color: var(--orange); }

/* ========== HOW IT WORKS ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}

.step {
    text-align: center;
    position: relative;
    padding: 0 16px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    transition: all 0.2s;
}

.step:hover .step-number {
    border-color: var(--text-secondary);
    color: var(--text);
}

.step h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* ========== PRICING ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--border);
}

.price-card {
    background: var(--bg);
    padding: 48px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card.popular {
    background: var(--bg-card);
}

.popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--blue);
    color: #fff;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.price-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.price-card .price {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 16px 0 8px;
}

.price-card .price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-tertiary);
}

.price-card .price-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}

.price-features li {
    padding: 6px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.price-features li i {
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.price-features li i.fa-check { color: var(--text); }
.price-features li i.fa-times { color: var(--text-tertiary); opacity: 0.4; }

.price-card .btn { width: 100%; justify-content: center; }
.price-card.popular .btn { background: #fff; color: #000; }
.price-card.popular .btn:hover { background: #ccc; }

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.testimonial {
    background: var(--bg);
    padding: 32px;
}

.testimonial:hover {
    background: var(--bg-card);
}

.testimonial-stars {
    color: var(--orange);
    margin-bottom: 16px;
    font-size: 12px;
    letter-spacing: 2px;
}

.testimonial p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
}

.testimonial-name {
    font-weight: 500;
    font-size: 13px;
    color: var(--text);
}

.testimonial-role {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ========== STATS BAR ========== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stat-item {
    background: var(--bg);
    padding: 32px;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

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

/* ========== CTA ========== */
.cta-section {
    text-align: center;
    padding: 120px 0;
    position: relative;
    border-top: 1px solid var(--border);
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: conic-gradient(from 0deg at 50% 100%, var(--blue) 0deg, var(--purple) 180deg, var(--pink) 360deg);
    filter: blur(100px);
    opacity: 0.08;
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    position: relative;
    line-height: 1.1;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
    position: relative;
}

/* ========== FOOTER ========== */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text);
}

.footer-brand h3 i { color: var(--text-secondary); }

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }

.footer-col ul a {
    color: var(--text-tertiary);
    font-size: 13px;
    transition: color 0.15s;
}

.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ========== CHECKOUT PAGE ========== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    padding-top: 100px;
    min-height: 100vh;
}

.checkout-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.order-summary {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: fit-content;
}

.order-summary h3 { font-size: 16px; margin-bottom: 20px; }

.order-line {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

.order-line:last-child { border-bottom: none; }

.order-total {
    font-size: 20px;
    font-weight: 700;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    color: var(--text-secondary);
}

.payment-method:hover { border-color: var(--border-hover); }
.payment-method.selected { border-color: #fff; color: var(--text); }

.payment-method i { font-size: 20px; margin-bottom: 4px; display: block; }
.payment-method span { font-size: 13px; }

/* Thank You */
.thankyou-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
}

.thankyou-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.thankyou-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(80,227,194,0.1);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px;
}

.license-key-display {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.license-key-display .copy-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
}

.license-key-display .copy-btn:hover {
    color: var(--text);
    background: var(--border);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; gap: 1px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid::before { display: none; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 48px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 120px 0 80px; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    section { padding: 64px 0; }
    .section-header h2 { font-size: 28px; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .checkout-layout { grid-template-columns: 1fr; padding-top: 90px; }
    .order-summary { position: static; }
    .code-window { margin-top: 40px; }
}

/* ========== MOBILE NAV ========== */
.nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
}

.nav-links.mobile-open a {
    padding: 12px 16px;
    font-size: 15px;
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
}

a.product-card:hover {
    border-color: var(--text-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.product-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-top: 16px;
}

.product-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-link i {
    font-size: 12px;
    transition: transform 0.15s;
}

a.product-card:hover .product-link i {
    transform: translateX(4px);
}

.product-card.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.coming-soon-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* ========== ACCOUNT PORTAL ========== */
.account-layout {
    display: flex;
    min-height: 100vh;
    background: #0a0a0f;
}

.account-sidebar {
    width: 260px;
    background: #0f0f17;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.sidebar-logo svg { opacity: 0.9; }

.sidebar-user {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-user-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.sidebar-nav a.active {
    color: #fff;
    background: rgba(108,92,231,0.15);
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.sidebar-nav .nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 12px 14px;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.15s;
}

.sidebar-footer a:hover { color: #ff6b7a; background: rgba(220,53,69,0.08); }

.account-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px 40px;
}

.account-header {
    margin-bottom: 32px;
}

.account-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.account-header p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: #12121a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 24px;
}

.stat-card-label {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-card-value {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-card-sub {
    color: #555;
    font-size: 12px;
    margin-top: 4px;
}

/* Account Cards */
.acc-card {
    background: #12121a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.acc-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.acc-card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.acc-card-body {
    padding: 24px;
}

/* Account Tables */
.acc-table {
    width: 100%;
    border-collapse: collapse;
}

.acc-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.acc-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #a0a0b0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.acc-table tr:last-child td { border-bottom: none; }

.acc-table tr:hover td { background: rgba(255,255,255,0.02); }

/* License Cards (dashboard) */
.license-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.license-card {
    background: #12121a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

a.license-card:hover { border-color: rgba(255,255,255,0.15); }

.license-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.license-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.license-card-product {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}

.license-card-plan {
    font-size: 12px;
    color: #888;
}

.license-card-key {
    background: #0a0a0f;
    border-radius: 6px;
    padding: 10px 14px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: #a0a0b0;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.license-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #666;
}

.license-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Badges */
.acc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.acc-badge-active { background: rgba(40,167,69,0.15); color: #5cdb7f; }
.acc-badge-suspended { background: rgba(255,193,7,0.15); color: #ffc107; }
.acc-badge-pending { background: rgba(255,193,7,0.15); color: #ffc107; }
.acc-badge-expired { background: rgba(220,53,69,0.15); color: #ff6b7a; }
.acc-badge-revoked { background: rgba(108,117,125,0.15); color: #999; }
.acc-badge-completed { background: rgba(40,167,69,0.15); color: #5cdb7f; }
.acc-badge-failed { background: rgba(220,53,69,0.15); color: #ff6b7a; }
.acc-badge-refunded { background: rgba(108,117,125,0.15); color: #999; }
.acc-badge-open { background: rgba(0,123,255,0.15); color: #5ca0ff; }
.acc-badge-closed { background: rgba(108,117,125,0.15); color: #999; }
.acc-badge-resolved { background: rgba(40,167,69,0.15); color: #5cdb7f; }

/* Account Buttons */
.acc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.15s;
}

.acc-btn-primary { background: #6c5ce7; color: #fff; }
.acc-btn-primary:hover { background: #5a4bd1; color: #fff; }
.acc-btn-outline { background: transparent; color: #888; border: 1px solid rgba(255,255,255,0.1); }
.acc-btn-outline:hover { border-color: rgba(255,255,255,0.2); color: #fff; }
.acc-btn-sm { padding: 6px 12px; font-size: 12px; }
.acc-btn-lg { padding: 12px 24px; font-size: 14px; }
.acc-btn-success { background: rgba(40,167,69,0.15); color: #5cdb7f; }
.acc-btn-success:hover { background: rgba(40,167,69,0.25); }

/* Account form */
.acc-form-group { margin-bottom: 18px; }
.acc-form-group label { display: block; color: #888; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.acc-form-control {
    width: 100%;
    padding: 10px 14px;
    background: #0a0a0f;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.acc-form-control:focus { outline: none; border-color: #6c5ce7; }
.acc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Empty state */
.acc-empty {
    text-align: center;
    padding: 48px 24px;
    color: #555;
}

.acc-empty i {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.acc-empty p { font-size: 14px; margin-bottom: 16px; }

/* Flash messages */
.acc-flash {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 24px;
}

.acc-flash-success { background: rgba(40,167,69,0.1); border: 1px solid rgba(40,167,69,0.3); color: #5cdb7f; }
.acc-flash-error { background: rgba(220,53,69,0.1); border: 1px solid rgba(220,53,69,0.3); color: #ff6b7a; }

/* Ticket messages */
.ticket-messages { margin-bottom: 24px; }

.ticket-msg {
    background: #0a0a0f;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 12px;
}

.ticket-msg.staff { background: rgba(108,92,231,0.08); border: 1px solid rgba(108,92,231,0.15); }

.ticket-msg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.ticket-msg-author { font-weight: 600; color: #fff; }
.ticket-msg-body { font-size: 14px; color: #a0a0b0; line-height: 1.7; }

/* Mobile sidebar toggle */
.account-mobile-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 60;
    background: #12121a;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .account-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .account-sidebar.open { transform: translateX(0); }
    .account-main { margin-left: 0; padding: 24px 16px; padding-top: 60px; }
    .account-mobile-toggle { display: flex; }
    .license-cards { grid-template-columns: 1fr; }
    .stats-cards { grid-template-columns: 1fr 1fr; }
    .acc-form-row { grid-template-columns: 1fr; }
    .acc-table { font-size: 13px; }
    .acc-table th, .acc-table td { padding: 10px 12px; }
}
