/* ==========================
   BASE
========================== */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
    background: #f1f5f9;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ==========================
   REVEAL
========================== */

.reveal      { opacity:0; transform:translateY(20px); transition:.55s ease; }
.reveal-left { opacity:0; transform:translateX(-22px); transition:.55s ease; }
.reveal-right{ opacity:0; transform:translateX(22px);  transition:.6s ease .1s; }

.reveal.revealed, .reveal-left.revealed, .reveal-right.revealed {
    opacity:1; transform:translate(0);
}

/* ==========================
   WRAPPER
========================== */

.ed-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px 70px;
}

/* ==========================
   HERO
========================== */

.ed-hero {
    position: relative;
    margin-bottom: 36px;
}

.ed-hero-image {
    aspect-ratio: 16/9;
    width: 100%;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    position: relative;
}

.ed-hero-image img {
    aspect-ratio: 16/9;
    width: 100%;
    object-fit: initial;
    transition: transform .6s ease;
}

.ed-hero-image:hover img { transform: scale(1.03); }

.ed-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.55) 100%);
}

.ed-hero-placeholder {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.25);
}

/* Floating card */
.ed-hero-card {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 20px;
    padding: 28px 32px;
    margin: -20px 0px 0;
    box-shadow: 0 12px 40px rgba(15,23,42,.14);
    border: 1px solid #eef2f7;
    animation: cardIn .6s cubic-bezier(.22,1,.36,1) .15s both;
}

@keyframes cardIn {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 14px;
    transition: color .2s;
}

.back-link:hover { color: #2563eb; }

.ed-status-row { margin-bottom: 12px; }

.ed-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-open   { background: #dcfce7; color: #16a34a; border:1px solid #bbf7d0; }
.badge-closed { background: #fee2e2; color: #dc2626; border:1px solid #fecaca; }

/* Pulsing green dot */
.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #16a34a;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #16a34a;
    opacity: .6;
    animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
    0%   { transform:scale(.8); opacity:.6; }
    100% { transform:scale(1.8); opacity:0; }
}

.ed-title {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -.5px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.ed-meta-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.meta-chip svg { color: #2563eb; }

/* ==========================
   BODY GRID
========================== */

.ed-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 26px;
    align-items: start;
}

/* ==========================
   MAIN CONTENT
========================== */

.ed-main {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 24px;
}

.ed-section {
    background: white;
    border-radius: 18px;
    padding: 26px 28px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(15,23,42,.05);
}

.ed-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.ed-section-title svg { color: #2563eb; }

.ed-description {
    font-size: 15px;
    color: #475569;
    line-height: 1.85;
}

/* Detail grid */
.ed-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ed-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: .25s;
}

.ed-detail-item:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.detail-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
    transition: .25s;
}

.ed-detail-item:hover .detail-icon {
    background: #2563eb;
    color: white;
}

.detail-lbl {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.detail-val {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

/* ==========================
   SIDEBAR
========================== */

.ed-sidebar {
    position: sticky;
    padding: 10px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Seat card */
.ed-seat-card {
    background: white;
    border-radius: 18px;
    padding: 26px 22px;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 18px rgba(15,23,42,.07);
    text-align: center;
}

.ed-seat-card h3 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}

/* Circular ring */
.seat-ring-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
}

.seat-ring {
    width: 130px;
    height: 130px;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 10;
}

.ring-fill {
    fill: none;
    stroke: url(#ringGrad);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.2s cubic-bezier(.22,1,.36,1);
}

.ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ring-num {
    font-size: 30px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.ring-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Seat stats */
.seat-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 18px;
}

.seat-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ss-num {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.ss-num.zero { color: #dc2626; }

.ss-lbl {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.ss-divider {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
}

/* Fill bar */
.seat-bar-wrap { margin-bottom: 20px; }

.seat-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}

.seat-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    transition: width 1s cubic-bezier(.22,1,.36,1);
}

.bar-warn   { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar-danger { background: linear-gradient(90deg, #ef4444, #f87171); }

.seat-bar-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

/* Register button */
.reg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    transition: .25s;
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
    margin-bottom: 10px;
}

.reg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,.45);
}

.urgency-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 12px;
}

.badge-registered {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1.5px solid #a7f3d0 !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.registered-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #ecfdf5;
    border: 1.5px solid #10b981;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #047857;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.user-reg-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 12px;
}

.user-reg-alert-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.user-reg-alert strong {
    display: block;
    font-size: 13.5px;
    color: #166534;
    margin-bottom: 2px;
}

.user-reg-alert p {
    font-size: 12.5px;
    color: #15803d;
    margin: 0;
    line-height: 1.4;
}

.ed-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: #25D366;
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.ed-whatsapp-btn:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.ed-flash-wrap {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.ed-flash-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ecfdf5;
    color: #047857;
    border: 1.5px solid #10b981;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.closed-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
}

/* Share card */
.ed-share-card {
    background: white;
    border-radius: 16px;
    padding: 18px 20px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(15,23,42,.05);
}

.share-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
}

.share-btns {
    display: flex;
    gap: 10px;
}

.share-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    text-decoration: none;
    transition: .2s;
    font-family: inherit;
}

.share-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 768px) {

    .ed-wrapper { padding: 18px 14px 70px; }

    .ed-hero-image { border-radius: 0 0 18px 18px; }

    .ed-hero-card {
        margin: -30px 10px 0;
        padding: 20px 18px;
        border-radius: 16px;
    }

    .ed-title { font-size: 20px; }

    .ed-body {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ed-sidebar { position: static; }

    .ed-detail-grid { grid-template-columns: 1fr; }

    .ed-section { padding: 20px 16px; }
}