:root {
    --bg-body: #050712;
    --bg-elevated: #0e1020;
    --bg-elevated-soft: #141728;
    --accent: #4f8cff;
    --accent-soft: rgba(79, 140, 255, 0.15);
    --accent-strong: #7f6dff;
    --text-main: #f9fbff;
    --text-muted: #a5afc7;
    --border-soft: rgba(255, 255, 255, 0.06);
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
    --max-width: 1120px;
    --transition-fast: 0.18s ease-out;
    --nav-height: 72px;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Global reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #151933 0, #050712 50%);
    color: var(--text-main);
    font-family: var(--font-sans);
    scroll-behavior: smooth;
    min-height: 100vh;          /* NEW: body at least full viewport height */
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;              /* NEW: make body a flex container */
    flex-direction: column;     /* NEW: column layout (header, main, footer) */
}

main {
    flex: 1;
}


.logo {
    text-align: center;
    margin-bottom: 24px;
}

.logo-img {
    width: 120px;
    height: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout helpers */

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

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(5, 7, 18, 0.9), rgba(5, 7, 18, 0.75));
    border-bottom: 1px solid var(--border-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 0, var(--accent-strong), var(--accent));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(79, 140, 255, 0.5);
}

.logo-text {
    font-size: 15px;
    color: var(--text-muted);
}

.nav {
    display: flex;
    gap: 18px;
    font-size: 14px;
}

.nav a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-muted);
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav a:hover {
    background: var(--accent-soft);
    color: var(--text-main);
    transform: translateY(-1px);
}

/* Mobile nav toggle */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: var(--text-main);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hero */

.hero {
    padding: 64px 0 56px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(30px, 4vw, 40px);
    margin: 0 0 12px;
}

.hero-text p {
    margin: 0 0 20px;
    color: var(--text-muted);
    max-width: 560px;
    font-size: 15px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    box-shadow: 0 16px 30px rgba(79, 140, 255, 0.45);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(79, 140, 255, 0.5);
}

.btn.ghost {
    border-color: var(--border-soft);
    background: rgba(15, 18, 35, 0.8);
    color: var(--text-main);
}

.btn.ghost:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
}

.btn-full {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.7;
    cursor: default;
    box-shadow: none;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.hero-meta span {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(9, 11, 22, 0.9);
}

/* Hero side card */

.hero-card {
    background: radial-gradient(circle at top left, rgba(79, 140, 255, 0.18), rgba(9, 11, 22, 0.98));
    border-radius: var(--radius-xl);
    padding: 22px 20px 20px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.hero-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.hero-card p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.hero-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

.hero-form input {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: rgba(5, 7, 18, 0.85);
    color: var(--text-main);
    font-size: 13px;
}

.hero-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.5);
}

.form-note {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Sections */

.section {
    padding: 56px 0;
}

.section-title {
    text-align: center;
    font-size: 24px;
    margin: 0 0 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 32px;
    font-size: 14px;
}

/* Two column layout */

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: flex-start;
}

/* About */

.about {
    background: radial-gradient(circle at top right, rgba(79, 140, 255, 0.08), rgba(5, 7, 18, 0.98));
}

.about p {
    color: var(--text-muted);
    font-size: 14px;
}

.about-highlights {
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    padding: 16px 18px;
}

.stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.stat-number {
    font-size: 22px;
    font-weight: 600;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.about-bullets {
    margin: 12px 0 0;
    padding-left: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Services */

.services {
    background: radial-gradient(circle at center, rgba(127, 109, 255, 0.05), rgba(5, 7, 18, 1));
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 18px 16px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    font-size: 13px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.card p {
    margin: 0 0 10px;
    color: var(--text-muted);
}

.card ul {
    margin: 0;
    padding-left: 16px;
    color: var(--text-muted);
}

/* Contact */

.contact {
    background: radial-gradient(circle at bottom, rgba(79, 140, 255, 0.06), rgba(5, 7, 18, 1));
}

.contact-meta p {
    font-size: 13px;
    color: var(--text-muted);
}

.contact-meta strong {
    color: var(--text-main);
}

.contact-form {
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    padding: 18px 16px;
    box-shadow: var(--shadow-soft);
}

.contact-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: rgba(5, 7, 18, 0.9);
    color: var(--text-main);
    font-size: 13px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.4);
}

/* Footer */

.site-footer {
    padding: 20px 0 24px;
    border-top: 1px solid var(--border-soft);
    background: rgba(5, 7, 18, 0.96);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    gap: 12px;
}

.footer-links a {
    font-size: 12px;
    color: var(--text-muted);
}

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

/* Responsive */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .two-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .header-inner {
        gap: 8px;
    }

    .nav {
        position: absolute;
        top: var(--nav-height);
        right: 16px;
        left: 16px;
        flex-direction: column;
        background: rgba(5, 7, 18, 0.98);
        border-radius: 16px;
        padding: 10px 12px;
        border: 1px solid var(--border-soft);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
    }

    .nav.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav a {
        padding: 8px 10px;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 40px;
    }

    .section {
        padding: 44px 0;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Nav toggle active state */

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
/* TicketWave popup */

.tw-hidden {
    display: none;
}

.tw-popup {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.tw-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.tw-popup-card {
    position: relative;
    pointer-events: auto;
    max-width: 420px;
    width: 90%;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-soft);
    padding: 20px 18px 16px;
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.tw-popup-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.tw-popup-card p {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.tw-popup-card .btn {
    width: 100%;
}
/* Ensure popup is hidden when tw-hidden is present */
.tw-popup.tw-hidden {
    display: none !important;
}
/* Hero stats list inside hero-card */

.hero-stats {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(5, 7, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-stats .stat-number {
    font-size: 18px;
    font-weight: 600;
}

.hero-stats .stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.hero-note {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--text-muted);
}

/* Partners section */

.partners {
    background: radial-gradient(circle at top, rgba(79, 140, 255, 0.05), rgba(5, 7, 18, 1));
}

.partners-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
}

.partner-logo {
    min-width: 140px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(10, 12, 24, 0.95);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* Metrics band */

.metrics {
    background: radial-gradient(circle at center, rgba(127, 109, 255, 0.06), rgba(5, 7, 18, 1));
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.metric {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 14px 12px;
    border: 1px solid var(--border-soft);
    text-align: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.metric .stat-number {
    font-size: 20px;
    font-weight: 600;
}

.metric .stat-label {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.status-filter {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--border-soft);
    background: var(--bg-elevated);
    color: var(--text-main);
    cursor: pointer;
    width: 100%;
    transition: border var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.status-filter:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.status-filter:hover {
    transform: translateY(-2px);
}

.status-filter-open:hover,
.status-filter-open.is-active {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.18);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}

.status-filter-in-progress:hover,
.status-filter-in-progress.is-active {
    border-color: rgba(251, 146, 60, 0.6);
    background: rgba(251, 146, 60, 0.18);
    box-shadow: 0 0 18px rgba(251, 146, 60, 0.35);
}

.status-filter-on-hold:hover,
.status-filter-on-hold.is-active {
    border-color: rgba(148, 163, 184, 0.6);
    background: rgba(148, 163, 184, 0.18);
    box-shadow: 0 0 18px rgba(148, 163, 184, 0.35);
}

.status-filter-closed:hover,
.status-filter-closed.is-active {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.18);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.35);
}

/* Testimonials */

.testimonials {
    background: radial-gradient(circle at bottom, rgba(79, 140, 255, 0.04), rgba(5, 7, 18, 1));
}

.testimonial-card {
    position: relative;
}

.testimonial-quote {
    font-size: 13px;
    color: var(--text-main);
    margin: 0 0 10px;
}

.testimonial-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Team section with bubbles */

.team-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 32px;
}

.team-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: 22px 18px 18px;
    text-align: center;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
}

.team-bubble {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: radial-gradient(circle at 20% 0, var(--accent-strong), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(79, 140, 255, 0.6);
}

.team-initial {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    user-select: none;
}

.team-card h3 {
    margin: 4px 0 4px;
    font-size: 16px;
}

.team-role {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.team-bio {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Responsive tweaks for new grids */

@media (max-width: 900px) {
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .partners-strip {
        justify-content: center;
    }
}
/* Subscription plans / bubbles */

.plans-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: 20px 18px 18px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    text-align: center;
    overflow: hidden;
    transform: translateY(0) scale(1);
    z-index: 1;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

/* Bubble header inside each plan */
.plan-bubble {
    width: 110px;
    height: 110px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 20% 0, var(--accent-strong), var(--accent));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 12px 28px rgba(79, 140, 255, 0.65);
}

.plan-name {
    font-size: 16px;
    font-weight: 600;
}

.plan-price {
    font-size: 11px;
    opacity: 0.9;
}

.plan-tagline {
    margin: 6px 0 10px;
    font-size: 13px;
    color: var(--text-main);
}

.plan-features {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    text-align: left;
    font-size: 12px;
    color: var(--text-muted);
}

.plan-features li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 4px;
}

.plan-features li::before {
    content: "•";
    position: absolute;
    left: 5px;
    top: 0;
    color: var(--accent);
}

.plan-ideal {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
}

/* Most popular plan – centre bubble glows even without hover */
.plan-popular {
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.03);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(79, 140, 255, 0.7);
}

.plan-popular::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle, rgba(79, 140, 255, 0.16), transparent 60%);
    opacity: 1;
    pointer-events: none;
}

.plan-popular-badge {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(79, 140, 255, 0.16);
    border-radius: 999px;
    padding: 3px 8px;
    border: 1px solid rgba(79, 140, 255, 0.6);
    color: var(--accent-text, #cfd8ff);
}

/* Hover behaviour: any hovered card "overtakes" the others */
.plan-card:hover {
    transform: translateY(-8px) scale(1.06);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.7);
    border-color: var(--accent);
    z-index: 3;
}

/* Small note under plans */
.plans-note {
    margin-top: 16px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* Responsive for plans */
@media (max-width: 900px) {
    .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .plans-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .plan-popular {
        transform: translateY(0) scale(1.03);
    }
}

/* "Why TicketWave" section */

.why {
    background: radial-gradient(circle at top, rgba(79, 140, 255, 0.04), rgba(5, 7, 18, 1));
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--text-main);
}

.why-list li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 18px;
}

.why-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.why-compare {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 12px;
}

.why-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 14px 14px 12px;
    font-size: 12px;
}

.why-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.why-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--text-muted);
}

.why-card ul li {
    margin-bottom: 4px;
}

.why-card-highlight {
    border-color: var(--accent);
    box-shadow: 0 18px 40px rgba(79, 140, 255, 0.4);
}
/* Navigation CTA button */
.nav-cta {
    margin-left: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* Hover pop effect */
.nav-cta:hover {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 8px 28px rgba(79,140,255,0.6);
    transform: translateY(-2px);
}

/* ================================
   Login / Auth layout
   ================================ */

.login-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 80px auto 24px;
    padding: 0 16px;
}

/* Logo in login header */
.logo {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.logo-img {
    width: 140px;
    height: auto;
    margin-bottom: 4px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Small subtitle under logo */
.logo .sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Reuse global .card as auth card */
.card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 22px 18px 18px;
    box-shadow: var(--shadow-soft);
}

.card h1 {
    margin: 0 0 4px;
    font-size: 20px;
}

.card p.subtitle {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Form fields */
.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.field input {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: #020617;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                background var(--transition-fast);
}

.field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
    background: #020617;
}

/* Error message */
.error {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #f97373;
}

/* Form actions */
.actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Primary button (maps to existing visual style) */
.btn-primary {
    border: none;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(79, 140, 255, 0.45);
    transition: transform var(--transition-fast),
                box-shadow var(--transition-fast),
                filter var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 22px 40px rgba(79, 140, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
}

/* Small muted link (forgot password etc.) */
.link-muted {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
}

.link-muted:hover {
    text-decoration: underline;
}

/* Footer under the card */
.footer {
    margin-top: 10px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* ================================
   Layout shell for app pages
   ================================ */

.page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #000000 100%);
    color: var(--text-main);
}

/* Top navigation bar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px;
    background: rgba(3, 7, 18, 0.92);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-logo {
    height: 28px;
    width: auto;
}

.topbar-title {
    font-size: 14px;
    color: var(--text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main content area */
.page-main {
    flex: 1;
    padding: 24px 16px 32px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

/* Footer */
.page-footer {
    padding: 8px 16px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(3, 7, 18, 0.95);
    border-top: 1px solid var(--border-soft);
}

/* Dashboard card specifics */
.card-dashboard {
    margin-top: 12px;
}

.card-title {
    font-size: 22px;
    margin: 0 0 4px;
}

.card-subtitle {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Simple grid */
.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Info blocks */
.info-block {
    padding-top: 4px;
}

.info-title {
    font-size: 15px;
    margin: 0 0 8px;
}

.info-line {
    margin: 0 0 6px;
    font-size: 13px;
}

/* Pills and chips */
.pill,
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
}

.pill-soft {
    background: rgba(148, 163, 184, 0.15);
}

.pill-accent {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.7);
    color: #bfdbfe;
}

.chip-small {
    padding: 2px 8px;
    font-size: 11px;
}

.chip-accent {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.7);
}

/* Buttons / links reused */
.btn-secondary {
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid var(--border-soft);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-muted);
    cursor: default;
}

.btn-full {
    width: 100%;
    text-align: center;
}

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

.btn-link {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}
/* ============================
   User Dropdown Menu
=============================== */

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.user-menu-trigger:hover {
    background: rgba(255,255,255,0.06);
}

.user-avatar {
    height: 22px;
    width: 22px;
    border-radius: 50%;
    object-fit: cover;
    filter: brightness(1.2);
}

.user-name {
    font-size: 13px;
    color: var(--text-main);
}

.user-caret {
    font-size: 10px;
    opacity: 0.7;
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: 110%;
    min-width: 150px;
    padding: 6px 0;
    background: rgba(3, 7, 18, 0.95);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 20;
}

.user-menu:hover .user-menu-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.user-item {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.user-item:hover {
    background: rgba(255,255,255,0.06);
}

.user-item.logout {
    color: #f87171;
}

.user-item.logout:hover {
    background: rgba(248,113,113,0.2);
}

.user-item.disabled {
    color: var(--text-muted);
    cursor: default;
    opacity: 0.6;
}
/* ================================
   Tickets table styling
   ================================ */

.tickets-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
    flex-wrap: wrap;
}

.tickets-header-info {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tickets-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 13px;
}

.table thead {
    background: rgba(15, 23, 42, 0.95);
}

.table th,
.table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
}

.table th {
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.table tbody tr:hover {
    background: rgba(15, 23, 42, 0.7);
}

.table td a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
}

.table td a:hover {
    text-decoration: underline;
}
.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Colors by status */
.status-open {
    background: rgba(34,197,94,0.22);
    border: 1px solid rgba(34,197,94,0.5);
    color: #bbf7d0;
}

.status-inprogress {
    background: rgba(251,146,60,0.22);
    border: 1px solid rgba(251,146,60,0.5);
    color: #fdba74;
}

.status-onhold {
    background: rgba(148,163,184,0.22);
    border: 1px solid rgba(148,163,184,0.5);
    color: #e2e8f0;
}

.status-closed {
    background: rgba(239,68,68,0.22);
    border: 1px solid rgba(239,68,68,0.5);
    color: #fecaca;
}

/* Ticket detail layout */
.ticket-detail-card {
    margin-bottom: 18px;
}

.ticket-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.ticket-code {
    min-width: 200px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(15, 23, 42, 0.5);
    text-align: right;
}

.ticket-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.summary-block {
    padding: 14px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: rgba(6, 12, 26, 0.85);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-block .status-pill {
    align-self: flex-start;
}

.meta-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.meta-value,
.meta-value-large {
    font-size: 15px;
}

.meta-value-large {
    font-size: 18px;
    font-weight: 600;
}

.ticket-context .meta-value-large {
    font-size: 16px;
}

.meta-subtle {
    font-size: 12px;
    color: var(--text-muted);
}

.ticket-detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 18px;
}

.card-panel {
    padding: 18px;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background: rgba(10, 15, 30, 0.92);
    box-shadow: var(--shadow-soft);
}

.ticket-context h3,
.ticket-description h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.description-help {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--text-muted);
}


.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.context-grid.small {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.context-item {
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(17, 24, 39, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.context-list {
    margin: 0;
    display: grid;
    gap: 10px;
}

.context-list dt {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.context-list dd {
    margin: 2px 0 0;
    font-size: 14px;
}

.description-box {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(24, 31, 52, 0.8);
    padding: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    min-height: 160px;
    white-space: pre-wrap;
}

.conversation-card,
.ticket-reply-card,
.ticket-alert-card {
    margin-bottom: 18px;
}

.conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.conversation-header h2 {
    margin: 0;
}


.conversation-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding: 18px 18px 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    background: rgba(8, 12, 26, 0.75);
}

.conversation-scroll::-webkit-scrollbar {
    width: 6px;
}

.conversation-scroll::-webkit-scrollbar-thumb {
    background: rgba(79, 140, 255, 0.4);
    border-radius: 999px;
}

.conversation-feed {
    display: flex;
    flex-direction: column;
}

.conversation-item {
    position: relative;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

.conversation-item + .conversation-item {
    margin-top: 26px;
}

.conversation-item + .conversation-item::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.conversation-item.is-agent {
    background: rgba(79, 140, 255, 0.08);
    border-color: rgba(79, 140, 255, 0.35);
}

.conversation-item.is-client {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.direction-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.direction-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.direction-badge.is-agent {
    background: rgba(79, 140, 255, 0.18);
    color: #bfdbfe;
}

.direction-badge.is-client {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.conversation-item-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.conversation-author {
    font-weight: 600;
}

.conversation-role {
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.conversation-meta {
    color: var(--text-muted);
    font-size: 12px;
}

.conversation-body {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-main);
}

.ticket-alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-alert.is-warning {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fcd34d;
}

.ticket-alert.is-muted {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--text-muted);
}

.ticket-reply-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 740px;
    margin: 0 auto;
}

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

.field-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(6, 12, 26, 0.9);
    color: var(--text-main);
    font-size: 14px;
    font-family: var(--font-sans);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-area {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

.input-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%),
        linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 4px), calc(100% - 14px) calc(50% - 4px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.select-wrapper {
    position: relative;
}

.helper-text {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}


.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.field-row .field-group {
    flex: 1 1 280px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 0 0 auto;
}

.select-wrapper::after {
    content: "▼";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-control:focus {
    outline: none;
    border-color: rgba(79, 140, 255, 0.55);
    box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.2);
}

.ticket-reply-card .conversation-header {
    flex-direction: column;
    text-align: center;
    gap: 6px;
}

/* Dashboard KPI grid */
.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.btn-secondary:hover {
    background: var(--accent-soft);
    color: var(--text-main);
    border-color: var(--accent-soft);
    transform: translateY(-1px);
}
.meta-value-small {
    font-size: 13px;
    color: var(--text-main);
}
