/* ============================================================
   Tunisia Dev Days — Design System (Pinterest-inspired per DESIGN.md)
   ============================================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
    /* Brand */
    --color-brand: #e60023;
    --color-brand-hover: #cc001f;

    /* Text */
    --color-text-primary: #211922;
    --color-text-secondary: #62625b;
    --color-text-muted: #91918c;
    --color-text-white: #ffffff;
    --color-text-black: #000000;

    /* Surface */
    --color-bg-white: #ffffff;
    --color-bg-sand: #e5e5e0;
    --color-bg-warm-light: #e0e0d9;
    --color-bg-fog: rgba(246, 246, 243, 0.5);
    --color-bg-dark: #33332e;
    --color-bg-warm-wash: hsla(60, 20%, 98%, 0.5);

    /* Interactive */
    --color-focus: #435ee5;
    --color-link: #2b48d4;
    --color-error: #9e0a0a;
    --color-success: #103c25;

    /* Borders */
    --color-border: #91918c;
    --color-border-disabled: #c8c8c1;
    --color-border-hover: #bcbcb3;

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 32px;
    --radius-hero: 40px;
    --radius-circle: 50%;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-section: 80px;
    --space-hero: 100px;

    /* Font */
    --font-family: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, Oxygen-Sans, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 28px;
    --font-size-hero: clamp(36px, 5vw, 70px);

    /* Max width */
    --max-width: 1200px;
    --max-width-narrow: 800px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text-primary);
    background: var(--color-bg-white);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main {
    flex: 1;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-brand);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: var(--font-size-hero);
    font-weight: 600;
}

h2 {
    font-size: var(--font-size-xl);
    letter-spacing: -1.2px;
}

h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

p {
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ---- Layout ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-section) 0;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-brand);
    color: var(--color-text-black);
}

.btn-primary:hover {
    background: var(--color-brand-hover);
    color: var(--color-text-black);
}

.btn-secondary {
    background: var(--color-bg-sand);
    color: var(--color-text-black);
}

.btn-secondary:hover {
    background: var(--color-border-hover);
    color: var(--color-text-black);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-black);
    border: none;
}

.btn-ghost:hover {
    background: var(--color-bg-fog);
}

.btn-circle {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-circle);
    background: var(--color-bg-warm-light);
    color: var(--color-text-primary);
    border: none;
}

.btn-circle:hover {
    background: var(--color-border-hover);
}

.btn-lg {
    padding: 12px 24px;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.btn-sm {
    padding: 4px 10px;
    font-size: var(--font-size-xs);
}

/* ---- Cards ---- */
.card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card-body {
    padding: var(--space-md);
}

.card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
    line-height: 1.5;
    background: var(--color-bg-warm-wash);
    color: var(--color-text-primary);
}

.badge-mvp {
    background: #0078d4;
    color: white;
}

.badge-rd {
    background: var(--color-success);
    color: white;
}

.badge-superstar {
    background: var(--color-brand);
    color: white;
}

.badge-tier-platinum {
    background: #e5e4e2;
    color: #333;
    font-weight: 700;
}

.badge-tier-gold {
    background: #ffd700;
    color: #333;
}

.badge-tier-silver {
    background: var(--color-bg-sand);
    color: #555;
}

.badge-tier-bronze {
    background: #cd7f32;
    color: white;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.form-input {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    background: var(--color-bg-white);
    transition: border-color 0.15s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-focus);
    box-shadow: 0 0 0 2px rgba(67, 94, 229, 0.2);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input.error {
    border-color: var(--color-error);
}

.form-error {
    color: var(--color-error);
    font-size: var(--font-size-xs);
    margin-top: var(--space-xs);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2362625b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-brand);
}

/* ---- Navigation ---- */
.navbar {
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-bg-sand);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
    gap: var(--space-md);
}

.navbar-brand {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.navbar-brand:hover {
    color: var(--color-brand);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
}

.nav-link {
    padding: 6px 12px;
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--color-bg-sand);
    color: var(--color-text-primary);
}

.nav-link.active {
    color: var(--color-brand);
    font-weight: 600;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-white);
    border: 1px solid var(--color-bg-sand);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 0;
    min-width: 200px;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.show {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    text-decoration: none;
}

.nav-dropdown-item:hover {
    background: var(--color-bg-sand);
    color: var(--color-brand);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-circle);
    cursor: pointer;
    transition: opacity 0.15s;
}

.avatar:hover {
    opacity: 0.85;
}

.user-menu {
    position: relative;
}

.user-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 199;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--color-bg-white);
    border: 1px solid var(--color-bg-sand);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 0;
    min-width: 180px;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.user-menu-dropdown.show {
    display: block;
}

.user-menu-item {
    display: block;
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    text-decoration: none;
}

.user-menu-item:hover {
    background: var(--color-bg-sand);
    color: var(--color-brand);
}

.user-menu-divider {
    border-top: 1px solid var(--color-bg-sand);
    margin: var(--space-xs) 0;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.navbar-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--color-text-primary);
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-inner {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
    }

    .navbar-brand {
        font-size: var(--font-size-base);
    }

    .navbar-right {
        gap: var(--space-xs);
    }

    .navbar-right .edition-switcher {
        display: none;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-white);
        border-bottom: 1px solid var(--color-bg-sand);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-xs);
    }

    .navbar-nav.open {
        display: flex;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: var(--space-md);
    }

    .mobile-edition-switcher {
        display: block;
        padding-top: var(--space-sm);
        border-top: 1px solid var(--color-bg-sand);
        margin-top: var(--space-sm);
    }
}

/* ---- Edition Switcher ---- */
.mobile-edition-switcher {
    display: none;
}

.edition-switcher {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 4px;
    background: var(--color-bg-sand);
    border-radius: var(--radius-md);
}

.edition-switcher-btn {
    padding: 6px 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: var(--color-text-secondary);
    transition: all 0.15s ease;
}

.edition-switcher-btn.active {
    background: var(--color-bg-white);
    color: var(--color-text-primary);
    font-weight: 600;
}

.edition-switcher-btn:hover:not(.active) {
    color: var(--color-text-primary);
}

.edition-more {
    position: relative;
}

.edition-more-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 199;
}

.edition-more-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--color-bg-white);
    border: 1px solid var(--color-bg-sand);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 0;
    min-width: 160px;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.edition-more-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.edition-more-item:hover {
    background: var(--color-bg-sand);
    color: var(--color-text-primary);
}

.edition-more-item.active {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: var(--space-hero) var(--space-lg);
    background: var(--color-bg-white);
}

.hero h1 {
    margin-bottom: var(--space-lg);
}

.hero p {
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Section Headers ---- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    margin-top: var(--space-2xl);
    position: relative;
}

.section-header h2 {
    margin-bottom: var(--space-sm);
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-brand);
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

.section-header p {
    font-size: var(--font-size-base);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Grid Layouts ---- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* Center last row if it has fewer items in grid-3 */
.grid-3 > a:last-child:nth-child(3n+1),
.grid-3 > a:last-child:nth-child(3n+2) {
    justify-self: center;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* Center last row if it has fewer items in grid-4 */
.grid-4 > a:last-child:nth-child(4n+1),
.grid-4 > a:last-child:nth-child(4n+2),
.grid-4 > a:last-child:nth-child(4n+3) {
    justify-self: center;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .speaker-card {
        padding: var(--space-md);
    }

    .speaker-card-photo {
        width: 100px;
        height: 100px;
        margin: 0 auto var(--space-md);
    }

    .speaker-card-name {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Speaker Card ---- */
.speaker-card {
    text-align: center;
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(229,229,224,0.6);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.speaker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-brand), var(--color-brand-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--color-brand);
}

.speaker-card:hover::before {
    opacity: 1;
}

.speaker-card-photo {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-circle);
    object-fit: cover;
    margin: 0 auto var(--space-lg);
    border: 4px solid var(--color-bg-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.speaker-card:hover .speaker-card-photo {
    transform: scale(1.05);
}

.speaker-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary);
    line-height: 1.3;
}

.speaker-card-tagline {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.4;
    flex-grow: 1;
}

.speaker-card-badges {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ---- Session Card ---- */
.session-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-bg-sand);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: transform 0.2s ease;
}

.session-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-hover);
}

.session-card-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.session-card-meta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.session-card-tags {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.tag {
    padding: 2px 8px;
    background: var(--color-bg-sand);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

/* ---- Schedule ---- */
.schedule-day {
    margin-bottom: var(--space-2xl);
}

.schedule-day-header {
    font-size: var(--font-size-lg);
    font-weight: 700;
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-brand);
    margin-bottom: var(--space-lg);
}

.schedule-slot {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-bg-sand);
}

.schedule-time {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    padding-top: 2px;
}

.schedule-room {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.schedule-session-title {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.schedule-session-speaker {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

@media (max-width: 576px) {
    .schedule-slot {
        grid-template-columns: 1fr;
    }
}

/* ---- Ticket Card (Legacy) ---- */
.ticket-card {
    background: var(--color-bg-white);
    border: 2px solid var(--color-bg-sand);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: border-color 0.2s ease;
}

.ticket-card:hover {
    border-color: var(--color-brand);
}

.ticket-card-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.ticket-card-price {
    font-size: var(--font-size-hero);
    font-weight: 600;
    color: var(--color-brand);
    margin-bottom: var(--space-md);
}

.ticket-card-price .currency {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
}

.ticket-card-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.ticket-card-remaining {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

/* ---- Premium Tickets Page (tdd-ticket-) ---- */

/* Hero Section */
.tdd-ticket-hero {
    background: linear-gradient(168deg, #f7f6f3 0%, #edeae4 40%, #e8ebe6 100%);
    padding: var(--space-hero) 0 var(--space-2xl);
    text-align: center;
}

.tdd-ticket-hero-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.tdd-ticket-hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto var(--space-lg);
    line-height: 1.6;
}

.tdd-ticket-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.tdd-ticket-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    border: 1px solid var(--color-bg-sand);
    border-radius: 100px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.01em;
}

/* Ticket Grid Section */
.tdd-ticket-section {
    padding: var(--space-section) 0;
    background: var(--color-bg-white);
}

.tdd-ticket-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: start;
}

/* Ticket Card */
.tdd-ticket-card {
    position: relative;
    background: var(--color-bg-white);
    border: 1.5px solid var(--color-bg-sand);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tdd-ticket-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Recommended Card */
.tdd-ticket-card--recommended {
    border-color: #1a7a5c;
    border-width: 2px;
    box-shadow: 0 4px 24px rgba(26,122,92,0.10);
}

.tdd-ticket-card--recommended:hover {
    border-color: #1a7a5c;
    box-shadow: 0 8px 40px rgba(26,122,92,0.15);
}

/* Badge */
.tdd-ticket-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a7a5c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 5px 18px;
    border-radius: 100px;
    white-space: nowrap;
}

/* Card Content */
.tdd-ticket-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.tdd-ticket-price {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    color: #1a7a5c;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.tdd-ticket-currency {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Benefits List */
.tdd-ticket-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
    width: 100%;
    text-align: left;
}

.tdd-ticket-benefits li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    border-bottom: 1px solid #f0f0ec;
    line-height: 1.4;
}

.tdd-ticket-benefits li:last-child {
    border-bottom: none;
}

.tdd-ticket-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: 700;
    font-size: 14px;
    color: #1a7a5c;
}

/* CTA Button */
.tdd-ticket-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.2s ease;
}

.tdd-ticket-card--recommended .tdd-ticket-btn.btn-primary {
    background: #1a7a5c;
    color: #fff;
    border-color: #1a7a5c;
}

.tdd-ticket-card--recommended .tdd-ticket-btn.btn-primary:hover {
    background: #15664d;
    border-color: #15664d;
}

/* Remaining Label */
.tdd-ticket-remaining {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    font-weight: 500;
}

/* Trust Section */
.tdd-ticket-trust {
    background: linear-gradient(168deg, #f7f6f3 0%, #edeae4 100%);
    padding: var(--space-2xl) 0;
}

.tdd-ticket-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.tdd-ticket-trust-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.tdd-ticket-trust-number {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-primary);
}

.tdd-ticket-trust-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---- Ticket Page Responsive ---- */
@media (max-width: 1024px) {
    .tdd-ticket-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tdd-ticket-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .tdd-ticket-hero {
        padding: var(--space-2xl) 0 var(--space-lg);
    }
    .tdd-ticket-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .tdd-ticket-card {
        padding: var(--space-xl) var(--space-lg);
    }
    .tdd-ticket-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tdd-ticket-pills {
        gap: 6px;
    }
    .tdd-ticket-pill {
        font-size: 11px;
        padding: 5px 12px;
    }
}

@media (max-width: 480px) {
    .tdd-ticket-trust-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Partner Grid ---- */
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-bg-sand);
    transition: border-color 0.2s ease;
}

.partner-logo:hover {
    border-color: var(--color-border-hover);
}

.partner-logo img {
    max-height: 60px;
    object-fit: contain;
}

/* ---- Gallery ---- */
.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ---- Footer ---- */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-muted);
    padding: var(--space-section) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer h4 {
    color: var(--color-text-white);
    font-size: var(--font-size-sm);
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer a {
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    display: block;
    padding: 3px 0;
    text-decoration: none;
}

.footer a:hover {
    color: var(--color-text-white);
}

/* ---- Language Switcher ---- */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-switcher-btn {
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: var(--color-text-white);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.language-switcher-btn:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
}

.language-switcher-btn.active {
    background: var(--color-brand);
    border-color: var(--color-brand);
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xs);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .language-switcher {
        justify-content: center;
        order: 2;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .language-switcher {
        gap: 4px;
    }

    .language-switcher-btn {
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* ---- Tables (Admin) ---- */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th {
    text-align: left;
    font-weight: 600;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-sand);
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-border-hover);
}

.table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-bg-sand);
    color: var(--color-text-secondary);
}

.table tr:hover td {
    background: var(--color-bg-fog);
}

/* ---- Alerts ---- */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
}

.alert-success {
    background: rgba(16, 60, 37, 0.08);
    color: var(--color-success);
    border: 1px solid rgba(16, 60, 37, 0.2);
}

.alert-error {
    background: rgba(158, 10, 10, 0.08);
    color: var(--color-error);
    border: 1px solid rgba(158, 10, 10, 0.2);
}

.alert-info {
    background: rgba(67, 94, 229, 0.08);
    color: var(--color-focus);
    border: 1px solid rgba(67, 94, 229, 0.2);
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-brand { color: var(--color-brand); }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.w-full { width: 100%; }
.hidden { display: none; }

.loading {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--color-text-muted);
}

.page-header {
    padding: var(--space-2xl) 0;
    text-align: center;
    background: var(--color-bg-fog);
    margin-bottom: var(--space-xl);
}

.page-header h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    letter-spacing: -1.2px;
}

/* ---- Social Links ---- */
.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-circle);
    background: var(--color-bg-sand);
    color: var(--color-text-secondary);
    font-size: var(--font-size-xs);
    text-decoration: none;
    transition: all 0.15s ease;
}

.social-link:hover {
    background: var(--color-brand);
    color: white;
}

/* ---- Admin Sidebar ---- */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    background: var(--color-bg-dark);
    padding: var(--space-lg);
}

.admin-sidebar a {
    display: block;
    padding: 8px 12px;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255,255,255,0.1);
    color: var(--color-text-white);
}

.admin-content {
    padding: var(--space-xl);
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        padding: var(--space-sm) var(--space-md);
        display: flex;
        gap: var(--space-sm);
        overflow-x: auto;
    }

    .admin-sidebar a {
        white-space: nowrap;
    }
}

/* ---- Misc ---- */
.divider {
    border: none;
    border-top: 1px solid var(--color-bg-sand);
    margin: var(--space-lg) 0;
}

.empty-state {
    text-align: center;
    padding: var(--space-section) var(--space-lg);
    color: var(--color-text-muted);
}

.empty-state p {
    color: var(--color-text-muted);
}

.status-active { color: var(--color-success); font-weight: 600; }
.status-cancelled { color: var(--color-error); font-weight: 600; }
.status-pending { color: #b5880a; font-weight: 600; }

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-circle);
    border: 4px solid var(--color-bg-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-text-white);
}

.section-dark p {
    color: var(--color-text-muted);
}

.cta-section {
    background: var(--color-brand);
    padding: var(--space-section) var(--space-lg);
    text-align: center;
    border-radius: var(--radius-hero);
    margin: var(--space-xl) auto;
    max-width: var(--max-width);
}

.cta-section h2 {
    color: var(--color-text-white);
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-lg);
}

.cta-section .btn {
    background: var(--color-text-white);
    color: var(--color-brand);
    font-weight: 600;
}

.cta-section .btn:hover {
    background: var(--color-bg-sand);
}

.validation-message {
    color: var(--color-error);
    font-size: var(--font-size-xs);
    margin-top: var(--space-xs);
}

.validation-summary-errors {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
}

/* ---- Table Responsive Wrapper ---- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---- Social Posts Layout ---- */
.social-posts-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.social-posts-layout.has-preview {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .social-posts-layout.has-preview {
        grid-template-columns: 1fr;
    }
}

/* ---- Mobile Refinements ---- */
@media (max-width: 768px) {
    /* Admin content padding */
    .admin-content {
        padding: var(--space-md);
    }

    /* Profile header stacks vertically */
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    /* Container narrow pages */
    .container-narrow {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    /* Buttons wrap on small screens */
    .flex.gap-sm,
    .flex.gap-md {
        flex-wrap: wrap;
    }

    /* Cards reduce padding */
    .card {
        padding: var(--space-md);
    }

    /* CTA section reduces border radius */
    .cta-section {
        border-radius: var(--radius-xl);
        margin-left: var(--space-md);
        margin-right: var(--space-md);
    }
}

@media (max-width: 576px) {
    /* Stack 2-col detail grids */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Buttons go full width */
    .btn-lg {
        width: 100%;
        text-align: center;
    }

    /* Page header smaller */
    .page-header {
        padding: var(--space-lg) var(--space-md);
    }
}

/* ---- My Tickets ---- */
.my-tickets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.my-tickets-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    user-select: none;
}

.my-tickets-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-brand);
}

.order-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-bg-sand);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.order-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-bg-sand);
    background: var(--color-bg-fog);
}

.order-card-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.order-number {
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
}

.order-date {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.order-card-header-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.order-edition {
    font-weight: 600;
}

.order-amount {
    color: var(--color-text-muted);
}

.order-pending-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(181, 136, 10, 0.06);
    border-bottom: 1px solid var(--color-bg-sand);
}

.order-card-body {
    padding: var(--space-md) var(--space-lg);
}

.ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-bg-sand);
}

.ticket-item:last-child {
    border-bottom: none;
}

.ticket-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex: 1;
    min-width: 0;
}

.ticket-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-bg-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.ticket-details {
    min-width: 0;
}

.ticket-number {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
}

.ticket-attendee {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
    background: var(--color-bg-warm-wash);
    color: var(--color-text-primary);
    white-space: nowrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    white-space: nowrap;
}

.status-badge--active {
    background: rgba(16, 60, 37, 0.1);
    color: var(--color-success);
}

.status-badge--cancelled {
    background: rgba(158, 10, 10, 0.1);
    color: var(--color-error);
}

.status-badge--pending {
    background: rgba(181, 136, 10, 0.1);
    color: #b5880a;
}

.status-badge--dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ticket-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.btn-danger-ghost {
    background: transparent;
    color: var(--color-error);
    border: none;
    padding: 4px 10px;
    font-size: var(--font-size-xs);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 400;
    transition: all 0.15s ease;
}

.btn-danger-ghost:hover {
    background: rgba(158, 10, 10, 0.08);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    animation: fadeIn 0.15s ease;
}

.modal-card {
    background: var(--color-bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-card h3 {
    margin-bottom: var(--space-md);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .ticket-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-meta {
        justify-content: flex-start;
        width: 100%;
    }

    .ticket-actions {
        width: 100%;
    }

    .ticket-actions .btn {
        flex: 1;
    }

    .order-card-header {
        padding: var(--space-md);
    }

    .order-card-body {
        padding: var(--space-sm) var(--space-md);
    }

    .ticket-info {
        gap: var(--space-sm);
    }
}

@media (max-width: 576px) {
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .my-tickets-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- Ticket Preview (in-app display) ---- */
.ticket-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    animation: fadeIn 0.15s ease;
}

.ticket-preview-wrapper {
    max-width: 680px;
    width: 100%;
    animation: slideUp 0.2s ease;
}

.ticket-preview {
    background: #f8f6f3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    position: relative;
}

.ticket-preview-accent {
    height: 6px;
    background: #e94560;
}

.ticket-preview-body {
    display: flex;
    padding: var(--space-xl);
    gap: var(--space-lg);
}

.ticket-preview-left {
    flex: 3;
    min-width: 0;
}

.ticket-preview-separator {
    width: 1px;
    background: #e5e5e0;
    flex-shrink: 0;
    position: relative;
}

.ticket-preview-separator::before,
.ticket-preview-separator::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 0 0 10px 10px;
}

.ticket-preview-separator::before {
    top: calc(-1 * var(--space-xl));
    border-radius: 0 0 10px 10px;
}

.ticket-preview-separator::after {
    bottom: calc(-1 * var(--space-xl));
    border-radius: 10px 10px 0 0;
}

.ticket-preview-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ticket-preview-event {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1a1a2e;
    line-height: 1.1;
}

.ticket-preview-edition {
    font-size: var(--font-size-xs);
    color: #6b7280;
    margin-top: 2px;
}

.ticket-preview-info-row {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.ticket-preview-info-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #e94560;
    text-transform: uppercase;
}

.ticket-preview-info-value {
    font-size: var(--font-size-sm);
    color: #1a1a2e;
    margin-top: 2px;
}

.ticket-preview-divider {
    height: 1px;
    background: #e5e5e0;
    margin: var(--space-lg) 0;
}

.ticket-preview-attendee-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #e94560;
    text-transform: uppercase;
}

.ticket-preview-attendee-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 4px;
}

.ticket-preview-detail-row {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-md);
}

.ticket-preview-ticket-num {
    margin-top: var(--space-md);
    font-size: var(--font-size-xs);
    color: #6b7280;
}

.ticket-preview-ticket-num strong {
    color: #1a1a2e;
    font-weight: 600;
}

.ticket-preview-qr-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #e94560;
    text-transform: uppercase;
}

.ticket-preview-qr {
    width: 110px;
    height: 110px;
    margin-top: var(--space-sm);
    border-radius: var(--radius-sm);
}

.ticket-preview-qr-number {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: var(--space-sm);
    word-break: break-all;
}

.ticket-preview-qr-status {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.ticket-preview-bottom {
    height: 5px;
    background: #1a1a2e;
}

.ticket-preview-close {
    display: flex;
    justify-content: center;
    margin-top: var(--space-md);
}

.ticket-preview-close .btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.ticket-preview-close .btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 576px) {
    .ticket-preview-body {
        flex-direction: column;
        padding: var(--space-lg);
    }

    .ticket-preview-separator {
        width: 100%;
        height: 1px;
        border-style: dashed;
    }

    .ticket-preview-separator::before,
    .ticket-preview-separator::after {
        display: none;
    }

    .ticket-preview-right {
        padding-top: var(--space-md);
    }

    .ticket-preview-attendee-name {
        font-size: 18px;
    }

    .ticket-preview-event {
        font-size: 17px;
    }

    .ticket-preview-info-row,
    .ticket-preview-detail-row {
        flex-direction: column;
        gap: var(--space-sm);
    }
}
