/* RewardBot / EventBot Owner Dashboard */

.rb-ed-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 22px;
    align-items: stretch;
    background: linear-gradient(135deg, #081426 0%, #14325f 100%);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    padding: clamp(26px, 4vw, 52px);
    color: #ffffff;
    margin-bottom: 24px;
}

.rb-ed-hero h1 {
    color: #ffffff;
    font-size: clamp(42px, 5vw, 86px);
    line-height: .95;
    text-transform: uppercase;
    margin: 10px 0 18px;
}

.rb-ed-hero p {
    color: rgba(255,255,255,.88);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.42;
}

.rb-ed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.rb-ed-hero-card {
    background: #ffffff;
    color: #061226;
    border-radius: 26px;
    padding: 26px;
    align-self: center;
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.rb-ed-hero-card span {
    display: block;
    color: #536783;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 8px;
}

.rb-ed-hero-card strong {
    display: block;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.05;
    margin-bottom: 12px;
}

.rb-ed-hero-card p {
    color: #334155;
    font-size: 16px;
}

.rb-ed-selector {
    margin-bottom: 22px;
}

.rb-ed-selector label {
    display: block;
    color: #536783;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.rb-ed-selector-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.rb-ed-selector-row select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    padding: 12px 13px;
    background: #ffffff;
    color: #061226;
}

.rb-ed-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.rb-ed-stat span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.rb-ed-stat strong {
    display: block;
    color: #061226;
    font-size: clamp(24px, 2.4vw, 40px);
    line-height: 1;
}

.rb-ed-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 24px;
}

.rb-ed-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.rb-ed-card-head h2 {
    margin: 8px 0 0;
}

.rb-ed-event-list {
    display: grid;
    gap: 14px;
}

.rb-ed-event-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 20px;
    padding: 12px;
}

.rb-ed-event-img {
    min-height: 120px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: #0f172a;
}

.rb-ed-event-body h3 {
    margin: 0 0 7px;
    color: #061226;
    font-size: 22px;
    line-height: 1.1;
}

.rb-ed-event-body p {
    margin: 0 0 10px;
    color: #475569;
}

.rb-ed-mini-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.rb-ed-mini-metrics span {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    padding: 6px 9px;
    color: #14325f;
    font-size: 12px;
    font-weight: 1000;
}

.rb-ed-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.rb-ed-row-actions a {
    color: #14325f;
    font-weight: 1000;
    text-decoration: none;
}

.rb-ed-side {
    display: grid;
    gap: 18px;
}

.rb-ed-feed {
    display: grid;
    gap: 10px;
}

.rb-ed-feed-item {
    border-left: 4px solid #ffd000;
    background: #f8fafc;
    border-radius: 14px;
    padding: 11px 12px;
}

.rb-ed-feed-item strong,
.rb-ed-feed-item span,
.rb-ed-feed-item small {
    display: block;
}

.rb-ed-feed-item strong {
    color: #061226;
    margin-bottom: 3px;
}

.rb-ed-feed-item span {
    color: #334155;
    line-height: 1.35;
}

.rb-ed-feed-item small {
    color: #64748b;
    margin-top: 4px;
    font-weight: 800;
}

.rb-ed-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .rb-ed-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rb-ed-grid,
    .rb-ed-hero,
    .rb-ed-next-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .rb-ed-stats-grid,
    .rb-ed-selector-row,
    .rb-ed-event-row {
        grid-template-columns: 1fr;
    }
}
