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

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    /* Tema Gelap Slate Navy khas Gortim */
    background: radial-gradient(
        circle at top right,
        #1c2834 0%,
        #131d27 50%,
        #0b1219 100%
    );
    color: #e6ebf0;
    min-height: 100vh;
}


/* =========================================
   AUTH WRAPPER
========================================= */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}


/* =========================================
   AUTH CONTAINER
========================================= */

.auth-container {
    width: 100%;
    max-width: 480px;
}


/* =========================================
   BRAND
========================================= */

.brand {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #c6a355;
    background: linear-gradient(135deg, rgba(198, 163, 85, 0.15), rgba(59, 95, 120, 0.2));
    color: #e3c478;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(198, 163, 85, 0.2);
    border-radius: 8px;
}

.brand h1 {
    font-size: 24px;
    letter-spacing: 6px;
    font-weight: 700;
    color: #ffffff;
}

.brand p {
    margin-top: 8px;
    color: #9cb0c1;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* =========================================
   AUTH CARD
========================================= */

.auth-card {
    background: rgba(23, 33, 44, 0.95);
    border: 1px solid rgba(198, 163, 85, 0.3);
    padding: 38px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 8px;
}


/* =========================================
   HEADER
========================================= */

.auth-header {
    margin-bottom: 30px;
}

.eyebrow {
    display: block;
    color: #c6a355;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.auth-header h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.auth-header p {
    color: #9cb0c1;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================
   FORM
========================================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #b3c2d1;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    background: #0f1720;
    border: 1px solid #2d3e50;
    color: #ffffff;
    outline: none;
    font-size: 14px;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #5d7185;
}

.form-group input:focus {
    border-color: #c6a355;
    box-shadow: 0 0 0 3px rgba(198, 163, 85, 0.15);
}


/* =========================================
   BUTTON
========================================= */

.btn-primary {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    border: 1px solid #8d7337;
    background: linear-gradient(135deg, #c6a355 0%, #9a7a33 100%);
    color: #0b1219;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(198, 163, 85, 0.25);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e3c478 0%, #c6a355 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(227, 196, 120, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}


/* =========================================
   ALERT
========================================= */

.alert {
    padding: 13px 15px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 4px;
}

.alert-error {
    background: rgba(180, 50, 50, 0.18);
    border: 1px solid rgba(220, 80, 80, 0.35);
    color: #ff9e9e;
}

.alert-success {
    background: rgba(50, 160, 100, 0.18);
    border: 1px solid rgba(80, 190, 130, 0.35);
    color: #a3e8bc;
}


/* =========================================
   FOOTER
========================================= */

.auth-footer {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(198, 163, 85, 0.15);
    text-align: center;
    font-size: 13px;
    color: #7b8e9f;
}

.auth-footer a {
    margin-left: 5px;
    color: #e3c478;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 520px) {
    .auth-card {
        padding: 28px 22px;
    }

    .auth-header h2 {
        font-size: 26px;
    }

    .brand h1 {
        font-size: 19px;
        letter-spacing: 5px;
    }
}


/* =========================================
   MEMBER AREA
========================================= */

.member-wrapper {
    min-height: 100vh;
    display: flex;
    background: radial-gradient(
        circle at top right,
        #1c2834 0%,
        #131d27 50%,
        #0b1219 100%
    );
}


/* =========================================
   SIDEBAR
========================================= */

.member-sidebar {
    width: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 31, 0.98);
    border-right: 1px solid rgba(198, 163, 85, 0.2);
    padding: 28px 20px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 25px;
    border-bottom: 1px solid rgba(198, 163, 85, 0.2);
}

.sidebar-brand .brand-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(198, 163, 85, 0.3));
}

.sidebar-brand strong {
    display: block;
    font-size: 14px;
    letter-spacing: 3px;
    color: #ffffff;
}

.sidebar-brand span {
    display: block;
    margin-top: 4px;
    color: #7b8e9f;
    font-size: 8px;
    letter-spacing: 1.5px;
}


/* =========================================
   NAVIGATION
========================================= */

.member-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 28px;
}

.member-nav a {
    display: block;
    padding: 13px 14px;
    color: #8c9fae;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s ease;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
}

.member-nav a:hover {
    color: #ffffff;
    background: rgba(59, 95, 120, 0.2);
}

.member-nav a.active {
    color: #e3c478;
    background: rgba(198, 163, 85, 0.12);
    border-left-color: #c6a355;
    font-weight: 600;
}


/* =========================================
   SIDEBAR BOTTOM
========================================= */

.sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(198, 163, 85, 0.15);
}

.logout-link {
    display: block;
    padding: 12px 14px;
    color: #8c9fae;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s ease;
}

.logout-link:hover {
    color: #e98b8b;
}


/* =========================================
   MEMBER MAIN
========================================= */

.member-main {
    flex: 1;
    min-width: 0;
}


/* =========================================
   TOPBAR
========================================= */

.member-topbar {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(198, 163, 85, 0.2);
    background: rgba(19, 29, 39, 0.6);
}

.topbar-label {
    color: #c6a355;
    font-size: 9px;
    letter-spacing: 3px;
    font-weight: bold;
}

.member-topbar h1 {
    margin-top: 5px;
    font-size: 25px;
    font-weight: 600;
    color: #ffffff;
}


/* =========================================
   MEMBER PROFILE
========================================= */

.member-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c6a355;
    background: rgba(198, 163, 85, 0.1);
    color: #e3c478;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
}

.profile-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.profile-info span {
    display: block;
    margin-top: 3px;
    color: #7b8e9f;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================================
   DASHBOARD CONTENT
========================================= */

.dashboard-content {
    padding: 40px;
}


/* =========================================
   WELCOME CARD
========================================= */

.welcome-card {
    padding: 35px;
    margin-bottom: 25px;
    background: linear-gradient(
        135deg,
        rgba(198, 163, 85, 0.15),
        rgba(35, 50, 66, 0.5)
    );
    border: 1px solid rgba(198, 163, 85, 0.3);
    border-radius: 8px;
}

.welcome-card h2 {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
}

.welcome-card p {
    margin-top: 8px;
    color: #9cb0c1;
    font-size: 13px;
}


/* =========================================
   DASHBOARD GRID
========================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.dashboard-card {
    padding: 25px;
    background: rgba(23, 33, 44, 0.85);
    border: 1px solid rgba(198, 163, 85, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dashboard-card span {
    display: block;
    color: #7b8e9f;
    font-size: 9px;
    letter-spacing: 2px;
}

.dashboard-card strong {
    display: block;
    margin-top: 12px;
    color: #e3c478;
    font-size: 22px;
    font-weight: 600;
}


/* =========================================
   INFORMATION CARD
========================================= */

.information-card {
    padding: 30px;
    background: rgba(23, 33, 44, 0.85);
    border: 1px solid rgba(198, 163, 85, 0.2);
    border-radius: 8px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin-top: 5px;
    font-size: 21px;
    font-weight: 600;
    color: #ffffff;
}

.information-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(198, 163, 85, 0.1);
}

.information-row:last-child {
    border-bottom: none;
}

.information-row span {
    color: #7b8e9f;
    font-size: 12px;
}

.information-row strong {
    color: #e6ebf0;
    font-size: 12px;
    font-weight: 500;
}


/* =========================================
   PROFILE PAGE
========================================= */

.profile-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
}

.profile-page-header h2 {
    margin-top: 5px;
    font-size: 27px;
    font-weight: 600;
}

.profile-page-header p {
    margin-top: 8px;
    color: #8c9fae;
    font-size: 13px;
}

.profile-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px;
    border: 1px solid #c6a355;
    color: #e3c478;
    text-decoration: none;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: 0.2s ease;
}

.profile-edit-button:hover {
    background: #c6a355;
    color: #0b1219;
}


/* =========================================
   PROFILE LAYOUT
========================================= */

.profile-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(400px, 1.5fr);
    gap: 20px;
    margin-bottom: 20px;
}

.profile-main-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px;
    background: radial-gradient(
        circle at top,
        rgba(198, 163, 85, 0.15),
        rgba(23, 33, 44, 0.95) 70%
    );
    border: 1px solid rgba(198, 163, 85, 0.25);
    border-radius: 8px;
}

.profile-large-avatar {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid #c6a355;
    background: rgba(198, 163, 85, 0.1);
    color: #e3c478;
    font-size: 32px;
    font-weight: 600;
    border-radius: 50%;
}

.profile-card-name h2 {
    font-size: 22px;
    font-weight: 600;
}

.profile-card-name p {
    margin-top: 7px;
    color: #8c9fae;
    font-size: 12px;
}

.profile-role-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 12px;
    border: 1px solid rgba(198, 163, 85, 0.4);
    background: rgba(198, 163, 85, 0.1);
    color: #e3c478;
    font-size: 8px;
    letter-spacing: 2px;
    border-radius: 20px;
}


/* =========================================
   STATUS CARD & INFORMATION
========================================= */

.profile-status-card,
.profile-information-card {
    padding: 30px;
    background: rgba(23, 33, 44, 0.85);
    border: 1px solid rgba(198, 163, 85, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-status-row {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(198, 163, 85, 0.1);
}

.profile-status-row:last-child {
    border-bottom: none;
}

.profile-status-row span {
    color: #7b8e9f;
    font-size: 11px;
}

.profile-status-row strong {
    color: #e6ebf0;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #9bd9b5 !important;
}

.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #7bc494;
}

.profile-information-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 30px;
}

.profile-field {
    min-height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid rgba(198, 163, 85, 0.1);
}

.profile-field span {
    color: #7b8e9f;
    font-size: 8px;
    letter-spacing: 2px;
}

.profile-field strong {
    margin-top: 8px;
    color: #e6ebf0;
    font-size: 13px;
    font-weight: 500;
}


/* =========================================
   SECURITY CARD
========================================= */

.profile-security-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(
        135deg,
        rgba(198, 163, 85, 0.12),
        rgba(23, 33, 44, 0.85)
    );
    border: 1px solid rgba(198, 163, 85, 0.25);
    border-radius: 8px;
}

.security-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #3b5f78;
    color: #b3c2d1;
    text-decoration: none;
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: 0.2s ease;
}

.security-button:hover {
    border-color: #c6a355;
    color: #e3c478;
}


/* =========================================
   TRANSACTION & CHECKOUT BADGES
========================================= */

.transaction-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 75px;
    padding: 6px 10px;
    border: 1px solid;
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 1.2px;
    border-radius: 4px;
}

.transaction-status-pending {
    color: #e3c478;
    border-color: rgba(198, 163, 85, 0.4);
    background: rgba(198, 163, 85, 0.1);
}

.transaction-status-paid {
    color: #91c8a8;
    border-color: rgba(145, 200, 168, 0.4);
    background: rgba(145, 200, 168, 0.1);
}

.transaction-status-cancelled,
.transaction-status-expired {
    color: #c47f7f;
    border-color: rgba(196, 127, 127, 0.4);
    background: rgba(196, 127, 127, 0.1);
}


/* =========================================
   RESPONSIVE LAYOUTS
========================================= */

@media (max-width: 800px) {
    .member-sidebar {
        width: 200px;
    }

    .member-topbar {
        padding: 20px 25px;
    }

    .dashboard-content {
        padding: 25px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .member-wrapper {
        display: block;
    }

    .member-sidebar {
        width: 100%;
        min-height: auto;
        padding: 15px;
    }

    .member-nav,
    .sidebar-bottom {
        display: none;
    }

    .member-topbar,
    .dashboard-content {
        padding: 20px;
    }

    .profile-info {
        display: none;
    }

    .profile-information-grid {
        grid-template-columns: 1fr;
    }
}
/* GORTIM MEMBER SIDEBAR FINAL FALLBACK */

/* GORTIM MEMBER SIDEBAR FINAL OVERRIDE */
@media (min-width:601px){
  .member-sidebar .sidebar-bottom{margin-top:8px !important;padding-top:10px !important;border-top:1px solid rgba(198,163,85,.15) !important;}
  .member-sidebar .member-nav{margin-bottom:0 !important;}
  .member-menu-toggle,.member-sidebar-overlay{display:none !important;}
}
@media (max-width:600px){
  .member-wrapper{display:block !important;min-height:100vh !important;}
  .member-sidebar{position:fixed !important;top:0 !important;left:0 !important;z-index:9999 !important;width:285px !important;max-width:86vw !important;height:100vh !important;min-height:100vh !important;padding:22px 16px !important;overflow-y:auto !important;transform:translateX(-110%) !important;transition:transform .25s ease !important;box-shadow:18px 0 45px rgba(0,0,0,.5) !important;}
  .member-sidebar.is-open{transform:translateX(0) !important;}
  .member-sidebar .member-nav{display:flex !important;flex-direction:column !important;gap:3px !important;width:100% !important;margin-top:22px !important;}
  .member-sidebar .member-nav a{display:flex !important;align-items:center !important;width:100% !important;min-height:44px !important;margin:0 !important;padding:12px 13px !important;}
  .member-sidebar .sidebar-bottom{display:block !important;margin-top:7px !important;padding-top:7px !important;border-top:1px solid rgba(198,163,85,.15) !important;}
  .member-sidebar .sidebar-bottom .logout-link{display:flex !important;width:100% !important;min-height:44px !important;align-items:center !important;padding:12px 13px !important;}
  .member-main{width:100% !important;min-width:0 !important;}
  .member-topbar{position:relative !important;padding-right:72px !important;}
  .member-menu-toggle{position:absolute !important;right:18px !important;top:50% !important;transform:translateY(-50%) !important;z-index:10000 !important;width:42px !important;height:42px !important;display:flex !important;align-items:center !important;justify-content:center !important;border:1px solid rgba(198,163,85,.7) !important;border-radius:10px !important;background:#0b1219 !important;color:#e3c478 !important;font-size:21px !important;line-height:1 !important;cursor:pointer !important;}
  .member-sidebar-overlay{position:fixed !important;inset:0 !important;z-index:9998 !important;display:block !important;background:rgba(0,0,0,.58) !important;opacity:0 !important;visibility:hidden !important;pointer-events:none !important;transition:.25s ease !important;}
  .member-sidebar-overlay.is-visible{opacity:1 !important;visibility:visible !important;pointer-events:auto !important;}
  body.member-menu-open{overflow:hidden !important;}
}
