* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ==========================================
   GLOBAL
========================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    background: #f8fafc;
}


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

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 20px;
    height: 70px;

    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;
}

.logo-and-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-logo img {
    height: 70px;
    max-width: 100%;
}

.profile-menu {
    margin-right: 0;
    cursor: pointer;
    padding: 10px;
}

.dropdown {
    display: none;

    position: absolute;
    top: 60px;
    right: 20px;

    background: white;
    padding: 15px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

    border-radius: 8px;
    min-width: 200px;
}

.dropdown.show {
    display: block;
}

.dropdown p {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 14px;
}

.dropdown span {
    font-weight: bold;
}

.dropdown a {
    display: inline-block;

    margin-top: 10px;

    color: #ef4444;
    text-decoration: none;
    font-weight: bold;
}


/* ==========================================
   MAIN DASHBOARD
========================================== */

.container {
    margin-top: 70px;
}


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

.left-panel {
    position: fixed;

    top: 70px;
    left: 0;

    width: 280px;
    max-width: 280px;

    height: calc(100vh - 70px);

    background: #1e293b;
    color: white;

    padding: 20px;

    display: flex;
    flex-direction: column;

    overflow-y: auto;
    overflow-x: hidden !important;

    overscroll-behavior-x: none;

    z-index: 999;
}


/* ==========================================
   RIGHT PANEL
========================================== */

.right-panel {
    position: fixed;

    top: 70px;
    left: 280px;
    right: 0;
    bottom: 0;

    padding: 40px;

    overflow-y: auto;
    overflow-x: hidden;

    background: inherit;
}

.right-panel a {
    display: block;

    margin: 15px 0;
    padding: 12px;

    background: #0ea5e9;
    color: white;

    text-decoration: none;

    border-radius: 6px;
}


/* ==========================================
   3D FLIP CARD OFFERS
========================================== */

.offers-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 25px;
}

.flip-card {
    background-color: transparent;

    height: 220px;

    perspective: 1000px;

    cursor: pointer;
}

.flip-card-inner {
    position: relative;

    width: 100%;
    height: 100%;

    text-align: center;

    transition:
        transform 0.6s cubic-bezier(
            0.4,
            0.2,
            0.2,
            1
        );

    transform-style: preserve-3d;

    border-radius: 16px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1);
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;

    width: 100%;
    height: 100%;

    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    border-radius: 16px;

    overflow: hidden;
}

.flip-card-front {
    background-color: #fff;
}

.flip-card-front img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}

.flip-card-back {
    background:
        linear-gradient(
            135deg,
            #1e293b,
            #0f172a
        );

    color: white;

    transform: rotateY(180deg);

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    padding: 20px;

    border: 2px solid #0ea5e9;
}

.flip-card-back h3 {
    font-size: 18px;

    color: #f8fafc;

    margin-bottom: 8px;
}

.price-tag {
    background:
        rgba(14, 165, 233, 0.2);

    color: #38bdf8;

    font-size: 22px;
    font-weight: 800;

    padding: 4px 16px;

    border-radius: 20px;

    border:
        1px solid
        rgba(56, 189, 248, 0.4);

    margin-bottom: 10px;
}

.flip-card-back p {
    font-size: 13px;

    color: #cbd5e1;

    line-height: 1.4;

    margin-bottom: 8px;
}

.flip-card-back small {
    font-size: 11px;

    color: #94a3b8;

    font-style: italic;
}


/* ==========================================
   CONTACT US SIDEBAR
========================================== */

.left-panel ul {
    list-style: none;
    padding: 0;
}

.left-panel ul li {
    margin: 25px 0;
}

.left-panel ul li a {
    font-size: 18px;

    color: white;

    text-decoration: none;

    display: flex;
    align-items: center;

    transition: color 0.2s;
}

.left-panel ul li a i {
    margin-right: 15px;

    font-size: 22px;

    width: 25px;

    flex-shrink: 0;
}

.left-panel ul li a:hover {
    color: #38bdf8;
}


/* ==========================================
   HEADINGS
========================================== */

.left-panel h2 {
    font-size: 24px;
    text-align: center;

    border-bottom:
        3px solid #38bdf8;

    display: block;
    width: 100%;

    padding-bottom: 5px;

    margin-bottom: 15px;
}

.right-panel h2 {
    font-size: 30px;

    color: #1e293b;

    margin-bottom: 25px;
}


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

.menu-toggle-btn {
    display: none;
}

.overlay-shadow {
    display: none;
}

@media (max-width: 768px) {

    .menu-toggle-btn {
        display: block;

        font-size: 1.6rem;

        background: none;
        border: none;

        color: #1e293b;

        cursor: pointer;
    }

    .left-panel {
        position: fixed;

        top: 70px;
        left: -280px;

        width: 280px;
        max-width: 280px;

        height: calc(100vh - 70px);

        padding: 20px;

        overflow-x: hidden !important;
        overflow-y: auto;

        transition: left 0.3s ease;

        box-shadow:
            4px 0 15px
            rgba(0, 0, 0, 0.5);

        z-index: 999;
    }

    .left-panel.open {
        left: 0;
    }

    .right-panel {
        position: relative;

        top: 0;
        left: 0;
        right: auto;
        bottom: auto;

        width: 100%;
        max-width: 100%;

        padding: 20px;

        overflow: visible;
    }

    .overlay-shadow.show {
        display: block;

        position: fixed;

        top: 0;
        left: 0;

        width: 100vw;
        height: 100vh;

        background-color:
            rgba(0, 0, 0, 0.6);

        z-index: 998;
    }
}


/* ==========================================
   HEADER RIGHT SIDE
========================================== */

.header-right-side {
    display: flex;

    align-items: center;

    gap: 25px;
}


/* ==========================================
   BOOK NOW BUTTON
========================================== */

.book-now-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 28px;

    background: #ffffff;

    color: #ff4d2d;

    text-decoration: none;

    border:
        2px solid #ff4d2d;

    border-radius: 14px;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: all 0.3s ease;

    box-shadow:
        0 2px 10px
        rgba(0, 0, 0, 0.08);
}

.book-now-btn i {
    font-size: 18px;
}

.book-now-btn:hover {
    background: #ff4d2d;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(255, 77, 45, 0.25);
}


/* ==========================================
   DARK MODE BOOK BUTTON
========================================== */

body.dark-mode .book-now-btn {
    background: #1e293b;

    color: #ff6b4a;

    border:
        2px solid #ff6b4a;
}

body.dark-mode .book-now-btn:hover {
    background: #ff6b4a;

    color: #ffffff;
}


/* ==========================================
   DARK MODE SWITCH
========================================== */

.theme-switch-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 30px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;

    background-color: #cbd5e1;

    border-radius: 30px;

    transition: background-color 0.3s ease;
}

/* SUN - OFF / LIGHT MODE */
.slider:before {
    position: absolute;
    content: "\f185";

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    width: 24px;
    height: 24px;

    left: 3px;
    top: 3px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #ffffff;
    color: #facc15;

    border-radius: 50%;

    font-size: 14px;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

/* DARK MODE ON */
.switch input:checked + .slider {
    background-color: #334155;
}

/* MOON - ON / DARK MODE */
.switch input:checked + .slider:before {
    content: "\f186";

    transform: translateX(28px);

    color: #64748b;
}


/* ==========================================
   DARK MODE
========================================== */

body.dark-mode {
    background-color: #0f172a;
}

body.dark-mode .top-bar {
    background-color: #1e293b;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.5);
}

body.dark-mode .right-panel h2 {
    color: #f8fafc;
}

body.dark-mode .flip-card-inner {
    box-shadow:
        0 4px 20px
        rgba(14, 165, 233, 0.15);
}

body.dark-mode .flip-card-front {
    background-color: #1e293b;
}

body.dark-mode .menu-toggle-btn {
    color: #f8fafc;
}

body.dark-mode .dropdown {
    background-color: #1e293b;

    border:
        1px solid #334155;
}

body.dark-mode .dropdown p {
    color: #f8fafc;
}

body.dark-mode .theme-switch-container {
    color: #38bdf8;
}


/* ==========================================
   MOBILE SIDEBAR PROFILE
========================================== */

.sidebar-profile,
.sidebar-darkmode {
    display: none;
}

@media screen and (max-width: 768px) {

    .header-right-side .theme-switch-container,
    .header-right-side .profile-menu {
        display: none;
    }

    .sidebar-profile,
    .sidebar-darkmode {
        display: flex;
    }

    .sidebar-bottom {
        margin-top: auto;

        display: flex;

        flex-direction: column;

        gap: 10px;

        width: 100%;
        max-width: 100%;

        margin-left: 0;

        padding: 0;
    }

    .sidebar-profile h3 {
        margin-bottom: 10px;
    }

    .sidebar-profile p {
        margin: 8px 0;
    }

    .sidebar-profile a {
        display: inline-block;

        margin-top: 10px;

        text-decoration: none;

        color: inherit;
    }

    .sidebar-darkmode {
        display: flex;

        justify-content: space-between;

        align-items: center;

        width: 100%;
        max-width: 100%;

        padding: 12px;

        background: #29445d;

        border-radius: 16px;
    }
}


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

.left-panel {
    display: flex;

    flex-direction: column;

    overflow-x: hidden !important;
}


/* ==========================================
   SIDEBAR DARK MODE
========================================== */

.sidebar-darkmode {
    display: flex;

    justify-content: space-between;

    align-items: center;

    width: 100%;
    max-width: 100%;

    padding: 12px 20px;

    background: #29445d;

    border-radius: 50px;
}


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

.sidebar-bottom {
    margin-top: auto;

    display: flex;

    flex-direction: column;

    gap: 10px;

    width: 100%;
    max-width: 100%;

    margin-left: 0;

    padding: 0;
}


/* ==========================================
   PROFILE CARD
========================================== */

.profile-card {
    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;
    max-width: 100%;

    padding: 12px 20px;

    background: #29445d;

    border-radius: 50px;

    overflow: hidden;
}

.profile-avatar {
    width: 50px;
    height: 50px;

    min-width: 50px;

    border-radius: 50%;

    background: #315673;

    display: flex;

    justify-content: center;
    align-items: center;

    color: #4f8cff;

    font-size: 24px;
}

.profile-info {
    flex: 1;

    min-width: 0;

    overflow: hidden;
}

.profile-info h4 {
    margin: 0;

    color: #fff;

    font-size: 16px;

    font-weight: 700;

    text-transform: uppercase;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.profile-info p {
    margin-top: 5px;

    color: #b8c8d6;

    font-size: 13px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* ==========================================
   LOGOUT
========================================== */

.logout-btn {
    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;
    max-width: 100%;

    padding: 12px 20px;

    background: #29445d;

    border-radius: 50px;

    color: #ff6666;

    text-decoration: none;

    font-size: 18px;

    font-weight: 600;

    overflow: hidden;
}

.logout-btn:hover {
    background: #364d68;

    color: #ff3b3b;
}

.profile-card,
.sidebar-darkmode,
.logout-btn {
    width: 100%;
    max-width: 100%;

    margin: 0;
}


/* ==========================================
   CODING ID SALE
========================================== */

.coding-id-back {
    padding: 14px 16px !important;

    justify-content: center;

    align-items: center;
}

.coding-id-back h3 {
    font-size: 19px;

    color: #f8fafc;

    margin-bottom: 10px;
}


/* ==========================================
   CODING PLATFORM LIST
========================================== */

.coding-platform-list {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 7px;
}


/* ==========================================
   PLATFORM ROW
========================================== */

.coding-platform {
    width: 100%;

    height: 43px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 4px 10px 4px 5px;

    background:
        rgba(14, 165, 233, 0.08);

    border:
        1px solid
        rgba(56, 189, 248, 0.35);

    border-radius: 9px;

    transition: all 0.25s ease;
}


/* ==========================================
   PLATFORM INFO
========================================== */

.platform-info {
    display: flex;

    align-items: center;

    gap: 8px;

    min-width: 0;
}


/* ==========================================
   ROUND LOGO
========================================== */

.platform-logo {
    width: 36px;
    height: 36px;

    min-width: 36px;
    min-height: 36px;

    border-radius: 50%;

    background: #ffffff;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border:
        1px solid
        rgba(56, 189, 248, 0.7);

    box-shadow:
        0 0 5px
        rgba(56, 189, 248, 0.25);
}


/* ==========================================
   ONLINE PLATFORM LOGO
========================================== */

.platform-logo img {
    width: 72%;
    height: 72%;

    object-fit: contain;

    display: block;

    border-radius: 0;
}


/* ==========================================
   PLATFORM NAME
========================================== */

.platform-name {
    color: #f8fafc;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;
}


/* ==========================================
   COUNT CIRCLE
========================================== */

.platform-count {
    width: 20px;
    height: 20px;

    min-width: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(56, 189, 248, 0.12);

    border:
        1px solid
        rgba(56, 189, 248, 0.6);

    border-radius: 50%;

    color: #38bdf8;

    font-size: 10px;

    font-weight: 700;
}


/* ==========================================
   PLATFORM PRICE
========================================== */

.platform-price {
    color: #38bdf8;

    font-size: 16px;

    font-weight: 800;

    white-space: nowrap;

    margin-left: 8px;
}


/* ==========================================
   PLATFORM HOVER
========================================== */

.coding-platform:hover {
    background:
        rgba(14, 165, 233, 0.15);

    border-color: #38bdf8;

    transform: translateX(3px);

    box-shadow:
        0 0 10px
        rgba(14, 165, 233, 0.15);
}


/* ==========================================
   CODING DELIVERY
========================================== */

.coding-delivery {
    margin-top: 7px;

    color: #94a3b8;

    font-size: 10px;

    font-style: italic;
}


/* ==========================================
   FINAL HORIZONTAL OVERFLOW PROTECTION
========================================== */

.left-panel,
.left-panel *,
.sidebar-bottom,
.profile-card,
.sidebar-darkmode,
.logout-btn {
    max-width: 100%;
}

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden !important;
    }

    .left-panel {
        width: 280px;
        max-width: 280px;

        overflow-x: hidden !important;
        overflow-y: auto;

        overscroll-behavior-x: none;
    }

    .sidebar-bottom {
        width: 100%;
        max-width: 100%;

        margin-left: 0;
    }

    .profile-card,
    .sidebar-darkmode,
    .logout-btn {
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================
   FINAL DARK MODE BUTTON VISIBILITY
========================================== */

/* LAPTOP / DESKTOP
   Hide sidebar Dark Mode */
.sidebar-darkmode {
    display: none !important;
}


/* MOBILE ONLY
   Show sidebar Dark Mode */
@media screen and (max-width: 768px) {

    .sidebar-darkmode {
        display: flex !important;

        justify-content: space-between;
        align-items: center;

        width: 100%;
        max-width: 100%;

        padding: 12px 20px;

        background: #29445d;

        border-radius: 50px;
    }

}






/* FULL-SCREEN ODRS CLOSED NOTICE */
.odrs-closed-notice {
    position: fixed;
    inset: 0;
    z-index: 9999999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;

    /* Completely opaque background */
    background: #071b32;
    opacity: 1;
}

/* Notice content */
.odrs-closed-content {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    text-align: center;
    color: #ffffff;
}

.odrs-closed-content h1 {
    color: #ff3838;
    font-size: clamp(26px, 4vw, 52px);
    font-weight: 800;
    margin: 0 0 16px;
}

.odrs-closed-content p {
    color: #ffffff;
    font-size: 18px;
    margin: 12px 0 24px;
}

.odrs-closed-image {
    display: block;
    width: 100%;
    max-width: 1000px;
    max-height: 65vh;
    object-fit: contain;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .odrs-closed-notice {
        padding: 12px;
    }

    .odrs-closed-image {
        max-height: 60vh;
    }
}


/* Public visitor label (replaces account and booking actions) */
.visitor-access-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.visitor-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.visitor-note i { color: #16a34a; }
@media (max-width: 768px) {
    .visitor-access-label { display: none; }
}

 
/* HEADER PROFILE ICON - RINGED LIGHT/DARK THEME */
.header-right-side .profile-menu {
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #f8fafc;
    color: #172033;
    cursor: pointer;
    font-size: 19px;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.12);
    transition: background-color .25s ease, color .25s ease,
                border-color .25s ease, box-shadow .25s ease;
}

.header-right-side .profile-menu:hover,
.header-right-side .profile-menu:focus-visible {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .15);
    outline: none;
}


/* Match the profile ring and icon to the active dark theme */
body.dark-mode .header-right-side .profile-menu {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #64748b;
    box-shadow: 0 2px 9px rgba(0, 0, 0, .35);
}

body.dark-mode .header-right-side .profile-menu:hover,
body.dark-mode .header-right-side .profile-menu:focus-visible {
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .18);
}

/* Keep the account icon visible on small screens when the header is shown */
@media (max-width: 768px) {
    .header-right-side .profile-menu {
        display: flex;
    }
}
