:root {
    --yp-orange: #ff5b1a;
    --yp-orange-dark: #e94d10;
    --yp-green: #5aa314;
    --yp-navy: #102234;
    --yp-muted: #6b7c8f;
    --yp-border: #d9e1e8;
    --yp-bg: #f4f7fa;
    --yp-sidebar-bg: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--yp-bg);
    color: var(--yp-navy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

a {
    text-decoration: none;
}

.yp-app-shell {
    display: flex;
    min-height: 100vh;
}

.yp-sidebar {
    width: 220px;
    background: var(--yp-sidebar-bg);
    border-right: 1px solid var(--yp-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
}

.yp-sidebar-logo {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--yp-border);
}

.yp-sidebar-logo img,
.yp-mobile-logo img {
    max-height: 48px;
    width: auto;
}

.yp-sidebar-balance {
    padding: 12px 16px;
    border-bottom: 1px solid var(--yp-border);
    font-size: 12px;
}

.yp-balance-green {
    color: var(--yp-green);
    font-weight: 700;
}

.yp-balance-orange {
    color: var(--yp-orange);
    font-weight: 700;
}

.yp-side-nav {
    flex: 1;
    overflow-y: auto;
}

.yp-side-nav a,
.yp-side-disabled {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid var(--yp-border);
    color: #48606f;
    font-weight: 700;
    font-size: 14px;
}

.yp-side-nav a:hover {
    background: #fff3ec;
    color: var(--yp-orange);
}

.yp-side-disabled {
    color: #6f8797;
    background: #fbfcfd;
    cursor: not-allowed;
}

.yp-sidebar-bottom {
    border-top: 1px solid var(--yp-border);
    padding: 12px 16px;
}

.yp-sidebar-bottom a {
    color: #48606f;
    font-weight: 700;
}

.yp-main {
    flex: 1;
    margin-left: 220px;
    min-width: 0;
    background:
        linear-gradient(rgba(244, 247, 250, 0.82), rgba(244, 247, 250, 0.86)),
        url("/static/img/yesplay-games-bg.f8a9b7829e0b.jpeg");
    background-size: 82%;
    background-position: 90px 70px;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.yp-topbar {
    height: 58px;
    background: #ffffff;
    border-bottom: 1px solid var(--yp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.yp-mobile-logo {
    display: none;
}

.yp-top-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #536b7b;
}

.yp-top-nav a,
.yp-top-nav span {
    color: #536b7b;
    white-space: nowrap;
}

.yp-top-nav a:hover {
    color: var(--yp-orange);
}

.yp-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.yp-top-link {
    color: #334a5c;
    font-weight: 700;
    font-size: 13px;
}

.yp-top-link:hover {
    color: var(--yp-orange);
}

.yp-btn-orange {
    background: var(--yp-orange);
    border: 1px solid var(--yp-orange);
    color: #ffffff;
    font-weight: 800;
    border-radius: 4px;
}

.yp-btn-orange:hover {
    background: var(--yp-orange-dark);
    color: #ffffff;
}

.yp-btn-green {
    background: var(--yp-green);
    border: 1px solid var(--yp-green);
    color: #ffffff;
    font-weight: 800;
    border-radius: 4px;
}

.yp-btn-green:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.yp-dr-banner {
    background: linear-gradient(90deg, #ff5418, #ff8a00);
    color: #ffffff;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.yp-dr-banner strong {
    display: block;
    font-size: 15px;
}

.yp-dr-banner span {
    display: block;
    font-weight: 700;
    margin-top: 2px;
}

.yp-content {
    max-width: 85%;
    margin: 0 auto;
    padding: 18px 24px 40px;
}

.yp-card {
    background: #ffffff;
    border: 1px solid var(--yp-border);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(16,34,52,0.08);
}

.yp-title {
    color: var(--yp-navy);
    font-weight: 900;
}

.text-muted-yp {
    color: var(--yp-muted);
}

.yp-orange {
    color: var(--yp-orange);
}

.yp-status-item {
    background: #f8fafc;
    border: 1px solid var(--yp-border);
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 700;
    color: var(--yp-navy);
}

.yp-interest-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--yp-border);
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 700;
    color: var(--yp-navy);
    cursor: pointer;
}

.yp-interest-option:hover {
    border-color: var(--yp-orange);
    box-shadow: 0 4px 12px rgba(255, 91, 26, 0.12);
}

.yp-interest-option input {
    width: 18px;
    height: 18px;
}

.yp-bottom-notice {
    background: var(--yp-navy);
    color: #ffffff;
    text-align: center;
    padding: 13px 16px;
    font-weight: 800;
    border-top: 3px solid var(--yp-orange);
}

.yp-footer {
    text-align: center;
    padding: 24px 16px 36px;
    color: #718395;
    font-size: 12px;
}

.yp-footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-weight: 700;
}

.table {
    color: var(--yp-navy);
}

.badge {
    font-weight: 700;
}

/* Make old btn-yp references still work */
.btn-yp {
    background: var(--yp-orange);
    border: 1px solid var(--yp-orange);
    color: #ffffff;
    font-weight: 800;
}

.btn-yp:hover {
    background: var(--yp-orange-dark);
    color: #ffffff;
}

/* Mobile */
@media (max-width: 992px) {
    .yp-sidebar {
        display: none;
    }

    .yp-main {
        margin-left: 0;
    }

    .yp-topbar {
        height: auto;
        min-height: 58px;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }

    .yp-mobile-logo {
        display: block;
    }

    .yp-top-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 4px;
    }

    .yp-top-actions {
        margin-left: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .yp-content {
        padding: 20px 12px 32px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 13px;
    }

    .yp-top-actions {
        width: 100%;
        justify-content: stretch;
    }

    .yp-top-actions .btn,
    .yp-top-actions a {
        flex: 1;
        text-align: center;
    }

    .yp-dr-banner strong {
        font-size: 13px;
    }

    .yp-dr-banner span {
        font-size: 12px;
    }
}

/* MSP UI Version 2 - YesPlay-style Home */

.yp-home-hero {
    min-height: 310px;
    border-radius: 10px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(16, 34, 52, 0.90), rgba(16, 34, 52, 0.45)),
        url("/static/img/yesplay-games-bg.f8a9b7829e0b.jpeg");
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 18px rgba(16, 34, 52, 0.18);
}

.yp-hero-overlay {
    min-height: 310px;
    display: flex;
    align-items: center;
    padding: 32px;
}

.yp-hero-content {
    max-width: 620px;
    color: #ffffff;
}

.yp-service-pill {
    display: inline-block;
    background: var(--yp-orange);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.yp-hero-content h1 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 14px;
}

.yp-hero-content p {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 22px;
}

.yp-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.yp-btn-light {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: var(--yp-navy);
    font-weight: 900;
}

.yp-btn-light:hover {
    background: #f2f5f8;
    color: var(--yp-navy);
}

.yp-service-notice-card {
    background: #ffffff;
    border-left: 6px solid var(--yp-orange);
    border-radius: 8px;
    margin-top: 18px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(16, 34, 52, 0.08);
}

.yp-service-notice-card h3 {
    font-weight: 900;
    margin-bottom: 8px;
}

.yp-service-notice-card p {
    margin-bottom: 0;
    color: var(--yp-muted);
    font-weight: 600;
}

.yp-mini-status {
    background: #f8fafc;
    border: 1px solid var(--yp-border);
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
}

.yp-mini-status div + div {
    margin-top: 8px;
}

.yp-section-header {
    margin-top: 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.yp-section-header h4 {
    margin: 0;
    font-weight: 900;
}

.yp-section-header span {
    color: var(--yp-muted);
    font-weight: 700;
    font-size: 13px;
}

.yp-home-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.yp-home-tile {
    background: #ffffff;
    border: 1px solid var(--yp-border);
    border-radius: 8px;
    padding: 18px;
    color: var(--yp-navy);
    box-shadow: 0 4px 12px rgba(16, 34, 52, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.yp-home-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(16, 34, 52, 0.14);
    color: var(--yp-navy);
}

.yp-home-tile-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.yp-home-tile h5 {
    font-weight: 900;
    margin-bottom: 6px;
}

.yp-home-tile p {
    color: var(--yp-muted);
    margin-bottom: 0;
    font-weight: 600;
    font-size: 13px;
}

.yp-game-style-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.yp-disabled-product-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.96)),
        radial-gradient(circle at top, rgba(255,91,26,0.25), transparent 55%);
    border: 1px solid var(--yp-border);
    border-radius: 8px;
    padding: 18px 12px;
    min-height: 130px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(16, 34, 52, 0.08);
    opacity: 0.82;
}

.yp-product-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.yp-disabled-product-card h5 {
    font-weight: 900;
    margin-bottom: 6px;
}

.yp-disabled-product-card span {
    color: var(--yp-muted);
    font-size: 12px;
    font-weight: 700;
}

.yp-home-info-panel {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid var(--yp-border);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(16, 34, 52, 0.08);
}

.yp-home-info-panel h4 {
    font-weight: 900;
    margin-bottom: 16px;
}

.yp-info-check {
    background: #f8fafc;
    border: 1px solid var(--yp-border);
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 800;
}

/* Responsive home */
@media (max-width: 992px) {
    .yp-home-tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yp-game-style-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .yp-hero-content h1 {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .yp-home-hero,
    .yp-hero-overlay {
        min-height: 280px;
    }

    .yp-hero-overlay {
        padding: 22px;
    }

    .yp-hero-content h1 {
        font-size: 25px;
    }

    .yp-hero-content p {
        font-size: 15px;
    }

    .yp-hero-actions .btn {
        width: 100%;
    }

    .yp-home-tile-grid,
    .yp-game-style-grid {
        grid-template-columns: 1fr;
    }

    .yp-section-header {
        display: block;
    }

    .yp-section-header span {
        display: block;
        margin-top: 4px;
    }
}

.yp-balance-card {
    background: linear-gradient(135deg,#ffffff,#f8fbfd);
    border: 1px solid #d9e1e8;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

.yp-balance-label {
    color: #7a8a99;
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.yp-balance-value {
    font-size: 32px;
    font-weight: 800;
    color: #5aa314;
}
.yp-home-carousel {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(16, 34, 52, 0.16);
    background: #ffffff;
}

.yp-home-carousel img {
    width: 100%;
    max-height: 470px;
    object-fit: cover;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.yp-sidebar-customer-name {
    font-weight: 900;
    color: var(--yp-navy);
    font-size: 15px;
    margin-bottom: 8px;
}

.yp-dr-flash {
    font-weight: 900;
    animation: ypDrFlash 5s infinite;
}

@keyframes ypDrFlash {
    0% {
        color: #d90000;
    }

    33% {
        color: #0047ff;
    }

    66% {
        color: #000000;
    }

    100% {
        color: #d90000;
    }
}
