:root {
    --premium-primary: #052f8b;
    --premium-primary-2: #1248b3;
    --premium-primary-dark: #031c54;
    --premium-accent: #15c5cf;
    --premium-text: #10243f;
    --premium-muted: #64748b;
    --premium-surface: #ffffff;
    --premium-surface-soft: #f5f9fc;
    --premium-border: rgba(5, 47, 139, 0.1);
    --premium-shadow: 0 24px 70px rgba(16, 36, 63, 0.08);
    --premium-shadow-soft: 0 14px 36px rgba(16, 36, 63, 0.06);
    --premium-radius-xl: 30px;
    --premium-radius-lg: 24px;
    --premium-radius-md: 18px;
    --premium-gradient: linear-gradient(
        135deg,
        #052f8b 0%,
        #1248b3 45%,
        #15c5cf 100%
    );
}

body.premium-ui-page {
    background:
        radial-gradient(
            circle at top right,
            rgba(21, 197, 207, 0.08),
            transparent 24%
        ),
        radial-gradient(
            circle at left 12%,
            rgba(5, 47, 139, 0.05),
            transparent 22%
        ),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: var(--premium-text);
}

body.premium-ui-page .btn {
    border-radius: 999px;
    font-weight: 700;
}

body.premium-ui-page .btn-primary {
    background: var(--premium-gradient);
    border: 0;
    box-shadow: 0 16px 34px rgba(5, 47, 139, 0.18);
}

body.premium-ui-page .btn-primary:hover,
body.premium-ui-page .btn-primary:focus {
    background: linear-gradient(
        135deg,
        var(--premium-primary-dark),
        var(--premium-primary-2)
    );
    box-shadow: 0 18px 38px rgba(5, 47, 139, 0.22);
}

body.premium-ui-page .btn-outline-secondary,
body.premium-ui-page .btn-outline-dark,
body.premium-ui-page .btn-outline-primary {
    border-radius: 999px;
}

body.premium-ui-page .card,
body.premium-ui-page .alert,
body.premium-ui-page .table,
body.premium-ui-page .form-control,
body.premium-ui-page .form-select,
body.premium-ui-page .input-group,
body.premium-ui-page .pagination {
    border-radius: 22px;
}

body.premium-ui-page .card {
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow-soft);
    overflow: hidden;
}

body.premium-ui-page .card-header {
    border-bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 47, 139, 0.96),
        rgba(18, 72, 179, 0.96)
    );
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

body.premium-ui-page .card-body {
    color: var(--premium-text);
}

body.premium-ui-page .form-control,
body.premium-ui-page .form-select {
    min-height: 48px;
    border: 1px solid rgba(5, 47, 139, 0.16);
    box-shadow: none;
}

body.premium-ui-page .form-control:focus,
body.premium-ui-page .form-select:focus {
    border-color: rgba(21, 197, 207, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(21, 197, 207, 0.14);
}

body.premium-ui-page .table {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow-soft);
}

body.premium-ui-page .table thead th {
    background: #f4f8ff;
    color: var(--premium-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(5, 47, 139, 0.08);
}

body.premium-ui-page .table tbody tr:hover {
    background: rgba(5, 47, 139, 0.02);
}

body.premium-ui-page .table > :not(caption) > * > * {
    padding: 0.9rem 1rem;
}

body.premium-ui-page .pagination .page-link {
    border-radius: 999px !important;
    border: 1px solid rgba(5, 47, 139, 0.14);
    color: var(--premium-primary);
    box-shadow: none;
}

body.premium-ui-page .pagination .page-item.active .page-link {
    background: var(--premium-gradient);
    border-color: transparent;
    color: #fff;
}

.premium-hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 2.25rem;
}

.premium-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.18),
            transparent 24%
        ),
        radial-gradient(
            circle at left 14%,
            rgba(255, 255, 255, 0.08),
            transparent 22%
        ),
        var(--premium-gradient);
    z-index: 0;
}

.premium-hero .container,
.premium-shell,
.premium-page-shell {
    position: relative;
    z-index: 1;
}

.premium-hero-content {
    color: #fff;
}

.premium-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.premium-hero-title {
    margin: 1rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.premium-hero-copy {
    max-width: 64ch;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

.premium-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.premium-hero-grid {
    display: grid;
    gap: 1.25rem;
    align-items: end;
}

.premium-hero-panel {
    padding: 1.1rem 1.15rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 38px rgba(3, 28, 84, 0.14);
    backdrop-filter: blur(14px);
    color: #fff;
}

.premium-hero-panel-title {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.premium-hero-panel-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
    font-size: 0.94rem;
}

.premium-hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.premium-hero-stat {
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.premium-hero-stat span {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.premium-hero-stat strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.premium-section-block {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.premium-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.premium-data-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 88px;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    border: 1px solid transparent;
}

.premium-data-pill-positive {
    background: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.14);
    color: #198754;
}

.premium-data-pill-negative {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.14);
    color: #dc3545;
}

.premium-data-pill-info {
    background: rgba(5, 47, 139, 0.08);
    border-color: rgba(5, 47, 139, 0.12);
    color: var(--premium-primary);
}

.premium-data-pill-muted {
    background: rgba(100, 116, 139, 0.08);
    border-color: rgba(100, 116, 139, 0.12);
    color: var(--premium-muted);
}

.premium-table-cell-stack {
    display: grid;
    gap: 0.15rem;
}

.premium-table-title {
    font-weight: 700;
    color: var(--premium-text);
}

.premium-table-subtitle {
    color: var(--premium-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.premium-shell {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--premium-border);
    border-radius: var(--premium-radius-xl);
    box-shadow: var(--premium-shadow);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.premium-shell-header {
    padding: 1.25rem 1.4rem;
    background: linear-gradient(
        135deg,
        rgba(5, 47, 139, 0.98),
        rgba(18, 72, 179, 0.98)
    );
    color: #fff;
}

.premium-shell-header h1,
.premium-shell-header h2,
.premium-shell-header h3,
.premium-shell-header h4,
.premium-shell-header h5 {
    color: #fff;
    margin-bottom: 0;
}

.premium-shell-body {
    padding: 1.4rem;
}

.premium-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
}

.premium-meta-card {
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(
        180deg,
        rgba(5, 47, 139, 0.05),
        rgba(21, 197, 207, 0.08)
    );
    border: 1px solid rgba(5, 47, 139, 0.08);
}

.premium-meta-card span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--premium-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.premium-meta-card strong {
    display: block;
    color: var(--premium-text);
    font-size: 1.05rem;
    font-weight: 800;
}

.premium-empty-state {
    padding: 2.2rem 1.4rem;
    text-align: center;
    border-radius: 24px;
    border: 1px solid rgba(5, 47, 139, 0.08);
    background: var(--premium-surface-soft);
}

.premium-empty-state .empty-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 20px;
    color: var(--premium-primary);
    background: linear-gradient(
        135deg,
        rgba(5, 47, 139, 0.08),
        rgba(21, 197, 207, 0.14)
    );
    font-size: 1.5rem;
}

.premium-form-note,
.premium-inline-note {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(5, 47, 139, 0.08);
    background: linear-gradient(
        180deg,
        rgba(5, 47, 139, 0.04),
        rgba(21, 197, 207, 0.07)
    );
    color: var(--premium-muted);
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.44rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(5, 47, 139, 0.06),
        rgba(21, 197, 207, 0.1)
    );
    border: 1px solid rgba(5, 47, 139, 0.08);
    color: var(--premium-primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.premium-sidebar-layout {
    display: grid;
    gap: 1.5rem;
}

.premium-sidebar-layout .sticky-sidebar .card {
    box-shadow: var(--premium-shadow-soft);
}

.premium-sidebar-layout .sticky-sidebar .card-header {
    background: linear-gradient(
        135deg,
        rgba(5, 47, 139, 0.98),
        rgba(18, 72, 179, 0.98)
    );
}

.premium-sidebar-layout .sticky-sidebar .card-footer {
    border-top: 1px solid rgba(5, 47, 139, 0.08);
}

body.premium-rewards-page .premium-shell,
body.premium-notifications-page .premium-shell,
body.premium-suggestions-page .premium-shell,
body.premium-password-page .premium-shell,
body.premium-gmrt-page .premium-shell {
    box-shadow: var(--premium-shadow);
}

body.premium-rewards-page .table tbody tr.inactive-row,
body.premium-rewards-page .table tbody tr.inactive-row td {
    background: rgba(255, 197, 197, 0.42) !important;
}

body.premium-rewards-page .premium-hero {
    padding: 3.75rem 0 2.5rem;
}

body.premium-rewards-page .table tfoot td {
    background: rgba(5, 47, 139, 0.03);
}

@media (min-width: 992px) {
    .premium-hero-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.92fr);
    }
}

@media (max-width: 767.98px) {
    .premium-hero-panel {
        padding: 1rem;
        border-radius: 20px;
    }

    .premium-hero-stat-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .premium-section-block {
        padding-top: 1.1rem;
        padding-bottom: 2rem;
    }

    .premium-inline-actions {
        width: 100%;
    }

    .premium-inline-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .premium-data-pill {
        min-width: 78px;
    }
}

body.premium-password-page .password-input-wrapper {
    position: relative;
}

body.premium-password-page .password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--premium-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

body.premium-password-page .password-toggle-btn:hover {
    background: rgba(5, 47, 139, 0.06);
}

body.premium-password-page .password-input-wrapper .form-control {
    padding-right: 52px;
}

body.premium-gmrt-page .gmrt-hero {
    position: relative;
    overflow: hidden;
    padding: 3.6rem 0 2.5rem;
    color: #fff;
    background: var(--premium-gradient);
}

body.premium-gmrt-page .gmrt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.18),
            transparent 24%
        ),
        radial-gradient(
            circle at left 12%,
            rgba(255, 255, 255, 0.08),
            transparent 22%
        );
    pointer-events: none;
}

body.premium-gmrt-page .gmrt-hero .container {
    position: relative;
    z-index: 1;
}

body.premium-gmrt-page .gmrt-hero h1,
body.premium-gmrt-page .gmrt-hero h2,
body.premium-gmrt-page .gmrt-hero h3 {
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.05em;
}

body.premium-gmrt-page .gmrt-content,
body.premium-gmrt-page .container.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 2.5rem !important;
}

body.premium-gmrt-page .group-sidebar,
body.premium-gmrt-page .video-player-section,
body.premium-gmrt-page .gmrt-main-content,
body.premium-gmrt-page .card {
    border-radius: var(--premium-radius-lg);
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow-soft);
    overflow: hidden;
    background: #fff;
}

body.premium-gmrt-page .table-responsive {
    border-radius: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.premium-gmrt-page .group-sidebar-header,
body.premium-gmrt-page .video-header,
body.premium-gmrt-page .card-header {
    padding: 1rem 1.2rem;
    background: linear-gradient(
        135deg,
        rgba(5, 47, 139, 0.98),
        rgba(18, 72, 179, 0.98)
    );
    color: #fff;
    font-weight: 800;
}

body.premium-gmrt-page .group-item,
body.premium-gmrt-page .btn,
body.premium-gmrt-page .page-link {
    border-radius: 999px;
}

body.premium-gmrt-page .group-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 0;
    background: transparent;
    color: var(--premium-text);
}

body.premium-gmrt-page .group-item.active {
    background: linear-gradient(
        135deg,
        rgba(5, 47, 139, 0.08),
        rgba(21, 197, 207, 0.12)
    );
    color: var(--premium-primary);
    font-weight: 800;
}

body.premium-gmrt-page .video-player-section {
    padding: 1.1rem;
    margin-bottom: 1.5rem;
}

body.premium-gmrt-page .video-player-section h3,
body.premium-gmrt-page .video-description h4 {
    color: var(--premium-primary-dark);
}

body.premium-gmrt-page .video-container video,
body.premium-gmrt-page .gmrt-video-fill,
body.premium-gmrt-page .gmrt-media-preview {
    border-radius: 18px;
    border: 1px solid rgba(5, 47, 139, 0.12);
    box-shadow: 0 12px 28px rgba(5, 47, 139, 0.08);
}

body.premium-gmrt-page .gmrt-guidelines-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(5, 47, 139, 0.1);
    box-shadow: var(--premium-shadow-soft);
}

body.premium-gmrt-page .gmrt-guidelines-table th {
    background: #f4f8ff;
    color: var(--premium-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.premium-gmrt-page .gmrt-guidelines-table th,
body.premium-gmrt-page .gmrt-guidelines-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(5, 47, 139, 0.08);
}

body.premium-gmrt-page .status-message,
body.premium-gmrt-page .alert {
    border-radius: 18px;
}

body.premium-gmrt-page .video-controls .btn,
body.premium-gmrt-page .btn-outline-secondary,
body.premium-gmrt-page .btn-outline-dark,
body.premium-gmrt-page .btn-outline-primary {
    border: 1px solid rgba(255, 255, 255, 0.22);
}

body.premium-gmrt-page .btn-outline-secondary,
body.premium-gmrt-page .btn-outline-dark,
body.premium-gmrt-page .btn-outline-primary {
    border-color: rgba(5, 47, 139, 0.16);
}

body.premium-gmrt-page .pagination .page-link {
    background: #fff;
}

.premium-footer-space {
    min-height: 1px;
}

@media (max-width: 991.98px) {
    .premium-hero {
        padding-top: 2.4rem;
        padding-bottom: 1.9rem;
    }

    .premium-hero-title {
        font-size: clamp(1.9rem, 6vw, 2.8rem);
    }

    .premium-shell-body,
    .premium-shell-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.premium-gmrt-page .gmrt-content,
    body.premium-gmrt-page .container.py-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.premium-gmrt-page
        .container.py-4
        > .d-flex.justify-content-between.align-items-center.mb-3,
    body.premium-gmrt-page
        .container.py-4
        > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-2.mb-3,
    body.premium-gmrt-page
        .container.py-4
        > .d-flex.justify-content-between.align-items-start.mb-3,
    body.premium-gmrt-page
        .container.py-4
        > .d-flex.flex-wrap.justify-content-between.align-items-start.gap-2.mb-2 {
        flex-direction: column;
        align-items: stretch !important;
    }

    body.premium-gmrt-page
        .container.py-4
        > .d-flex.justify-content-between.align-items-center.mb-3
        .d-flex.gap-2,
    body.premium-gmrt-page
        .container.py-4
        > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-2.mb-3
        .d-flex.gap-2,
    body.premium-gmrt-page
        .container.py-4
        > .d-flex.justify-content-between.align-items-start.mb-3
        .d-flex.gap-2,
    body.premium-gmrt-page
        .container.py-4
        > .d-flex.flex-wrap.justify-content-between.align-items-start.gap-2.mb-2
        .d-flex.gap-2 {
        width: 100%;
        flex-wrap: wrap;
    }

    body.premium-gmrt-page
        .container.py-4
        > .d-flex.justify-content-between.align-items-center.mb-3
        .btn,
    body.premium-gmrt-page
        .container.py-4
        > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-2.mb-3
        .btn,
    body.premium-gmrt-page
        .container.py-4
        > .d-flex.justify-content-between.align-items-start.mb-3
        .btn,
    body.premium-gmrt-page
        .container.py-4
        > .d-flex.flex-wrap.justify-content-between.align-items-start.gap-2.mb-2
        .btn {
        width: 100%;
        justify-content: center;
    }

    body.premium-gmrt-page .video-player-section {
        padding: 0.95rem;
    }

    body.premium-gmrt-page .video-header {
        gap: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    body.premium-gmrt-page .video-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    body.premium-gmrt-page .video-controls .btn {
        flex: 1 1 0;
        min-width: 0;
    }

    body.premium-gmrt-page .group-sidebar-header,
    body.premium-gmrt-page .card-header {
        padding: 0.9rem 1rem;
    }

    body.premium-gmrt-page .group-item {
        padding: 0.75rem 0.9rem;
    }

    body.premium-gmrt-page .table > :not(caption) > * > * {
        padding: 0.72rem 0.8rem;
        font-size: 0.94rem;
    }

    body.premium-gmrt-page .gmrt-guidelines-table th,
    body.premium-gmrt-page .gmrt-guidelines-table td {
        padding: 0.7rem 0.8rem;
        font-size: 0.93rem;
    }

    body.premium-gmrt-page .premium-meta-grid {
        grid-template-columns: 1fr;
    }

    body.premium-gmrt-page .card .btn,
    body.premium-gmrt-page .card .btn-outline-secondary,
    body.premium-gmrt-page .card .btn-outline-dark,
    body.premium-gmrt-page .card .btn-outline-primary {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .premium-hero {
        padding-top: 2rem;
        padding-bottom: 1.6rem;
    }

    .premium-hero-copy {
        font-size: 0.98rem;
    }

    .premium-shell,
    .premium-hero .container {
        border-radius: 0;
    }

    .premium-shell-body,
    .premium-shell-header {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    body.premium-gmrt-page .gmrt-content,
    body.premium-gmrt-page .container.py-4 {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    body.premium-gmrt-page .video-player-section,
    body.premium-gmrt-page .group-sidebar,
    body.premium-gmrt-page .gmrt-main-content,
    body.premium-gmrt-page .card {
        border-radius: 20px;
    }

    body.premium-gmrt-page .table > :not(caption) > * > * {
        padding: 0.65rem 0.7rem;
        font-size: 0.9rem;
    }

    body.premium-gmrt-page .btn {
        min-height: 44px;
    }

    body.premium-gmrt-page .pagination {
        gap: 0.35rem;
    }

    body.premium-gmrt-page .pagination .page-link {
        padding: 0.45rem 0.75rem;
    }
}
