/* ==========================================================================
   KOFITOTO OFFICIAL PORTAL THEME - VIBRANT ROYAL BLUE TO ELECTRIC CYAN GRADIENT
   Engine Layout: Destina88 Engine Architecture (Desktop 2-Column + Mobile Fluid)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Muli:wght@300;400;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Royal Blue to Electric Cyan Gradient Colors */
    --royal-blue-deep: #001a66;
    --royal-blue: #003bb3;
    --electric-blue: #0066ff;
    --cerulean-blue: #0099ff;
    --electric-cyan: #00e5ff;
    --bright-aqua: #26f0f1;
    
    --gold-accent: #ffd000;
    --gold-gradient: linear-gradient(135deg, #ffe033 0%, #ff9900 100%);
    --cyan-gradient: linear-gradient(135deg, #00f0ff 0%, #0066ff 100%);
    
    --text-primary: #ffffff;
    --text-secondary: #d4e4ff;
    --text-muted: #8cb3eb;
    --text-cyan: #00f0ff;
    --text-gold: #ffda33;
    
    --border-color: rgba(0, 229, 255, 0.4);
    --border-glow: rgba(0, 229, 255, 0.7);
    
    --status-online: #00ff88;
    --status-gangguan: #ffe600;
    --status-offline: #ff2255;
}

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

html, body {
    width: 100%;
    max-width: 100vw;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    position: relative;
}

body {
    background: linear-gradient(135deg, #00194d 0%, #003399 20%, #004db3 40%, #006ce6 65%, #00a2ff 85%, #00e5ff 100%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-primary);
    font-family: 'Muli', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 1.65;
    min-height: 100vh;
}

a {
    color: var(--text-cyan);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   1. TOP NAVBAR (DESTINA88 BRIGHT CYAN TO ROYAL BLUE GRADIENT)
   ========================================================================== */
.navbar-top {
    background: linear-gradient(90deg, #00e5ff 0%, #00b4d8 28%, #0077b6 60%, #003d99 100%);
    border-bottom: 3px solid #ffffff;
    padding: 10px 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.6);
    position: relative;
    z-index: 100;
    width: 100%;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.navbar-brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 46px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.navbar-login-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-badge {
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    width: 32px;
    background: #001d52;
    border-right: 1px solid var(--border-color);
    border-radius: 3px 0 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--electric-cyan);
    font-size: 12px;
}

.form-control-login {
    background: rgba(0, 15, 45, 0.9);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 7px 10px 7px 38px;
    font-size: 12px;
    border-radius: 4px;
    width: 130px;
    outline: none;
    transition: all 0.2s;
}

.form-control-login:focus {
    border-color: var(--electric-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.btn-nav-login {
    background: var(--gold-gradient);
    color: #000000 !important;
    font-weight: 800;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 4px;
    border: 1px solid #ffe066;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(255, 187, 0, 0.5);
    transition: all 0.2s;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-nav-login:hover {
    filter: brightness(1.15);
    box-shadow: 0 3px 15px rgba(255, 204, 0, 0.8);
}

.btn-nav-reg {
    background: linear-gradient(135deg, #00d2ff 0%, #005ce6 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 4px;
    border: 1px solid #70e6ff;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 210, 255, 0.5);
    transition: all 0.2s;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-nav-reg:hover {
    filter: brightness(1.15);
    box-shadow: 0 3px 15px rgba(0, 229, 255, 0.8);
}

/* ==========================================================================
   2. RUNNING NEWS TICKER
   ========================================================================== */
.running-news-bar {
    background: linear-gradient(90deg, #001238 0%, #002266 50%, #001238 100%);
    border-bottom: 2px solid var(--border-color);
    padding: 7px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    width: 100%;
    overflow: hidden;
}

.news-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-label {
    background: var(--gold-gradient);
    color: #000000;
    font-weight: 900;
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 3px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
    flex-shrink: 0;
}

.news-scroll-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.news-text-inner {
    display: inline-block;
    color: #d8ecff;
    font-size: 12px;
    font-weight: 600;
    animation: tickerAnim 25s linear infinite;
}

@keyframes tickerAnim {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   3. MAIN PORTAL WRAPPER (2-COLUMN GRID)
   ========================================================================== */
.portal-wrapper {
    padding: 18px 0 24px 0;
    width: 100%;
}

.portal-grid-destina {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    width: 100%;
}

.sidebar-destina {
    width: 240px;
    flex-shrink: 0;
}

.main-column-destina {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* SIDEBAR NAVIGATION MENU */
.sidebar-nav-menu {
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
    background: rgba(0, 20, 60, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 50, 150, 0.3);
}

.sidebar-nav-menu li {
    border-bottom: 1px solid rgba(0, 153, 255, 0.2);
}

.sidebar-nav-menu li:last-child {
    border-bottom: none;
}

.sidebar-nav-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.sidebar-nav-menu li a:hover,
.sidebar-nav-menu li a.active {
    background: linear-gradient(90deg, #0077ff 0%, #00a2ff 50%, #00e5ff 100%);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-icon-bullet {
    color: var(--electric-cyan);
    font-size: 11px;
    transition: transform 0.2s ease;
}

.sidebar-nav-menu li a:hover .nav-icon-bullet {
    color: #ffffff;
    transform: translateX(4px);
}

/* BIG DAFTAR SEKARANG BUTTON */
.sidebar-btn-daftar {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #ffd000 0%, #ff9000 100%);
    color: #000000 !important;
    text-align: center;
    font-size: 14.5px;
    font-weight: 900;
    padding: 13px 10px;
    border-radius: 6px;
    border: 1px solid #ffe066;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.6), 0 0 20px rgba(255, 204, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.sidebar-btn-daftar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.9);
    filter: brightness(1.1);
}

/* SIDEBAR BOXES (HASIL TERAKHIR & BERITA) */
.sidebar-box {
    background: rgba(0, 20, 60, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.sidebar-box-header {
    background: linear-gradient(90deg, #0044cc 0%, #0077ff 50%, #00b4d8 100%);
    padding: 9px 14px;
    font-weight: 900;
    font-size: 12.5px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--electric-cyan);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-box-title {
    font-weight: 900;
    font-size: 12.5px;
    color: #ffffff;
}

.sidebar-box-body {
    padding: 10px;
}

.mini-result-item {
    background: rgba(0, 10, 35, 0.75);
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.mini-pool-name {
    font-weight: 700;
    font-size: 11.5px;
    color: #ffffff;
}

.mini-pool-num {
    font-weight: 900;
    font-size: 13px;
    color: var(--gold-accent);
    background: #001438;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255, 204, 0, 0.4);
}

/* ==========================================================================
   4. RIGHT MAIN CONTENT (BANNER, SEARCH, CARDS, TABLE)
   ========================================================================== */
.banner-slider-box {
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 229, 255, 0.3);
    margin-bottom: 14px;
    width: 100%;
}

.banner-slider-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.search-filter-bar {
    position: relative;
    margin-bottom: 14px;
    width: 100%;
}

.search-filter-input {
    width: 100%;
    background: rgba(0, 18, 55, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 10px 48px 10px 20px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 153, 255, 0.25);
    transition: all 0.2s ease;
}

.search-filter-input:focus {
    border-color: var(--electric-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.search-filter-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 38px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.5);
}

.quick-categories-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
}

.cat-btn-item {
    background: linear-gradient(135deg, #002266 0%, #0044cc 50%, #002266 100%);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #ffffff;
    text-align: center;
    padding: 9px 10px;
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
    display: block;
}

.cat-btn-item:hover,
.cat-btn-item.active {
    background: linear-gradient(135deg, #0055ff 0%, #00a2ff 50%, #00e5ff 100%);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
    border-color: #ffffff;
}

/* DESTINA88 CARDS */
.destina-card {
    background: rgba(0, 22, 66, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 40, 120, 0.3);
    width: 100%;
}

.destina-card-header {
    background: linear-gradient(90deg, #003399 0%, #0059cc 50%, #0099ff 100%);
    padding: 10px 16px;
    border-bottom: 2px solid var(--electric-cyan);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.destina-card-title {
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.destina-card-body {
    padding: 18px;
    color: #e0edff;
}

.destina-card-body h1 {
    font-size: 19px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0, 153, 255, 0.3);
    padding-bottom: 9px;
}

.destina-card-body h2 {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--gold-accent);
    margin: 18px 0 10px 0;
}

.destina-card-body p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 13px;
    color: #d8ebff;
}

.destina-card-body ul, .destina-card-body ol {
    margin-left: 20px;
    margin-bottom: 14px;
}

.destina-card-body li {
    margin-bottom: 6px;
    color: #d8ebff;
}

/* DESTINA88 LIVE RESULTS TABLE */
.destina-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 12.5px;
}

.destina-table th {
    background: linear-gradient(180deg, #002266 0%, #00143d 100%);
    color: var(--electric-cyan);
    padding: 9px 10px;
    font-weight: 800;
    text-align: center;
    border: 1px solid rgba(0, 153, 255, 0.3);
    text-transform: uppercase;
    font-size: 11.5px;
    white-space: nowrap;
}

.destina-table td {
    padding: 8px 10px;
    text-align: center;
    border: 1px solid rgba(0, 153, 255, 0.2);
    color: #d4e4ff;
}

.destina-table tr:nth-child(even) td {
    background: rgba(0, 14, 40, 0.5);
}

.destina-table tr:hover td {
    background: rgba(0, 77, 204, 0.85);
    color: #ffffff;
}

/* FAQ Box */
.faq-box-wrap {
    margin-top: 15px;
    width: 100%;
}

.faq-single-item {
    background: rgba(0, 18, 55, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 13px 16px;
    margin-bottom: 10px;
}

.faq-single-item h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--electric-cyan);
    margin-bottom: 6px;
}

.faq-single-item p {
    font-size: 12.8px;
    color: #d4e4ff;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   5. JADWAL BANK SECTION
   ========================================================================== */
.bank-schedule-section {
    background: linear-gradient(180deg, #001338 0%, #00225c 50%, #001338 100%);
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    padding: 16px 0;
    box-shadow: inset 0 0 20px rgba(0, 50, 150, 0.4);
    width: 100%;
}

.bank-grid-wrap {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 15px;
    align-items: center;
}

.bank-section-title {
    font-size: 14.5px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    border-left: 4px solid var(--electric-cyan);
    padding-left: 10px;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}

.bank-cards-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.bank-item-box {
    background: linear-gradient(135deg, #002060 0%, #001238 100%);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bank-name-label {
    font-weight: 800;
    font-size: 11.5px;
    color: #ffffff;
}

.bank-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.bank-dot.online {
    background: var(--status-online);
    box-shadow: 0 0 8px var(--status-online);
}

.bank-dot.gangguan {
    background: var(--status-gangguan);
    box-shadow: 0 0 8px var(--status-gangguan);
}

.bank-dot.offline {
    background: var(--status-offline);
    box-shadow: 0 0 8px var(--status-offline);
}

.bank-legend-center {
    text-align: center;
    font-size: 11.5px;
    color: #b0cbe8;
    margin-top: 10px;
    font-weight: 600;
}

/* ==========================================================================
   6. FOOTER SECTION
   ========================================================================== */
.footer-destina {
    background: linear-gradient(180deg, #001030 0%, #00081a 100%);
    border-top: 3px solid var(--electric-cyan);
    padding: 24px 0 16px 0;
    color: var(--text-secondary);
    width: 100%;
}

.footer-seo-block {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 18px auto;
    font-size: 12.5px;
    line-height: 1.7;
    color: #c0d7f5;
}

.footer-seo-block h5 {
    font-size: 14.5px;
    color: var(--gold-accent);
    margin-bottom: 8px;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
}

.footer-nav-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 153, 255, 0.3);
}

.footer-nav-row li a {
    color: #c8dcfa;
    font-size: 12px;
    font-weight: 600;
}

.footer-nav-row li a:hover {
    color: var(--electric-cyan);
}

.footer-copyright {
    text-align: center;
    font-size: 11.5px;
    color: #7a9ec7;
}

/* ==========================================================================
   7. CLEAN DYNAMIC POPUP MODAL (LOGIN & DAFTAR ONLY)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 30, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: linear-gradient(135deg, #001f66 0%, #002d80 40%, #001238 100%);
    border: 2px solid var(--electric-cyan);
    border-radius: 12px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 229, 255, 0.45);
    position: relative;
    transform: scale(0.85) translateY(20px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-header-banner {
    background: linear-gradient(90deg, #00e5ff 0%, #0088ff 50%, #0044cc 100%);
    padding: 16px 20px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close-btn:hover {
    background: #ff2255;
    border-color: #ffffff;
    transform: rotate(90deg);
}

.modal-logo-img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.modal-body-content {
    padding: 22px 20px;
}

.modal-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.modal-btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    width: 100%;
    text-align: center;
}

.modal-btn-login {
    background: linear-gradient(135deg, #00f0ff 0%, #0077ff 100%);
    color: #ffffff !important;
    border: 1px solid #00f0ff;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
}

.modal-btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.7);
}

.modal-btn-daftar {
    background: linear-gradient(135deg, #ffe033 0%, #ff8800 100%);
    color: #001a4d !important;
    border: 1px solid #ffd000;
    box-shadow: 0 4px 15px rgba(255, 136, 0, 0.4);
}

.modal-btn-daftar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 208, 0, 0.7);
}

/* ==========================================================================
   8. MOBILE RESPONSIVE RULES (CLEAN & NATIVE)
   ========================================================================== */
@media (max-width: 991px) {
    .container {
        padding: 0 12px;
    }
    
    .navbar-top {
        padding: 8px 0;
    }
    
    .navbar-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .brand-logo-img {
        height: 38px;
    }
    
    .input-with-icon {
        display: none !important;
    }
    
    .navbar-login-form {
        margin: 0;
        gap: 6px;
    }
    
    .btn-nav-login, .btn-nav-reg {
        padding: 6px 14px;
        font-size: 11.5px;
    }

    .portal-grid-destina {
        flex-direction: column;
        gap: 14px;
    }
    
    .sidebar-destina {
        width: 100%;
        max-width: 100%;
    }
    
    .main-column-destina {
        width: 100%;
        max-width: 100%;
    }
    
    .quick-categories-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .bank-grid-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .bank-section-title {
        border-left: none;
        border-bottom: 2px solid var(--electric-cyan);
        padding-bottom: 6px;
        padding-left: 0;
        display: inline-block;
    }
    
    .bank-cards-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .container {
        padding: 0 10px;
    }
    
    .brand-logo-img {
        height: 34px;
    }
    
    .quick-categories-bar {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .cat-btn-item {
        padding: 7px 6px;
        font-size: 11.5px;
    }
    
    .destina-card-header {
        padding: 8px 12px;
    }
    
    .destina-card-title {
        font-size: 12.5px;
    }
    
    .destina-card-body {
        padding: 12px 10px;
    }
    
    .destina-card-body h1 {
        font-size: 15.5px;
    }
    
    .destina-card-body h2 {
        font-size: 13.5px;
    }
    
    .bank-cards-list {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .bank-item-box {
        padding: 6px 8px;
    }
    
    .bank-name-label {
        font-size: 10.5px;
    }
    
    .footer-nav-row {
        gap: 10px;
    }
    
    .modal-dialog {
        max-width: 90%;
    }
}

/* ==========================================================================
   POPUP MODAL (LOGIN & DAFTAR DIRECT)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 10, 30, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(135deg, #001f5c 0%, #000c26 100%);
    border: 2px solid #00e5ff;
    border-radius: 16px;
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.6), 0 20px 50px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    padding: 28px 22px 22px;
    text-align: center;
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

.modal-overlay.active .modal-dialog {
    transform: scale(1) !important;
}

.modal-header-banner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
    padding: 5px 0 0;
}

.modal-logo-img {
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.7));
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.5);
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    font-family: inherit;
}

.modal-close-btn:hover {
    background: #ff2255;
    border-color: #ff2255;
    color: #ffffff;
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(255, 34, 85, 0.8);
}

.modal-body-content {
    width: 100%;
}

.modal-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
    width: 100%;
}

.modal-btn-action {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    text-transform: uppercase;
    border-radius: 8px;
    letter-spacing: 1px;
    transition: all 0.25s ease;
    text-decoration: none !important;
    box-sizing: border-box;
    cursor: pointer;
}

.modal-btn-login {
    background: linear-gradient(135deg, #00e5ff 0%, #0066ff 100%);
    color: #ffffff !important;
    border: 1px solid #00f0ff;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.modal-btn-login:hover {
    background: linear-gradient(135deg, #26f0f1 0%, #0099ff 100%);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.9);
    transform: translateY(-2px);
}

.modal-btn-daftar {
    background: linear-gradient(135deg, #ffe033 0%, #ff9900 100%);
    color: #001a4d !important;
    border: 1px solid #ffe033;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.modal-btn-daftar:hover {
    background: linear-gradient(135deg, #fff066 0%, #ffaa00 100%);
    box-shadow: 0 0 25px rgba(255, 208, 0, 0.9);
    transform: translateY(-2px);
}
