:root {
    /* Color Palette - Ticketmaster Native Premium */
    --primary-color: #026cdf;
    /* Ticketmaster Blue */
    --primary-dark: #004ea3;
    --primary-light: #4b9ceb;

    --accent-color: #ff9900;
    /* Warm Amber for CTAs */
    --accent-glow: rgba(255, 153, 0, 0.4);

    --bg-dark: #0f1014;
    /* Charcoal/OLED Black */
    --bg-card: #1a1c24;
    /* Solid, slightly lighter black */
    --bg-card-hover: #222530;

    --text-primary: #ffffff;
    --text-secondary: #b0b3b8;
    --text-muted: #6e727a;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(2, 108, 223, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #026cdf 0%, #005bbd 100%);
    --gradient-dark: linear-gradient(180deg, #0f1014 0%, #16181f 100%);
    --gradient-card: linear-gradient(180deg, #1a1c24 0%, #15171e 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 0 transparent;
    /* Removed neon glow for premium feel */

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.2, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px var(--border-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--border-glow);
    }

    100% {
        box-shadow: 0 0 5px var(--border-glow);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    /* Sharper corners for corporate feel */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(2, 108, 223, 0.05);
}

/* Cards */
.card {
    background: var(--bg-card);
    /* Removed backdrop-filter for solid premium look */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    /* Slightly tighter radius */
    padding: 2rem;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-md);
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-field {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(26, 82, 237, 0.2);
}

.input-label {
    position: absolute;
    left: 1.5rem;
    top: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.input-field:focus~.input-label,
.input-field:not(:placeholder-shown)~.input-label {
    top: -0.8rem;
    left: 1rem;
    font-size: 0.8rem;
    color: var(--primary-light);
    background: var(--bg-dark);
    padding: 0 0.5rem;
}

/* Header/Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-normal);
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 50%, rgba(26, 82, 237, 0.15) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-visual {
    position: relative;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 50px rgba(26, 82, 237, 0.2);
    overflow: hidden;
}

.phone-screen {
    background: #fff;
    height: 100%;
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(180deg, rgba(26, 82, 237, 0.1) 0%, rgba(26, 82, 237, 0.05) 100%);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.features-list li i {
    color: var(--accent-color);
}

/* Login/Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(26, 82, 237, 0.2), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 242, 255, 0.1), transparent 40%);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Dashboard */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: rgba(10, 14, 23, 0.95);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-item {
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(26, 82, 237, 0.1);
    color: white;
}

.nav-item.active {
    border-left: 3px solid var(--primary-color);
}

.main-content {
    padding: 2rem;
    overflow-y: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Container */
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    /* Header */
    .header {
        padding: 1rem 0;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-actions {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .nav-actions.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .nav-actions .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .nav-text {
        display: inline;
    }

    /* Hero */
    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-text p {
        margin: 0 auto 2rem;
        font-size: 1rem;
        max-width: 100%;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
        margin: 0 auto;
    }

    /* Demo input */
    .demo-input-container {
        max-width: 100% !important;
        margin: 0 auto 1.5rem !important;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .price {
        font-size: 2.5rem;
    }

    /* Dashboard Layout */
    .dashboard-layout {
        grid-template-columns: 1fr;
        position: relative;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .main-content {
        padding: 1rem;
        width: 100%;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block !important;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        color: white;
        padding: 0.75rem;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1.2rem;
        box-shadow: var(--shadow-md);
    }

    .mobile-menu-toggle:hover {
        background: var(--bg-card-hover);
        border-color: var(--primary-color);
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
    }

    /* Tables */
    table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table thead {
        display: none;
    }

    table tbody {
        display: block;
    }

    table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        background: var(--bg-card);
    }

    table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
        text-align: right;
    }

    table td:before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        margin-right: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }

    /* Inputs */
    .input-field {
        padding: 0.875rem 1.25rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Auth */
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    /* Status Cards */
    .status-card .status-number {
        font-size: 1.5rem;
    }

    /* Payment Requests Table */
    #paymentRequestsTable {
        font-size: 0.8rem;
        width: 100%;
        display: block;
        overflow-x: auto;
    }

    #paymentRequestsTable thead {
        display: none;
    }

    #paymentRequestsTable tbody {
        display: block;
    }

    #paymentRequestsTable tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        background: var(--bg-card);
    }

    #paymentRequestsTable td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
        text-align: right;
        flex-wrap: wrap;
    }

    #paymentRequestsTable td:before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        margin-right: 1rem;
    }

    #paymentRequestsTable button {
        padding: 0.6rem;
        font-size: 0.9rem;
        margin: 0.25rem 0;
        width: 100%;
    }

    /* Log Container */
    .log-container {
        font-size: 0.75rem;
        padding: 0.75rem;
        max-height: 300px;
    }

    /* Header adjustments */
    .header {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    /* Section headers */
    header h2 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.9rem;
    }

    /* Status cards on mobile */
    .status-card {
        padding: 1rem;
    }

    .status-card .status-number {
        font-size: 1.5rem;
    }

    /* Action buttons in cards */
    .card button {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Grid adjustments */
    .grid-container[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding-top: 80px;
    }

    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .card {
        padding: 1.25rem;
    }

    .auth-card {
        padding: 1.5rem 1rem;
    }
}