/* ============================================================
   Sound Healing — Rotary Bangalore Socials
   BookMyShow-inspired booking flow styling
   ============================================================ */

:root {
    --bg: #ffffff;
    --bg-card: #ffffff;
    --bg-card-alt: #f4f5f7;
    --border: #e0e2e8;
    --text: #111318;
    --text-dim: #5b616e;
    --brand: #c62f49;       /* BookMyShow-esque red, darkened for white bg */
    --brand-dark: #a3243a;
    --accent: #a9740a;      /* warm gold for sound-healing vibe, darkened for contrast */
    --success: #1f9d5c;
    --warning: #b9760c;
    --info: #2f6fdb;
    --danger: #d13438;
    --radius: 12px;
    --shadow: 0 6px 20px rgba(17,19,24,0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* ---------- Hero / Event banner ---------- */
.hero {
    background: linear-gradient(135deg, #fdf6ea 0%, #ffffff 55%, #fdf0f1 100%);
    border-bottom: 1px solid var(--border);
    padding: 40px 16px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -80px; right: -80px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(169,116,10,0.12), transparent 70%);
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -100px; left: -60px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(198,47,73,0.10), transparent 70%);
}
.logo-badge {
    display: inline-block;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 10px;
    line-height: 0;
}
.logo-badge img {
    display: block;
    height: 40px;
    width: auto;
}
.topbar .logo-badge {
    padding: 6px 10px;
    border-radius: 8px;
}
.topbar .logo-badge img {
    height: 26px;
}
.topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.login-wrap .logo-badge {
    display: block;
    margin: 0 auto 18px;
    width: fit-content;
}

.hero-eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 600;
}
.hero h1 {
    font-size: 34px;
    margin: 10px 0 6px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.hero p.meta {
    color: var(--text-dim);
    margin: 0 0 4px;
    font-size: 15px;
}
.hero .org {
    display: inline-block;
    margin-top: 14px;
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-dim);
}

.avail-pill {
    display: inline-block;
    margin-top: 18px;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}
.avail-pill.ok { background: rgba(47,191,113,0.15); color: var(--success); border: 1px solid rgba(47,191,113,0.35); }
.avail-pill.low { background: rgba(240,169,63,0.15); color: var(--warning); border: 1px solid rgba(240,169,63,0.35); }
.avail-pill.sold { background: rgba(229,72,77,0.15); color: var(--danger); border: 1px solid rgba(229,72,77,0.35); }

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--shadow);
}
.card h2 {
    margin-top: 0;
    font-size: 19px;
}
.card h3 {
    font-size: 15px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 14px;
}

/* ---------- Form ---------- */
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    margin: 18px 0 6px;
}
label:first-of-type { margin-top: 0; }
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=password], select, textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
}
input[type=file] {
    width: 100%;
    padding: 10px;
    background: var(--bg-card-alt);
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-dim);
}
.help {
    font-size: 12.5px;
    color: var(--text-dim);
    margin-top: 4px;
}
.error { color: var(--danger); font-size: 13px; margin-top: 4px; }

.amount-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 4px;
    font-size: 13.5px;
    color: var(--text-dim);
    margin-top: 14px;
}
.amount-line.discount { color: var(--success); font-weight: 600; }

.amount-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 18px;
}
.amount-box .label { color: var(--text-dim); font-size: 13px; }
.amount-box .value { font-size: 26px; font-weight: 800; color: var(--accent); }

.upi-box {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 10px;
    font-size: 14px;
}
.upi-box code {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 14px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(0.99); }
.btn.block { width: 100%; margin-top: 22px; }
.btn.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn.small { padding: 7px 12px; font-size: 12.5px; border-radius: 6px; }
.btn.success { background: var(--success); }
.btn.warning { background: var(--warning); color: #1a1400; }
.btn.danger { background: var(--danger); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Ticket page ---------- */
.ticket {
    background: linear-gradient(135deg, #ffffff, #f7f7f9);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.ticket-top { padding: 26px; text-align: center; }
.ticket-top .status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 14px;
}
.ticket-id {
    font-size: 28px;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--accent);
    margin: 4px 0 0;
}
.ticket-divider {
    position: relative;
    border-top: 2px dashed var(--border);
    margin: 0 26px;
}
.ticket-divider::before, .ticket-divider::after {
    content: "";
    position: absolute;
    top: -12px;
    width: 24px; height: 24px;
    background: var(--bg);
    border-radius: 50%;
}
.ticket-divider::before { left: -38px; }
.ticket-divider::after { right: -38px; }
.ticket-details { padding: 22px 26px 26px; }
.ticket-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.ticket-row .k { color: var(--text-dim); }
.ticket-row .v { font-weight: 600; }

.notice {
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13.5px;
    margin-top: 18px;
    border: 1px solid;
}
.notice.pending { background: rgba(240,169,63,0.10); border-color: rgba(240,169,63,0.35); color: var(--warning); }
.notice.confirmed { background: rgba(47,191,113,0.10); border-color: rgba(47,191,113,0.35); color: var(--success); }
.notice.rejected { background: rgba(229,72,77,0.10); border-color: rgba(229,72,77,0.35); color: var(--danger); }

/* ---------- Badges (dashboard table) ---------- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.badge-pending   { background: rgba(240,169,63,0.15); color: var(--warning); }
.badge-verified  { background: rgba(79,142,247,0.15); color: var(--info); }
.badge-confirmed { background: rgba(47,191,113,0.15); color: var(--success); }
.badge-rejected  { background: rgba(229,72,77,0.15); color: var(--danger); }

/* ---------- Dashboard ---------- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}
.topbar .brand { font-weight: 800; }
.topbar .brand span { color: var(--accent); }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.stat-card {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}
.stat-card .num { font-size: 26px; font-weight: 800; }
.stat-card .lbl { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
.stat-card.highlight { border-color: var(--brand); background: rgba(216,66,92,0.08); }
.stat-card.highlight .num { color: var(--accent); font-size: 30px; }

.progress-track {
    width: 100%;
    height: 10px;
    background: var(--bg-card-alt);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 14px;
    border: 1px solid var(--border);
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}
th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
th { color: var(--text-dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; }
tr:hover td { background: var(--bg-card-alt); }
.table-wrap { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; margin-top: 20px; }

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.filters input, .filters select { width: auto; min-width: 160px; }

.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }

.login-wrap {
    max-width: 380px;
    margin: 80px auto;
    padding: 0 16px;
}

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.flash.success { background: rgba(47,191,113,0.12); border: 1px solid rgba(47,191,113,0.3); color: var(--success); }
.flash.error { background: rgba(229,72,77,0.12); border: 1px solid rgba(229,72,77,0.3); color: var(--danger); }

.footer-note {
    text-align: center;
    color: var(--text-dim);
    font-size: 12.5px;
    margin-top: 30px;
}

@media print {
    .no-print { display: none !important; }
    body { background: #fff; color: #000; }
}
