/* ============================================================
   Streams & Partner System — Dream Template Premium Theme
   Styled to match MarsMu dark fantasy MMORPG aesthetic
   ============================================================ */

.str-page {
    padding: 34px 0 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.str-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-2, rgba(255,255,255,0.08));
}

/* ---- Hero Banner Header (All Stream Views) ---- */
.str-hero-banner {
    position: relative;
    background: radial-gradient(120% 120% at 0% 0%, rgba(212, 175, 55, 0.16) 0%, rgba(16, 26, 46, 0.9) 45%, rgba(10, 16, 30, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    padding: 26px 30px;
    margin-bottom: 26px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    overflow: hidden;
}

.str-hero-banner::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.str-hero-banner__left {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
    min-width: 290px;
    position: relative;
    z-index: 2;
}

.str-hero-banner__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(160, 112, 32, 0.12));
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #f5d87a;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}

.str-hero-banner__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f5d87a;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.str-hero-banner__title {
    font-family: var(--dsp, 'Oswald', sans-serif);
    font-size: 26px;
    color: #fff;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.2;
}

.str-hero-banner__desc {
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
    max-width: 640px;
}

.str-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.str-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 11px;
    border-radius: 8px;
}

.str-hero-chip i {
    color: #d4af37;
}

.str-hero-banner__nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 2;
}

.str-hero-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 9px;
    text-decoration: none;
    background: rgba(14, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    transition: all 0.2s;
}

.str-hero-nav-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    color: #f5d87a;
    transform: translateY(-1px);
}

.str-hero-nav-btn--active {
    background: linear-gradient(135deg, #d4af37, #a07020);
    border-color: #f5d87a;
    color: #1a1000;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.str-hero-nav-btn--active:hover {
    background: linear-gradient(135deg, #f5d87a, #b88628);
    color: #0d0800;
}

.str-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.str-title {
    font-family: var(--dsp, 'Oswald', sans-serif);
    font-size: 28px;
    color: var(--head, #fff);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.str-title i {
    color: #d4af37;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.str-sub {
    color: var(--muted, #94a3b8);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    max-width: 680px;
}

.str-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---- Cards ---- */
.str-card {
    background: linear-gradient(180deg, rgba(16, 26, 46, 0.85) 0%, rgba(10, 17, 31, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.str-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.str-card__body {
    padding: 24px 26px;
}

.str-card-title {
    font-family: var(--dsp, 'Oswald', sans-serif);
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #f5d87a;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.str-card-title i {
    color: #d4af37;
}

/* ---- Stats Grid (Dashboard) ---- */
.str-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.str-stat-box {
    background: rgba(14, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.str-stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.str-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.str-stat-icon--gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(160, 112, 32, 0.15));
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #f5d87a;
}

.str-stat-icon--green {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
}

.str-stat-icon--blue {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(2, 132, 199, 0.1));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
}

.str-stat-icon--purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(126, 34, 206, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.str-stat-content {
    min-width: 0;
    flex: 1;
}

.str-stat-label {
    font-size: 11.5px;
    color: var(--muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.str-stat-value {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    font-family: var(--dsp, 'Oswald', sans-serif);
    letter-spacing: 0.4px;
}

.str-stat-sub {
    font-size: 11px;
    color: #d4af37;
    margin-top: 1px;
}

/* ---- Partner Link Box ---- */
.str-linkbox {
    background: rgba(10, 18, 33, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.str-linkbox__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 220px;
}

.str-linkbox__title {
    font-size: 13px;
    color: #f5d87a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
}

.str-linkbox__sub {
    font-size: 12px;
    color: var(--muted, #94a3b8);
}

.str-linkbox__action {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 520px;
    min-width: 260px;
}

.str-linkbox__input {
    width: 100%;
    background: rgba(5, 10, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 9px 12px;
    color: #7dd3fc;
    font-family: monospace;
    font-size: 13px;
}

/* ---- Platform Badges ---- */
.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.platform-pill--twitch { border-color: rgba(169, 112, 255, 0.4); color: #c084fc; background: rgba(169, 112, 255, 0.1); }
.platform-pill--youtube { border-color: rgba(255, 77, 77, 0.4); color: #f87171; background: rgba(255, 77, 77, 0.1); }
.platform-pill--tiktok { border-color: rgba(231, 236, 245, 0.3); color: #e2e8f0; background: rgba(255, 255, 255, 0.08); }
.platform-pill--kick { border-color: rgba(83, 252, 24, 0.4); color: #4ade80; background: rgba(83, 252, 24, 0.1); }

/* ---- Form controls ---- */
.str-page .field {
    margin-bottom: 16px;
}

.str-page .field label {
    display: block;
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 6px;
}

.str-page .inp {
    width: 100%;
    background: rgba(8, 14, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    padding: 11px 14px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.str-page .inp:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(12, 20, 36, 0.95);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    color: #fff;
}

.str-page .form-control:focus,
.str-page .form-select:focus {
    outline: none;
    border-color: #d4af37 !important;
    background: rgba(12, 20, 36, 0.95) !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
}

/* ---- Tables ---- */
.rk-tablewrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 14, 26, 0.5);
}

.rk-table {
    width: 100%;
    border-collapse: collapse;
}

.rk-table th {
    background: rgba(16, 26, 46, 0.9);
    padding: 12px 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #d4af37;
    font-family: var(--dsp, 'Oswald', sans-serif);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    text-align: left;
}

.rk-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13.5px;
    color: #e2e8f0;
}

.rk-table tr:last-child td {
    border-bottom: none;
}

.rk-table tr:hover td {
    background: rgba(212, 175, 55, 0.04);
}

/* ---- Live Stream Cards ---- */
.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.stream-card {
    background: linear-gradient(180deg, rgba(16, 26, 46, 0.9) 0%, rgba(10, 16, 30, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.stream-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 18px rgba(212, 175, 55, 0.2);
}

.stream-embed-wrap,
.stream-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    min-height: 220px;
    background: #040810;
    cursor: pointer;
    overflow: hidden;
}

.stream-embed-wrap iframe,
.stream-embed-wrap .embed-thumb,
.stream-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-embed-wrap .embed-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.2s;
    z-index: 2;
}

.stream-embed-wrap:hover .embed-play {
    background: rgba(0, 0, 0, 0.6);
}

.stream-embed-wrap .embed-play i {
    font-size: 54px;
    color: #f5d87a;
    filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.7));
    transition: transform 0.2s;
}

.stream-embed-wrap:hover .embed-play i {
    transform: scale(1.1);
}

.badge-live {
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

.badge-platform {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.stream-info {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.stream-username {
    font-family: var(--dsp, 'Oswald', sans-serif);
    font-weight: 600;
    font-size: 17px;
    color: #fff;
    letter-spacing: 0.4px;
}

.stream-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.stream-link-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ---- Alerts & Notices ---- */
.dr-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.dr-alert--error {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #fca5a5;
}

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

.dr-alert--warning {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #fde68a;
}

.dr-alert--info {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #bae6fd;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 9px;
    padding: 10px 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    border: 1px solid transparent;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37, #a07020);
    color: #1a1000;
    border: 1px solid #f5d87a;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #f5d87a, #b88628);
    color: #0d0800;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    color: #f5d87a;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 15px;
}

/* ---- Stream Logs progress bars ---- */
.str-log-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
}

.str-log-progress {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ---- Registration hero ---- */
.str-hero {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.14) 0%, rgba(10, 18, 33, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.str-hero-icon {
    font-size: 48px;
    color: #d4af37;
    filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.5));
    flex-shrink: 0;
}

.str-hero-perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.str-hero-perk {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #cbd5e1;
}

.str-hero-perk i {
    color: #6ee7b7;
}

/* Responsive */
@media(max-width: 768px) {
    .str-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stream-grid {
        grid-template-columns: 1fr;
    }
    .str-hero {
        flex-direction: column;
        text-align: center;
    }
}

@media(max-width: 480px) {
    .str-stats-grid {
        grid-template-columns: 1fr;
    }
    .str-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
