.c434-ticket-body { margin: 0; font-family: system-ui, sans-serif; background: #f8fafc; }
.c434-ticket-header { background: #4f46e5; color: #fff; padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.c434-ticket-logo { color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.c434-ticket-nav { display: flex; gap: 16px; align-items: center; }
.c434-ticket-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; }
.c434-ticket-nav a:hover { color: #fff; }
.c434-ticket-main { max-width: 900px; margin: 32px auto; padding: 0 16px; }
.c434-ticket-form { background: #fff; border-radius: 8px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); max-width: 440px; margin: 0 auto; }
.c434-ticket-form h2 { margin: 0 0 24px; font-size: 22px; color: #1e293b; }
.c434-ticket-events { display: grid; grid-template-columns: 1fr; gap: 20px; }
.c434-ticket-event-card { background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(15,23,42,0.08); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.c434-ticket-event-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,0.12); }
.c434-ticket-event-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e2e8f0; }
.c434-ticket-event-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; background: #e2e8f0; color: #64748b; font-size: 14px; }
.c434-ticket-card-body { padding: 20px; }
.c434-ticket-card-body h2 { margin: 0 0 8px; font-size: 22px; color: #0f172a; }
.c434-ticket-card-body p { color: #475569; margin: 12px 0 16px; }
.c434-ticket-meta { color: #64748b; font-size: 14px; }
.c434-ticket-event-detail { padding: 0; overflow: hidden; }
.c434-ticket-event-detail-image { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.c434-ticket-event-detail-body { padding: 24px; }
.c434-ticket-description p:first-child { margin-top: 0; }
.c434-ticket-types { display: flex; flex-direction: column; gap: 16px; }
.c434-ticket-type-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.c434-ticket-type-row.is-disabled { opacity: 0.65; }
.c434-ticket-qty { width: 72px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; text-align: center; font-size: 16px; }
.c434-ticket-checkout-section { display: none; }
.c434-ticket-order-total { font-size: 18px; font-weight: 700; color: #0f172a; margin: 16px 0; }
.sq-card-wrapper { border: 1px solid #cbd5e1; border-radius: 12px; padding: 14px; background: #fff; box-shadow: inset 0 1px 2px rgba(15,23,42,0.04); }
.c434-ticket-success { background: #ecfdf5; color: #166534; border: 1px solid #86efac; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.c434-ticket-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
@media (min-width: 768px) { .c434-ticket-events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .c434-ticket-type-row { flex-direction: column; align-items: stretch; } .c434-ticket-qty { width: 100%; } }

/* Account dashboard */
.c434-ticket-orders-table { width: 100%; border-collapse: collapse; }
.c434-ticket-orders-table th, .c434-ticket-orders-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.c434-ticket-orders-table th { font-weight: 600; color: #475569; font-size: 13px; text-transform: uppercase; }
.c434-ticket-status-paid { color: #16a34a; font-weight: 600; }
.c434-ticket-status-pending { color: #d97706; font-weight: 600; }
.c434-ticket-status-refunded { color: #64748b; }
.c434-ticket-status-failed { color: #dc2626; }
.c434-ticket-link-banner { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.c434-ticket-link-banner p { margin: 0; color: #1e40af; font-size: 14px; }

/* Order detail / printable tickets */
.c434-ticket-order-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.c434-ticket-codes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.c434-ticket-code-card { border: 2px dashed #cbd5e1; border-radius: 8px; padding: 16px; text-align: center; }
.c434-ticket-code { font-family: monospace; font-size: 15px; font-weight: 700; color: #1e293b; letter-spacing: 0.05em; word-break: break-all; }
.c434-ticket-code-type { font-size: 12px; color: #64748b; margin-top: 4px; }
@media print {
    .c434-ticket-header, .c434-ticket-order-back, .c434-ticket-print-btn { display: none !important; }
    .c434-ticket-body { background: #fff; }
    .c434-ticket-main { margin: 0; padding: 0; max-width: 100%; }
    .c434-ticket-code-card { border: 1px solid #000; break-inside: avoid; }
}


/* Loading & empty states */
.c434-loading { text-align: center; padding: 40px 20px; color: #64748b; }
.c434-loading::before { content: ''; display: block; width: 32px; height: 32px; margin: 0 auto 12px; border: 3px solid #e2e8f0; border-top-color: var(--c434-primary, #2563eb); border-radius: 50%; animation: c434spin 0.8s linear infinite; }
@keyframes c434spin { to { transform: rotate(360deg); } }
.c434-empty { text-align: center; padding: 48px 20px; color: #94a3b8; }
.c434-empty-icon { font-size: 48px; display: block; margin-bottom: 12px; }

/* Toast notifications */
.c434-toast { position: fixed; bottom: 24px; right: 24px; padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #fff; z-index: 9999; animation: c434slideup 0.3s ease; max-width: 320px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.c434-toast-success { background: #16a34a; }
.c434-toast-error   { background: #dc2626; }
.c434-toast-info    { background: #2563eb; }
@keyframes c434slideup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Shortcode widgets */
.c434-tickets-widget, .c434-event-tickets-widget { font-family: inherit; }
.c434-tickets-widget .c434-event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.c434-tickets-widget .c434-event-card { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow 0.2s; }
.c434-tickets-widget .c434-event-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.c434-tickets-widget .c434-event-card img { width: 100%; height: 140px; object-fit: cover; }
.c434-tickets-widget .c434-event-card-body { padding: 14px 16px; }
.c434-tickets-widget .c434-event-card h3 { margin: 0 0 6px; font-size: 16px; }
.c434-tickets-widget .c434-event-card-meta { font-size: 13px; color: #64748b; margin-bottom: 10px; }
.c434-tickets-widget .c434-event-card-footer { display: flex; align-items: center; justify-content: space-between; }
.c434-tickets-widget .c434-event-price, .c434-event-tickets-widget .c434-event-price { font-weight: 600; color: #1e293b; }
.c434-tickets-widget .c434-sold-out-badge { background: #fee2e2; color: #dc2626; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.c434-tickets-widget .c434-btn-sm, .c434-event-tickets-widget .c434-btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 6px; background: var(--c434-primary, #2563eb); color: #fff; text-decoration: none; display: inline-block; }
.c434-event-tickets-widget .c434-event-panel { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; padding: 18px; }
.c434-event-tickets-widget .c434-event-meta { font-size: 13px; color: #64748b; margin: 0 0 8px; }
.c434-event-tickets-widget .c434-event-excerpt { color: #475569; margin: 12px 0 16px; }
.c434-event-tickets-widget .c434-ticket-type-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.c434-event-tickets-widget .c434-ticket-type-row:last-child { border-bottom: 0; }

/* Responsive tweaks */
@media (max-width: 600px) {
    .c434-ticket-main { padding: 12px; }
    .c434-ticket-order-header { flex-direction: column; align-items: flex-start; }
    .c434-ticket-codes-grid { grid-template-columns: 1fr 1fr; }
    .c434-ticket-event-grid { grid-template-columns: 1fr; }
    .c434-event-tickets-widget .c434-ticket-type-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
