:root {
    --gold-primary: #d4af37;
    --gold-light: #f9e8a2;
    --gold-dark: #997b1e;
    --gold-gradient: linear-gradient(135deg, #fce085 0%, #d4af37 50%, #997b1e 100%);
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.25);
    
    --bg-dark: #0c0f14;
    --bg-card: #151921;
    --bg-card-hover: #1c222c;
    --bg-input: #1a202c;
    --border-color: rgba(212, 175, 55, 0.25);
    --border-focus: rgba(212, 175, 55, 0.8);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-gold: #f3df91;
    
    --success: #10b981;
    --danger: #ef4444;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(153, 123, 30, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    padding-bottom: 40px;
}

/* Container */
.container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 16px 20px;
}

.container-wide {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Branding */
.header-brand {
    text-align: center;
    padding: 20px 0 15px;
}

.brand-logo-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: 12px;
}

.brand-logo {
    width: 105px;
    height: 105px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.4));
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.04);
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.event-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
    margin-bottom: 6px;
}

.event-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* Event Info Pill / Card */
.event-info-strip {
    background: rgba(21, 25, 33, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.info-item .icon {
    font-size: 1rem;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.info-item strong {
    color: var(--text-primary);
}

.btn-poster {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.btn-poster:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--gold-primary);
    transform: translateY(-1px);
}

/* Form Card */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

.form-header {
    text-align: center;
    margin-bottom: 22px;
}

.form-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.form-header p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Form Groups */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gold);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--gold-primary);
    font-size: 1rem;
    pointer-events: none;
}

.form-control {
    width: 100%;
    height: 48px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 0 16px 0 42px;
    transition: all 0.25s ease;
}

textarea.form-control {
    height: auto;
    min-height: 80px;
    padding: 12px 16px 12px 42px;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
    background: #1e2634;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Digital Signature Canvas */
.signature-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 2px dashed rgba(212, 175, 55, 0.5);
    position: relative;
    overflow: hidden;
    touch-action: none; /* Prevents scroll while signing on touch screen */
}

.signature-canvas {
    display: block;
    width: 100%;
    height: 180px;
    cursor: crosshair;
    background-color: #ffffff;
}

.signature-guideline {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 35px;
    border-bottom: 1px dashed #cbd5e1;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4px;
}

.signature-guideline span {
    font-size: 0.72rem;
    color: #94a3b8;
}

.signature-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.btn-clear-sig {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-clear-sig:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
}

.sig-status-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Buttons */
.btn-submit {
    width: 100%;
    height: 52px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #0c0f14;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.55);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Secondary Button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Success Card */
.success-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.success-icon-wrap {
    width: 76px;
    height: 76px;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--success);
    font-size: 2.2rem;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.ticket-pass {
    background: #0f131a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    padding: 18px;
    margin: 20px 0;
    text-align: left;
    position: relative;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
}

.ticket-row:last-child {
    border-bottom: none;
}

.ticket-label {
    color: var(--text-secondary);
}

.ticket-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.ticket-sig-preview {
    max-height: 50px;
    background: #ffffff;
    border-radius: 4px;
    padding: 4px;
}

/* Modal Poster Preview */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 480px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.modal-poster-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: #6ee7b7;
}

/* Footer Navigation */
.footer-links {
    text-align: center;
    margin-top: 25px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--gold-light);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Admin Table Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

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

.stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.table-responsive {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.data-table th {
    background: #0f131a;
    color: var(--gold-light);
    padding: 12px 14px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.data-table tr:hover {
    background: var(--bg-card-hover);
}

.sig-thumb {
    max-width: 90px;
    max-height: 38px;
    background: #fff;
    border-radius: 4px;
    padding: 3px;
    cursor: pointer;
    transition: transform 0.2s;
}

.sig-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-wa:hover {
    background: rgba(37, 211, 102, 0.25);
}

/* Standee QR Page Styles */
.standee-card {
    background: #ffffff;
    color: #111827;
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    border: 3px solid #d4af37;
    position: relative;
}

.standee-card .logo {
    width: 110px;
    margin-bottom: 12px;
}

.standee-qr-frame {
    background: #f8fafc;
    border: 2px dashed #d4af37;
    border-radius: 16px;
    padding: 20px;
    display: inline-block;
    margin: 18px auto;
}

@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
    }
    .no-print {
        display: none !important;
    }
    .standee-card {
        box-shadow: none !important;
        border: 2px solid #000 !important;
        max-width: 100% !important;
        padding: 20px !important;
    }
}
