:root {
    --bg-dark: #08090a;
    --bg-card: #111318;
    --bg-soft: #161a22;
    --text-primary: #ffffff;
    --text-muted: #9ca3af;
    --color-primary: #fe6905;
    --color-primary-hover: #e55f05;
    --color-secondary: #2a2d35;
    --color-success: #35d07f;
    --color-warning: #ffbf47;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease-in-out;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-soft: #f1f5f9;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(15, 23, 42, 0.02);
    --glass-border: rgba(15, 23, 42, 0.08);
    --color-secondary: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at top, rgba(254, 105, 5, 0.08), transparent 28%), var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    transition: var(--transition);
}

/* App Background (Grid + Glows) */
.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    /* Dotted Grid Pattern */
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

/* Glow Orbs */
.bg-glow {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
    border-radius: 50%;
    animation: drift 20s infinite alternate ease-in-out;
}

.glow-orange {
    top: 20%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: rgba(254, 105, 5, 0.04);
}

.glow-blue {
    bottom: -10%;
    right: 5%;
    width: 700px;
    height: 700px;
    background: rgba(255, 255, 255, 0.02);
    /* Neutral gentle glow instead of purple/blue */
    animation-direction: alternate-reverse;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.05);
    }

    100% {
        transform: translate(-30px, 20px) scale(0.95);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 800px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    font-weight: 700;
}

.text-accent {
    color: var(--color-primary);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--color-success);
}

.text-center {
    text-align: center;
}

p {
    color: var(--text-muted);
}

.mt-5 {
    margin-top: 4rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.75rem;
}

.text-right {
    text-align: right;
}

.text-sm {
    font-size: 14px;
}

.text-xs {
    font-size: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-lg {
    padding: 16px 32px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 174, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
}

.btn-outline:hover {
    color: var(--text-primary);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.25rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

body.light-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.top-actions {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    gap: 12px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(8, 9, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

@media (max-width: 992px) {
    .nav-links {
        display: none; /* Mobile menu will be handled by a different class or expanded state */
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(8, 9, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--glass-border);
        z-index: 1000;
        animation: slideDown 0.4s ease-out;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-actions {
        display: none; /* Hide buttons on mobile navbar to keep it clean */
    }

    .nav-links .btn {
        width: 100%;
        margin-top: 10px;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-toggle button {
    background: transparent;
    border: none;
    color: inherit;
    font-size: inherit;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 200px 0 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(254, 105, 5, 0.1);
    border: 1px solid rgba(254, 105, 5, 0.2);
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
}

.hero-title {
    font-size: 60px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    max-width: 700px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

/* Floating Assets */
.hero-visual {
    margin-top: 80px;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    min-width: 240px;
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: 1.5s;
    transform: translateY(20px);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(254, 105, 5, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.stat-card h4 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card p {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    text-align: left;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: rgba(254, 105, 5, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
}

.pricing-price .label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.pricing-price .amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
}

.pricing-price .per {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.justify-center {
    justify-content: center;
}

.btn-outline-accent {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline-accent:hover {
    background: rgba(254, 105, 5, 0.1);
}

/* Features Section */
.features {
    padding: 100px 0;
}

.trust-strip {
    padding: 0 0 48px;
}

.trust-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.trust-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 18px 20px;
}

.trust-item strong {
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}

.showcase {
    padding: 0 0 100px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: stretch;
}

.showcase-panel {
    background: linear-gradient(145deg, rgba(17, 19, 24, 0.9), rgba(13, 15, 20, 0.92));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    overflow: hidden;
}

.showcase-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.metric-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 16px;
}

.metric-chip span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.metric-chip strong {
    font-size: 24px;
}

.stack-list {
    display: grid;
    gap: 14px;
}

.stack-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
}

.stack-item i {
    color: var(--color-primary);
    font-size: 20px;
    margin-top: 2px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.process-step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 28px;
}

.step-number {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(254, 105, 5, 0.14);
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-band {
    padding: 100px 0 0;
}

.cta-band .glass-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(254, 105, 5, 0.12), rgba(255, 255, 255, 0.02));
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 32px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(254, 105, 5, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(254, 105, 5, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
}

/* Fade In Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    margin-top: 120px;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 15px;
    max-width: 280px;
}

.footer-links h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 15px;
    transition: var(--transition);
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    gap: 4px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
    background: rgba(254, 105, 5, 0.08);
    border-left-color: var(--color-primary);
}

.nav-item i {
    font-size: 1.25rem;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 48px;
    }

    .grid-3,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-visual {
        flex-direction: column;
        align-items: center;
    }

    .showcase-grid,
    .page-hero-grid,
    .legal-layout,
    .contact-grid,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 42px;
    }

    .page-grid,
    .process-grid,
    .trust-track,
    .showcase-metrics,
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .grid-3,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .page-grid,
    .process-grid,
    .trust-track,
    .showcase-metrics,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .cta-band .glass-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .auth-card,
    .auth-aside,
    .contact-card,
    .mini-form,
    .showcase-panel,
    .info-card,
    .legal-card {
        padding: 22px;
    }

    .navbar.nav-open {
        background: rgba(8, 9, 10, 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
    }

    .navbar.nav-open .nav-container {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 16px;
    }

    .navbar.nav-open .nav-links,
    .navbar.nav-open .nav-actions {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .navbar.nav-open .nav-links a,
    .navbar.nav-open .nav-actions a {
        width: 100%;
    }
}

/* Modal Utilities */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: modalScale 0.2s ease-out forwards;
}

@keyframes modalScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-primary);
}

/* Alert utilities */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.2);
    color: #2ed573;
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.feedback-area {
    min-height: 16px;
    margin-bottom: 20px;
}

.page-shell {
    padding-top: 120px;
}

.page-hero {
    padding: 32px 0 56px;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(254, 105, 5, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(254, 105, 5, 0.2);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.page-hero h1 {
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 18px;
    max-width: 650px;
}

.page-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
}

.info-card h3,
.info-card h4 {
    margin-bottom: 12px;
}

.highlight-panel {
    background: linear-gradient(145deg, rgba(17, 19, 24, 0.92), rgba(13, 15, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 28px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    padding: 18px;
}

.stat-box strong {
    display: block;
    font-size: 28px;
    color: var(--text-primary);
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    align-items: start;
}

.timeline-item strong {
    color: var(--color-primary);
}

.legal-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 24px;
}

.legal-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
}

.legal-card ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.legal-card li {
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-card,
.mini-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 28px;
}

.contact-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.contact-list a {
    color: var(--text-primary);
    text-decoration: none;
}

.contact-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-row i {
    color: var(--color-primary);
    font-size: 20px;
    margin-top: 2px;
}

.mini-form .input-wrapper textarea {
    width: 100%;
    min-height: 130px;
    resize: vertical;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
}

.mini-form .input-wrapper textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(254, 105, 5, 0.1);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(320px, 440px) minmax(320px, 460px);
    gap: 28px;
    align-items: stretch;
}

.auth-aside {
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(254, 105, 5, 0.14), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(254, 105, 5, 0.14);
}

.auth-aside h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.auth-trust {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.auth-trust .stack-item {
    background: rgba(8, 9, 10, 0.18);
}

.password-toggle {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
}

.password-toggle:hover {
    color: var(--text-primary);
}

/* Authentication Pages (Login / Register) */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 960px;
    z-index: 10;
}

.auth-card {
    background: linear-gradient(145deg, rgba(17, 19, 24, 0.95), rgba(11, 13, 17, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(254, 105, 5, 0.03);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(254, 105, 5, 0.3), transparent);
}

.auth-card .logo {
    font-size: 28px;
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 18px;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px 14px 44px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(254, 105, 5, 0.1);
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-link {
    font-size: 14px;
    color: var(--text-muted);
}

.auth-link a {
    font-weight: 500;
}

.forgot-password {
    margin-top: -8px;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-dark);
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0d0f14 0%, #0a0c10 50%, #080a0e 100%);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top left, rgba(254, 105, 5, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.sidebar-logo {
    padding: 0 24px 32px;
    position: relative;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
    position: relative;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-item i {
    font-size: 20px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item:hover i {
    color: var(--color-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(254, 105, 5, 0.15), rgba(254, 105, 5, 0.05));
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    box-shadow: 0 2px 12px rgba(254, 105, 5, 0.08);
}

.sidebar-footer {
    padding: 20px 12px 0;
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0a0c12 100%);
}

.topbar {
    height: 72px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: linear-gradient(90deg, rgba(8, 9, 10, 0.9), rgba(13, 15, 20, 0.95));
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.welcome-text {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.04);
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), #ff8533);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(254, 105, 5, 0.3);
}

.content-area {
    padding: 32px 40px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dash-stat-card {
    background: linear-gradient(145deg, rgba(17, 19, 24, 0.9), rgba(13, 15, 20, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dash-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(254, 105, 5, 0.04) 0%, transparent 60%);
    pointer-events: none;
    transition: all 0.3s ease;
}

.dash-stat-card:hover {
    border-color: rgba(254, 105, 5, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(254, 105, 5, 0.05);
}

.dash-stat-card:hover::before {
    background: radial-gradient(circle at top right, rgba(254, 105, 5, 0.08) 0%, transparent 60%);
}

.dash-stat-card .icon-box {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(254, 105, 5, 0.15), rgba(254, 105, 5, 0.05));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.dash-stat-info h4 {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.dash-stat-info p {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.recent-activity {
    background: linear-gradient(145deg, rgba(17, 19, 24, 0.9), rgba(13, 15, 20, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    overflow-x: auto;
    transition: all 0.3s ease;
}

.recent-activity:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.transaction-table th,
.transaction-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.transaction-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.transaction-table tbody tr {
    transition: all 0.2s ease;
}

.transaction-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.transaction-table td {
    font-size: 14px;
    color: var(--text-primary);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.status-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.08);
}

.status-pending {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.08);
}

.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.08);
}

/* Page title styling */
.content-area>h2,
.content-area>h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

/* Payment link cards */
.payment-link-card {
    background: linear-gradient(145deg, rgba(17, 19, 24, 0.9), rgba(13, 15, 20, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.payment-link-card:hover {
    border-color: rgba(254, 105, 5, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Settings form styling */
.settings-section {
    background: linear-gradient(145deg, rgba(17, 19, 24, 0.9), rgba(13, 15, 20, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.settings-section h3 {
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
}

.dashboard-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.dashboard-page-header p {
    max-width: 760px;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.surface-card {
    background: linear-gradient(145deg, rgba(17, 19, 24, 0.9), rgba(13, 15, 20, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 24px;
}

.surface-card h3,
.surface-card h4 {
    margin-bottom: 10px;
}

.meta-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.kpi-inline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.kpi-inline .metric-chip strong {
    display: block;
}

.list-stack {
    display: grid;
    gap: 12px;
}

.mini-stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
}

.mini-stat span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.mini-stat strong {
    font-size: 22px;
}

.table-shell {
    background: linear-gradient(145deg, rgba(17, 19, 24, 0.9), rgba(13, 15, 20, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 24px;
    overflow-x: auto; /* Permite scroll horizontal em tabelas largas */
    position: relative;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.table-toolbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.field,
.field-select,
.field-readonly {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
}

.field:focus,
.field-select:focus,
.field-readonly:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(254, 105, 5, 0.1);
}

.field-readonly {
    color: #7fe2a7;
    font-family: Consolas, 'Courier New', monospace;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.btn-sm,
.btn-xs {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 10px;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    display: block;
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.dashboard-note {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
}

.copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.admin-controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.badge-danger {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.badge-success {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
}

.badge-warning {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
}

.dashboard-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tight-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.tight-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-muted);
}

.tight-list strong {
    color: var(--text-primary);
}

/* 
   ==========================================================================
   RESPONSIVENESS & MOBILE-FIRST OPTIMIZATION
   ========================================================================== 
*/

/* --- Tablets & Large Mobile (992px) --- */
@media (max-width: 992px) {
    /* Dashboard Layout & Sidebar Drawer */
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -280px; /* Drawer hidden by default */
        width: 280px;
        height: 100vh;
        z-index: 3000;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid var(--glass-border);
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
        background: var(--bg-card);
        display: flex;
        flex-direction: column;
    }

    .sidebar.active {
        left: 0;
    }

    /* Backdrop Overlay for opened sidebar */
    body.sidebar-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 2500;
        animation: fadeIn 0.3s ease-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Adjust Main Content to fill full width on mobile */
    .main-content {
        margin-left: 0 !important;
        padding-top: 70px !important; /* Spacing for the sticky topbar */
        width: 100% !important;
    }

    /* Sticky Mobile Topbar with Hamburger */
    .topbar {
        position: fixed;
        width: 100%;
        left: 0;
        top: 0;
        background: rgba(8, 9, 10, 0.85);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--glass-border);
        z-index: 1500;
        height: 70px;
        padding: 0 20px !important;
        display: flex;
        justify-content: flex-start;
        gap: 15px;
    }

    /* Hamburger Icon via pseudo-element for simplicity */
    .topbar::before {
        content: '\eb96'; /* remixicon menu icon */
        font-family: 'remixicon';
        font-size: 26px;
        cursor: pointer;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        transition: transform 0.2s ease;
    }

    .sidebar.active ~ .main-content .topbar::before {
        content: '\eb98'; /* remixicon close icon */
    }

    /* Grid Adaptations */
    .dashboard-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .dashboard-grid-2,
    .dashboard-grid-3,
    .dashboard-split,
    .kpi-inline,
    .mini-stat-row,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .content-area {
        padding: 24px 16px !important;
    }

    /* Auth & Login Adjustments */
    .auth-layout {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .auth-aside {
        display: none !important; /* Hide secondary decorative column on mobile */
    }
}

/* --- Small Mobile Devices (768px and below) --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 34px !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Table Responsiveness: Prevent text crowding */
    .transaction-table th, 
    .transaction-table td {
        padding: 12px 10px;
        font-size: 13px;
        min-width: 130px; /* Ensures cell content remains readable while scrolling */
    }

    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .table-toolbar-actions {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Auth Card Spacing */
    .auth-card {
        padding: 24px 20px;
    }

    /* Settings Sections */
    .settings-section {
        padding: 24px 16px;
    }
}

/* --- Navbar Mobile Overrides --- */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(8, 9, 10, 0.96);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 20px;
        gap: 20px;
        border-bottom: 1px solid var(--glass-border);
        z-index: 1000;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }
    
    .nav-actions {
        display: none;
    }

    .mobile-only {
        display: flex !important;
    }
}