/* =============================================
   DEWOL CONSULTING LIMITED - MAIN STYLESHEET
   Brand Colors:
   - Primary Dark:   #3B444B
   - Golden Accent:  #EBB51D
   - White:          #FFFFFF
   - Dark Navy:      #2C2D3B
============================================= */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables (Brand Colors) --- */
:root {
    --primary:        #EBB51D;
    --primary-dark:   #c99a10;
    --primary-light:  #f5cc5a;
    --dark:           #3B444B;
    --navy:           #2C2D3B;
    --black:          #1a1b24;
    --white:          #ffffff;
    --grey-light:     #f4f5f7;
    --grey:           #dde1e7;
    --text-dark:      #2C2D3B;
    --text-grey:      #6b7280;
    --shadow:         0 2px 12px rgba(44,45,59,0.08);
    --shadow-hover:   0 8px 30px rgba(44,45,59,0.15);
    --border-radius:  10px;
    --transition:     all 0.25s ease;
    --glass-bg:       rgba(255,255,255,0.12);
    --glass-border:   rgba(255,255,255,0.18);
    --glass-shadow:   0 8px 32px rgba(44,45,59,0.15);
    --glass-blur:     blur(16px);
    --glass-dark-bg:      rgba(44,45,59,0.7);
    --glass-dark-border:  rgba(255,255,255,0.08);
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--grey-light);
    background-image: url('../images/abstract-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- Utility Classes --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section-padding { padding: 80px 0; }
.text-center  { text-align: center; }
.text-primary { color: var(--primary); }
.text-dark    { color: var(--dark); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 11px 28px;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-green { background: var(--primary); color: var(--navy); }
.btn-green:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(235,181,29,0.35); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--navy); }
.btn-orange { background: var(--dark); color: var(--white); }
.btn-orange:hover { background: var(--navy); transform: translateY(-1px); }

/* ===== HEADER / NAVBAR ===== */
header {
    background: var(--glass-dark-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-dark-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 15px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: fit-content;
}

.navbar-logo img { height: 45px; width: auto; border-radius: 6px; }
.navbar-logo span { color: var(--white); font-size: 18px; font-weight: 700; line-height: 1.2; }

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    flex-wrap: nowrap;
    overflow: hidden;
}

.navbar-menu a {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 6px !important;
    transition: all 0.25s ease !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-menu a:hover {
    color: var(--white) !important;
    background: rgba(235,181,29,0.15) !important;
    border-color: rgba(235,181,29,0.5) !important;
}

.navbar-menu a.active-nav {
    background: rgba(235,181,29,0.2) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    font-weight: 700;
}

.navbar-actions {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-shrink: 0;
}

.navbar-actions a {
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--border-radius);
    transition: var(--transition);
    white-space: nowrap;
}

.navbar-actions a:hover {
    background: var(--primary);
    color: var(--navy);
    border-color: var(--primary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
    padding: 4px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

/* ===== RESPONSIVE NAVBAR ===== */

/* Tablet - shrink text */
@media (max-width: 1100px) {
    .navbar { padding: 12px 20px; gap: 10px; }
    .navbar-menu a { font-size: 11px !important; padding: 4px 8px !important; }
    .navbar-actions a { font-size: 11px; padding: 6px 10px; }
}

/* Mobile - show hamburger */
@media (max-width: 960px) {

    .navbar { padding: 12px 16px; }

    /* Hide nav links */
    .navbar-menu { display: none !important; }

    /* Hide action links and bells — keep dark toggle and hamburger */
    .navbar-actions .notif-bell-wrap,
    .navbar-actions a { display: none !important; }
    .navbar-actions .dark-toggle { display: flex !important; }

    /* Show hamburger */
    .hamburger { display: flex !important; }

    /* Mobile dropdown */
    .navbar-menu.active {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: var(--navy) !important;
        padding: 20px !important;
        gap: 8px !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        border-top: 1px solid rgba(255,255,255,0.08) !important;
    }

    .navbar-menu.active a {
        font-size: 14px !important;
        padding: 12px 16px !important;
        width: 100% !important;
        text-align: left !important;
        border-radius: 8px !important;
        display: block !important;
    }

    /* Other responsive fixes */
    .hero-content h1 { font-size: 22px !important; }
    .hero-content p  { font-size: 13px !important; }
    .section-title h2 { font-size: 22px !important; }
    .two-col-grid { grid-template-columns: 1fr !important; }
    .charts-grid  { grid-template-columns: 1fr !important; }
    .form-row     { grid-template-columns: 1fr !important; }
    .ceo-wrapper  { grid-template-columns: 1fr !important; text-align: center !important; }

    /* Fix background-attachment for mobile */
    body      { background-attachment: scroll !important; }
    .sub-hero { background-attachment: scroll !important; }
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(44,45,59,0.75), rgba(44,45,59,0.75)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content h1 { font-size: 36px !important; font-weight: 700; margin-bottom: 15px !important; line-height: 1.3 !important; }
.hero-content h1 span { color: var(--primary); -webkit-text-fill-color: var(--primary); }
.hero-content p { font-size: 15px !important; margin-bottom: 25px !important; max-width: 550px !important; margin-left: auto; margin-right: auto; opacity: 0.85; }

.hero-subsidiaries {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px;
    margin-top: 28px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- SECTION TITLES --- */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.section-title h2 span { color: var(--primary); }
.section-title p { font-size: 15px; color: var(--text-grey); max-width: 580px; margin: 0 auto; }
.section-divider { width: 40px; height: 3px; background: var(--primary); margin: 12px auto; border-radius: 2px; }

/* --- CARDS --- */
.subsidiaries { background: var(--grey-light); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.card { background: var(--white); border-radius: 12px; padding: 32px 24px; text-align: center; border: 1px solid var(--grey); transition: var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.card-icon { width: 64px; height: 64px; background: rgba(235,181,29,0.1); border: 2px solid rgba(235,181,29,0.3); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 28px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.card p { font-size: 14px; color: var(--text-grey); margin-bottom: 18px; line-height: 1.7; }

/* --- CEO SECTION --- */
.ceo-section { background: var(--white); }
.ceo-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 900px) {
    .ceo-wrapper { display: block; }
    .ceo-image { float: left; margin-right: 25px; margin-bottom: 15px; text-align: left; }
    .ceo-image img { width: 160px !important; height: 160px !important; }
    .ceo-info { overflow: hidden; }
}

@media (max-width: 560px) {
    .ceo-image { float: none; margin-right: 0; text-align: center; }
    .ceo-image img { width: 140px !important; height: 140px !important; }
    .ceo-tags  { justify-content: center !important; }
    .ceo-social { justify-content: center !important; }
}

.ceo-image { text-align: center; }
.ceo-image img { width: 260px; height: 260px; object-fit: cover; border-radius: 16px; border: 3px solid var(--primary); box-shadow: var(--shadow-hover); }
.ceo-info h2 { font-size: 28px; font-weight: 700; margin-bottom: 5px; }
.ceo-info .ceo-title { color: var(--primary); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.ceo-info p { color: var(--text-grey); font-size: 14px; margin-bottom: 12px; line-height: 1.8; }

/* --- FOOTER --- */
footer { background: var(--navy); color: var(--white); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 18px; color: var(--primary); position: relative; padding-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--primary); }
.footer-col p, .footer-col a { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 8px; display: block; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-bottom span { color: var(--primary); }

/* --- ALERTS --- */
.alert { padding: 14px 18px; border-radius: var(--border-radius); margin-bottom: 18px; font-size: 14px; font-weight: 500; backdrop-filter: blur(8px); }
.alert-success { background: rgba(235,181,29,0.1); color: #7a5c00; border-left: 3px solid var(--primary); }
.alert-error   { background: rgba(220,53,69,0.08); color: #721c24; border-left: 3px solid #dc3545; }
.alert-info    { background: rgba(59,68,75,0.08); color: var(--dark); border-left: 3px solid var(--dark); }

/* --- FORMS --- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text-dark); }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--grey); border-radius: var(--border-radius); font-family: 'Poppins', sans-serif; font-size: 14px; transition: var(--transition); background: var(--white); color: var(--text-dark); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(235,181,29,0.12); }

/* --- TEXT LOGO --- */
.logo-text { font-size: 18px !important; font-weight: 800; color: white; -webkit-text-fill-color: white; letter-spacing: 1px; line-height: 1.1; display: flex; flex-direction: column; }
.logo-sub, .logo-sub-type { font-size: 10px !important; font-weight: 400; letter-spacing: 3px !important; text-transform: uppercase; color: rgba(255,255,255,0.6); -webkit-text-fill-color: rgba(255,255,255,0.6); }
.logo-main-type { font-size: 18px !important; font-weight: 800; color: white; -webkit-text-fill-color: white; letter-spacing: 1px; display: block; min-height: 24px; }

/* --- STATS ROW --- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 40px; text-align: center; }
.stat-item { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); padding: 24px 16px; border-radius: 12px; transition: var(--transition); }
.stat-item:hover { transform: translateY(-3px); background: rgba(255,255,255,0.18); }
.stat-item h3 { font-size: 36px; font-weight: 800; color: var(--primary); -webkit-text-fill-color: var(--primary); background: none; -webkit-background-clip: unset; background-clip: unset; }
.stat-item p  { font-size: 13px; color: rgba(19, 8, 8, 0.7); font-weight: 500; margin-top: 4px; }

/* --- WHY CHOOSE US --- */
.why-us { background: var(--grey-light); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.why-item { background: var(--white); padding: 30px 22px; border-radius: 12px; text-align: center; border: 1px solid var(--grey); transition: var(--transition); }
.why-item:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
.why-item i { font-size: 36px; color: var(--primary); margin-bottom: 14px; display: block; }
.why-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.why-item p  { font-size: 13px; color: var(--text-grey); line-height: 1.7; }

/* --- CEO SOCIAL --- */
.ceo-social { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.ceo-social a { width: 38px; height: 38px; border-radius: 8px; background: rgba(235,181,29,0.1); border: 1px solid rgba(235,181,29,0.3); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: var(--transition); }
.ceo-social a:hover { background: var(--primary); color: var(--navy); border-color: var(--primary); }

/* --- CEO TAGS --- */
.ceo-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ceo-tags span { background: rgba(235,181,29,0.08); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--primary); border: 1px solid rgba(235,181,29,0.25); }

/* --- DEVELOPER SECTION --- */
.developer-section { background: var(--grey-light); }
.developer-wrapper { display: flex; justify-content: center; }
.developer-card { background: var(--white); border-radius: 16px; padding: 45px 35px; text-align: center; max-width: 480px; width: 100%; transition: var(--transition); border: 1px solid var(--grey); }
.developer-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
.developer-icon { width: 72px; height: 72px; background: rgba(235,181,29,0.12); border: 2px solid rgba(235,181,29,0.3); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 30px; color: var(--primary); }
.developer-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.dev-role { color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.dev-stack { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0; }
.dev-stack span { background: rgba(59,68,75,0.08); color: var(--dark); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid var(--grey); }
.dev-contact { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.dev-contact a { padding: 9px 18px; border-radius: var(--border-radius); font-size: 13px; font-weight: 600; background: var(--grey-light); color: var(--text-dark); transition: var(--transition); border: 1px solid var(--grey); }
.dev-contact a:hover { background: var(--primary); color: var(--navy); border-color: var(--primary); }

/* --- CTA SECTION --- */
.cta-section { background: var(--navy); padding: 80px 0; text-align: center; color: var(--white); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at center, rgba(235,181,29,0.08) 0%, transparent 60%); pointer-events: none; }
.cta-content h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.cta-content p  { font-size: 16px; margin-bottom: 30px; opacity: 0.8; }

/* --- AUTH PAGES --- */
.auth-section { background: var(--grey-light); min-height: 85vh; display: flex; align-items: center; padding: 60px 0; }
.auth-wrapper { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; max-width: 860px; margin: 0 auto; width: 100%; }
.auth-card { background: var(--white); border-radius: 16px; padding: 36px; border: 1px solid var(--grey); border-top: 3px solid var(--primary); width: 100%; }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-icon { width: 64px; height: 64px; background: rgba(235,181,29,0.1); border: 2px solid rgba(235,181,29,0.25); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 26px; color: var(--primary); }
.auth-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 5px; }
.auth-header p  { color: var(--text-grey); font-size: 14px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-grey); }
.auth-switch a { color: var(--primary); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.eye-icon { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-grey); font-size: 15px; transition: var(--transition); }
.eye-icon:hover { color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-info { background: var(--dark); border-radius: 16px; padding: 36px 28px; color: var(--white); }
.auth-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.1); color: var(--primary); }
.auth-info ul { display: flex; flex-direction: column; gap: 14px; }
.auth-info ul li { font-size: 13px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.75); }
.auth-info ul li i { font-size: 16px; color: var(--primary); }
.auth-info-footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 8px; }

/* ===== DASHBOARD / ADMIN PANEL ===== */
.dashboard-section { padding: 40px 0; background: var(--grey-light); min-height: 85vh; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; background: var(--white); padding: 22px 26px; border-radius: 12px; border: 1px solid var(--grey); border-left: 4px solid var(--primary); }
.dashboard-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.dashboard-header h2 i { color: var(--primary); margin-right: 10px; }
.dashboard-header p { font-size: 13px; color: var(--text-grey); }

/* Stats */
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.dash-stat { background: var(--white); border-radius: 12px; padding: 22px 18px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--grey); border-bottom: 3px solid var(--primary); transition: var(--transition); }
.dash-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.dash-stat i { font-size: 30px; color: var(--primary); }
.dash-stat h3 { font-size: 26px; font-weight: 800; color: var(--dark); background: none; -webkit-background-clip: unset; -webkit-text-fill-color: var(--dark); background-clip: unset; }
.dash-stat p { font-size: 12px; color: var(--text-grey); font-weight: 500; }

/* Tabs */
.dash-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab-btn { padding: 9px 20px; border: 1.5px solid var(--grey); background: var(--white); border-radius: var(--border-radius); font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--text-dark); }
.tab-btn:hover, .tab-btn.active { background: var(--primary); color: var(--navy); border-color: var(--primary); }
.tab-content        { display: none; }
.tab-content.active { display: block; }

/* Dash Card */
.dash-card { background: var(--white); border-radius: 12px; padding: 26px; border: 1px solid var(--grey); }
.dash-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--grey-light); color: var(--text-dark); }
.dash-card h3 i { color: var(--primary); margin-right: 8px; }

/* Table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-table th { background: var(--grey-light); padding: 11px 14px; text-align: left; font-weight: 600; color: var(--text-dark); border-bottom: 2px solid var(--grey); white-space: nowrap; }
.dash-table td { padding: 11px 14px; border-bottom: 1px solid var(--grey-light); color: var(--text-grey); vertical-align: middle; }
.dash-table tr:hover td { background: var(--grey-light); }

/* Badges */
.badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-green { background: rgba(235,181,29,0.12); color: #7a5c00; animation: none !important; border: none !important; box-shadow: none !important; cursor: default !important; }
.badge-red   { background: #fde8ea; color: #721c24; }
.badge-blue  { background: rgba(59,68,75,0.08); color: var(--dark); }

/* Small Buttons */
.btn-sm { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: var(--transition); }
.btn-red { background: #fde8ea; color: #721c24; border: 1px solid #f5c6cb; }
.btn-red:hover { background: #dc3545; color: white; }
.btn-green-sm { background: rgba(235,181,29,0.12); color: #7a5c00; border: 1px solid rgba(235,181,29,0.3); }
.btn-green-sm:hover { background: var(--primary); color: var(--navy); border-color: var(--primary); }

/* ===== SUB HERO ===== */
.sub-hero { min-height: 50vh; display: flex; align-items: center; text-align: center; color: var(--white); background: linear-gradient(rgba(44,45,59,0.7), rgba(44,45,59,0.7)) center/cover no-repeat; }
.sub-hero-content { max-width: 680px; margin: 0 auto; }
.sub-hero-icon { font-size: 40px !important; margin-bottom: 10px !important; }
.sub-hero-content h1 { font-size: 32px !important; font-weight: 700; margin-bottom: 12px !important; line-height: 1.3 !important; }
.sub-hero-content h1 span { color: var(--primary); -webkit-text-fill-color: var(--primary); background: none; -webkit-background-clip: unset; background-clip: unset; }
.sub-hero-content p { font-size: 14px !important; margin-bottom: 20px !important; opacity: 0.85; line-height: 1.8; }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.feature-item { text-align: center; padding: 26px 18px; background: var(--white); border-radius: 12px; border: 1px solid var(--grey); transition: var(--transition); }
.feature-item:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
.feature-item i { font-size: 32px; color: var(--primary); margin-bottom: 12px; display: block; }
.feature-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-item p  { font-size: 13px; color: var(--text-grey); }

/* ===== FLATS GRID ===== */
.flats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.flat-card { background: var(--white); border-radius: 12px; border: 1px solid var(--grey); overflow: hidden; transition: var(--transition); }
.flat-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
.flat-video-placeholder { background: var(--dark); height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); gap: 10px; }
.flat-video-placeholder i { font-size: 44px; opacity: 0.5; }
.flat-video-placeholder p { font-size: 13px; }
.flat-info { padding: 22px; }
.flat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.flat-header h3 { font-size: 20px; font-weight: 700; }
.flat-desc  { font-size: 13px; color: var(--text-grey); line-height: 1.7; margin-bottom: 14px; }
.flat-price { margin-bottom: 14px; }
.price-amount { font-size: 26px; font-weight: 800; color: var(--primary); }
.price-per    { font-size: 13px; color: var(--text-grey); margin-left: 5px; }
.flat-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.flat-amenities span { background: var(--grey-light); padding: 4px 11px; border-radius: 20px; font-size: 11px; font-weight: 600; color: var(--text-dark); border: 1px solid var(--grey); }
.flat-amenities span i { color: var(--primary); margin-right: 4px; }

/* ===== PAYMENT ACCOUNTS ===== */
.accounts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 680px; margin: 0 auto; }
.account-card { background: var(--white); border-radius: 12px; padding: 26px 22px; text-align: center; border: 1px solid var(--grey); border-top: 3px solid var(--primary); transition: var(--transition); }
.account-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.account-icon { width: 50px; height: 50px; background: rgba(235,181,29,0.1); border: 1px solid rgba(235,181,29,0.25); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 20px; color: var(--primary); }
.account-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.acc-name        { font-size: 13px; color: var(--text-grey); margin-bottom: 5px; }
.acc-number      { font-size: 20px; font-weight: 800; color: var(--dark); letter-spacing: 2px; margin-bottom: 5px; }

/* ===== TWO COL GRID ===== */
.two-col-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-bottom: 22px; }
.price-summary { background: rgba(235,181,29,0.06); border-radius: var(--border-radius); padding: 18px; margin: 14px 0; border-left: 3px solid var(--primary); }
.price-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; color: var(--text-grey); border-bottom: 1px solid var(--grey); }
.total-row { font-size: 16px; font-weight: 700; color: var(--primary); border-bottom: none; margin-top: 5px; padding-top: 8px; }
.flats-manage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.flat-manage-card { background: var(--grey-light); border-radius: 10px; padding: 22px 18px; text-align: center; border: 1px solid var(--grey); border-bottom: 3px solid var(--primary); }
.flat-manage-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.flat-manage-card h4 { font-size: 16px; font-weight: 700; }

/* ===== PRODUCTS GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.product-card { background: var(--white); border-radius: 12px; padding: 30px 22px; text-align: center; border: 1px solid var(--grey); border-bottom: 3px solid var(--primary); transition: var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-icon  { font-size: 48px; margin-bottom: 14px; }
.product-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.product-price { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.product-price span { font-size: 13px; color: var(--text-grey); font-weight: 400; }
.product-card p { font-size: 13px; color: var(--text-grey); line-height: 1.7; margin-bottom: 14px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.product-tags span { background: rgba(235,181,29,0.08); padding: 4px 11px; border-radius: 20px; font-size: 11px; font-weight: 600; color: var(--primary); border: 1px solid rgba(235,181,29,0.2); }

/* ===== STEPS GRID ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.step-item { text-align: center; padding: 26px 18px; background: var(--white); border-radius: 12px; border: 1px solid var(--grey); transition: var(--transition); }
.step-item:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
.step-number { width: 48px; height: 48px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: var(--navy); margin: 0 auto 14px; }
.step-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-item p  { font-size: 12px; color: var(--text-grey); line-height: 1.7; }

/* ===== FANZONE MENU ===== */
.menu-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.menu-tab-btn { padding: 9px 22px; border: 1.5px solid var(--grey); background: var(--white); border-radius: var(--border-radius); font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--text-dark); }
.menu-tab-btn:hover, .menu-tab-btn.active { background: var(--primary); color: var(--navy); border-color: var(--primary); }
.menu-tab-content        { display: none; }
.menu-tab-content.active { display: block; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; }
.menu-item-card { background: var(--white); border-radius: 10px; padding: 16px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--grey); border-left: 3px solid var(--primary); transition: var(--transition); }
.menu-item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.menu-item-emoji { font-size: 28px; flex-shrink: 0; }
.menu-item-info  { flex: 1; }
.menu-item-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.menu-item-info p  { font-size: 11px; color: var(--text-grey); line-height: 1.5; }
.menu-item-price   { font-size: 15px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.mini-menu-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--grey-light); font-size: 13px; }
.mini-price { font-weight: 700; color: var(--primary); }

/* ===== REAL ESTATE ===== */
.properties-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.property-card { background: var(--white); border-radius: 12px; border: 1px solid var(--grey); overflow: hidden; transition: var(--transition); }
.property-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
.property-image { position: relative; height: 190px; overflow: hidden; }
.property-image img { width: 100%; height: 100%; object-fit: cover; }
.property-no-image { width: 100%; height: 100%; background: var(--dark); display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); gap: 8px; }
.property-no-image i { font-size: 44px; opacity: 0.4; }
.property-no-image p { font-size: 13px; }
.property-badge { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; color: var(--navy); }
.property-badge.rent { background: var(--primary); }
.property-badge.sale { background: var(--white); color: var(--dark); }
.property-info    { padding: 18px; }
.property-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.property-location { font-size: 12px; color: var(--text-grey); margin-bottom: 7px; }
.property-location i { color: var(--primary); margin-right: 4px; }
.property-desc  { font-size: 12px; color: var(--text-grey); line-height: 1.6; margin-bottom: 10px; }
.property-price { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 7px; }
.property-price span { font-size: 12px; color: var(--text-grey); font-weight: 400; }
.property-agent { font-size: 12px; color: var(--text-grey); margin-bottom: 14px; }
.property-agent i { color: var(--primary); margin-right: 4px; }
.no-properties { text-align: center; padding: 50px 20px; color: var(--text-grey); grid-column: 1/-1; }
.no-properties i { font-size: 44px; color: var(--grey); display: block; margin-bottom: 14px; }
.help-list { display: flex; flex-direction: column; gap: 16px; }
.help-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--grey-light); border-radius: 10px; border: 1px solid var(--grey); transition: var(--transition); }
.help-item:hover { background: var(--white); box-shadow: var(--shadow); }
.help-item i  { font-size: 22px; color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.help-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.help-item p  { font-size: 12px; color: var(--text-grey); line-height: 1.6; }

/* ===== FLOAT-IN ANIMATIONS ===== */
@keyframes floatInUp   { 0% { opacity: 0; transform: translateY(30px); }  100% { opacity: 1; transform: translateY(0); } }
@keyframes floatInLeft  { 0% { opacity: 0; transform: translateX(-30px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes floatInRight { 0% { opacity: 0; transform: translateX(30px); }  100% { opacity: 1; transform: translateX(0); } }

.float-in       { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.float-in.visible { opacity: 1; transform: translateY(0); }
.float-in-left  { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.float-in-left.visible { opacity: 1; transform: translateX(0); }
.float-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.float-in-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; background: var(--dark); color: var(--white); border: none; border-radius: 10px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 9999; backdrop-filter: var(--glass-blur); }
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--primary); color: var(--navy); transform: translateY(-3px); }

/* ===== PAGE LOADER ===== */
.page-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 99999; transition: opacity 0.5s ease, visibility 0.5s ease; }
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { font-size: 32px; font-weight: 800; color: var(--dark); -webkit-text-fill-color: var(--dark); background: none; -webkit-background-clip: unset; background-clip: unset; margin-bottom: 6px; letter-spacing: 3px; }
.loader-sub { font-size: 11px; font-weight: 400; letter-spacing: 5px; text-transform: uppercase; color: var(--text-grey); margin-bottom: 32px; }
.loader-bar-wrap { width: 180px; height: 3px; background: var(--grey-light); border-radius: 3px; overflow: hidden; }
.loader-bar { height: 100%; width: 0%; background: var(--primary); border-radius: 3px; animation: loadBar 1.5s ease forwards; }
@keyframes loadBar { 0% { width: 0%; } 40% { width: 60%; } 70% { width: 80%; } 100% { width: 100%; } }
.loader-tagline { margin-top: 18px; font-size: 12px; color: var(--text-grey); font-style: italic; }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 999999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--white); border-radius: 10px; padding: 14px 18px; min-width: 270px; max-width: 330px; border: 1px solid var(--grey); display: flex; align-items: center; gap: 12px; transform: translateX(120%); transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275); border-left: 4px solid var(--primary); backdrop-filter: var(--glass-blur); }
.toast.show { transform: translateX(0); }
.toast.toast-success { border-left-color: var(--primary); }
.toast.toast-error   { border-left-color: #dc3545; }
.toast.toast-info    { border-left-color: var(--dark); }
.toast.toast-warning { border-left-color: #f59e0b; }
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-success .toast-icon { color: var(--primary); }
.toast-error   .toast-icon { color: #dc3545; }
.toast-info    .toast-icon { color: var(--dark); }
.toast-warning .toast-icon { color: #f59e0b; }
.toast-body  { flex: 1; }
.toast-title { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.toast-message { font-size: 12px; color: var(--text-grey); line-height: 1.4; }
.toast-close { background: none; border: none; font-size: 14px; color: var(--text-grey); cursor: pointer; padding: 0; flex-shrink: 0; transition: var(--transition); }
.toast-close:hover { color: var(--text-dark); }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--primary); border-radius: 0 0 0 10px; animation: toastProgress 3s linear forwards; }
.toast-error   .toast-progress { background: #dc3545; }
.toast-info    .toast-progress { background: var(--dark); }
.toast-warning .toast-progress { background: #f59e0b; }
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }

/* ===== DARK MODE ===== */
body.dark-mode {
    --white:        #1e2027;
    --grey-light:   #16181f;
    --grey:         #2e3038;
    --text-dark:    #e8eaed;
    --text-grey:    #9aa0ac;
    --shadow:       0 2px 12px rgba(0,0,0,0.4);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.5);
    background-color: #16181f;
    color: #e8eaed;
}
body.dark-mode header { background: rgba(28,30,39,0.9); border-bottom-color: rgba(255,255,255,0.05); }
body.dark-mode .card, body.dark-mode .flat-card, body.dark-mode .product-card, body.dark-mode .property-card,
body.dark-mode .dash-card, body.dark-mode .auth-card, body.dark-mode .account-card, body.dark-mode .menu-item-card,
body.dark-mode .why-item, body.dark-mode .feature-item, body.dark-mode .step-item, body.dark-mode .developer-card { background: #1e2027; border-color: #2e3038; color: #e8eaed; }
body.dark-mode .dash-table th { background: #16181f; color: #e8eaed; }
body.dark-mode .dash-table td { color: #9aa0ac; border-bottom-color: #2e3038; }
body.dark-mode .dash-table tr:hover td { background: #16181f; }
body.dark-mode .form-group input, body.dark-mode .form-group select, body.dark-mode .form-group textarea { background: #16181f; color: #e8eaed; border-color: #2e3038; }
body.dark-mode .price-summary { background: rgba(235,181,29,0.05); }
body.dark-mode .alert-success { background: rgba(235,181,29,0.08); color: #e8c84a; }
body.dark-mode .alert-error   { background: rgba(220,53,69,0.1); color: #ff8a95; }
body.dark-mode .page-loader   { background: #16181f; }
body.dark-mode .toast         { background: #1e2027; border-color: #2e3038; }
body.dark-mode .toast-title   { color: #e8eaed; }
body.dark-mode footer         { background: #0e0f15; }
body.dark-mode .confirm-modal { background: #1e2027; border-color: #2e3038; }
body.dark-mode .confirm-modal h3 { color: #e8eaed; }

/* Dark toggle */
.dark-toggle { background: none; border: 1px solid rgba(255,255,255,0.25); color: white; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: var(--transition); flex-shrink: 0; min-width: 34px; }
.dark-toggle:hover { background: rgba(255,255,255,0.1); border-color: var(--primary); }
.dark-toggle i { color: white !important; font-size: 14px; pointer-events: none; }

/* ===== CONFIRMATION MODAL ===== */
.confirm-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(44,45,59,0.7); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); z-index: 999998; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.25s ease; }
.confirm-overlay.show { opacity: 1; visibility: visible; }
.confirm-modal { background: var(--white); border-radius: 16px; padding: 36px 30px; max-width: 400px; width: 90%; text-align: center; border: 1px solid var(--grey); transform: scale(0.92) translateY(-10px); transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; }
.confirm-overlay.show .confirm-modal { transform: scale(1) translateY(0); }
.confirm-modal-icon { width: 64px; height: 64px; background: rgba(235,181,29,0.1); border: 1px solid rgba(235,181,29,0.25); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 28px; }
.confirm-modal h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.confirm-modal p  { font-size: 13px; color: var(--text-grey); margin-bottom: 26px; line-height: 1.6; }
.confirm-modal-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-modal-actions button { padding: 10px 26px; border-radius: var(--border-radius); font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); min-width: 100px; }
.confirm-yes { background: #dc3545; color: white; }
.confirm-yes:hover { background: #b02a37; }
.confirm-no { background: var(--grey-light); color: var(--text-dark); border: 1.5px solid var(--grey) !important; }
.confirm-no:hover { background: var(--grey); }

/* ===== INLINE EDIT ===== */
.inline-edit { padding: 5px 10px; border: 1.5px solid var(--primary); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 13px; width: 130px; background: var(--white); color: var(--text-dark); }

/* ===== WATER STOCK ===== */
.stock-badge { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.stock-badge.in-stock  { background: rgba(235,181,29,0.08); color: #7a5c00; border-left: 3px solid var(--primary); }
.stock-badge.out-stock { background: #fde8ea; color: #721c24; border-left: 3px solid #dc3545; }
.stock-badge i { font-size: 18px; }
.stock-msg-display { font-size: 12px; color: var(--text-grey); margin-top: 8px; padding: 9px 13px; background: var(--grey-light); border-radius: 8px; line-height: 1.6; }

/* ===== QUICK ACTION LINKS ===== */
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.quick-action-btn { background: var(--white); border: 1.5px solid var(--grey); color: var(--text-dark); padding: 9px 18px; border-radius: var(--border-radius); font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: var(--transition); }
.quick-action-btn:hover { background: var(--primary); color: var(--navy); border-color: var(--primary); transform: translateY(-1px); }

/* ===== HERO SLIDESHOW ===== */
.hero { position: relative; overflow: hidden; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 0; }
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(44,45,59,0.6); }
.hero .container { position: relative; z-index: 2; }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.5); }
.hero-dot.active { background: var(--primary); transform: scale(1.3); border-color: var(--primary); }

/* ===== PENDING PULSE ===== */
@keyframes pendingPulse { 0% { box-shadow: 0 0 0 0 rgba(235,181,29,0.4); } 70% { box-shadow: 0 0 0 5px rgba(235,181,29,0); } 100% { box-shadow: 0 0 0 0 rgba(235,181,29,0); } }
.dash-table .badge[style*="cursor: pointer"] { transition: all 0.2s ease; }
.dash-table .badge[style*="cursor: pointer"]:hover { transform: scale(1.06); filter: brightness(0.92); }
.badge[style*="background:#fff3cd"] { animation: pendingPulse 1.5s infinite; }
.badge[style*="background:#d1ecf1"] { animation: pendingPulse 1.5s infinite; border: 1.5px dashed #0c5460 !important; cursor: pointer !important; }

/* ===== INLINE STATUS DROPDOWNS ===== */
.status-select { padding: 5px 24px 5px 10px; border-radius: 20px; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; outline: none; transition: all 0.25s ease; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; min-width: 105px; }
.status-select:focus { box-shadow: 0 0 0 2px rgba(235,181,29,0.2); }
.status-select.theme-pending   { background-color: #fff9e6; color: #7a5c00; border-color: var(--primary); }
.status-select.theme-confirmed { background-color: #e8f4f8; color: #0c5460; border-color: #17a2b8; }
.status-select.theme-delivered { background-color: rgba(235,181,29,0.1); color: #7a5c00; border-color: var(--primary); }
.status-select.theme-cancelled { background-color: #fde8ea; color: #721c24; border-color: #dc3545; }
.status-select.theme-paid      { background-color: rgba(235,181,29,0.1); color: #7a5c00; border-color: var(--primary); }
.status-select.theme-unpaid    { background-color: #fff9e6; color: #7a5c00; border-color: var(--primary); }
.status-saving { font-size: 11px; color: var(--primary); margin-top: 3px; display: none; font-weight: 600; }
.status-saving.show { display: block; }

/* ===== LIVE SEARCH BAR ===== */
.table-search-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.table-search-input { padding: 9px 15px; border: 1.5px solid var(--grey); border-radius: 25px; font-family: 'Poppins', sans-serif; font-size: 13px; width: 280px; max-width: 100%; transition: var(--transition); background: var(--white); color: var(--text-dark); }
.table-search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(235,181,29,0.12); }
.table-search-count { font-size: 12px; color: var(--text-grey); font-weight: 500; }
.table-no-results   { text-align: center; padding: 28px; color: var(--text-grey); font-size: 13px; display: none; }

/* ===== CUSTOMER PROFILE PAGE ===== */
.profile-avatar-wrap { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; padding: 18px; background: var(--grey-light); border-radius: 12px; border: 1px solid var(--grey); }
.profile-avatar { width: 64px; height: 64px; border-radius: 12px; background: var(--dark); color: white; font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-avatar-info h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.profile-avatar-info p  { font-size: 13px; color: var(--text-grey); margin-bottom: 7px; }
.password-strength-wrap { height: 5px; background: var(--grey-light); border-radius: 3px; overflow: hidden; margin-bottom: 5px; }
.strength-bar  { height: 100%; width: 0%; border-radius: 3px; transition: all 0.4s ease; }
.strength-text { font-size: 12px; font-weight: 600; }

/* ===== CHARTS GRID ===== */
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 22px; }

/* ===== FANZONE STOCK ===== */
.stock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.stock-item-card { background: var(--white); border-radius: 12px; padding: 18px; border: 1px solid var(--grey); border-left: 3px solid var(--primary); transition: var(--transition); }
.stock-item-card:hover { box-shadow: var(--shadow-hover); }
.stock-item-header { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.stock-item-icon   { font-size: 26px; flex-shrink: 0; }
.stock-item-header h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.stock-item-header p  { font-size: 12px; color: var(--text-grey); }
.stock-input-wrap label { font-size: 11px; font-weight: 700; color: var(--text-grey); display: block; margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.5px; }
.stock-counter { display: flex; align-items: center; gap: 7px; }
.stock-btn { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--grey); background: var(--white); font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); color: var(--text-dark); flex-shrink: 0; }
.stock-btn.minus:hover { background: #fde8ea; border-color: #dc3545; color: #dc3545; }
.stock-btn.plus:hover  { background: rgba(235,181,29,0.1); border-color: var(--primary); color: var(--primary); }
.stock-qty-input { width: 65px; text-align: center; padding: 7px; border: 1.5px solid var(--grey); border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: var(--text-dark); background: var(--white); }
.stock-qty-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(235,181,29,0.12); }
.stock-saved-badge { margin-top: 8px; padding: 5px 11px; background: rgba(235,181,29,0.1); color: #7a5c00; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(235,181,29,0.25); }
.history-date-group { margin-bottom: 26px; }
.history-date-header { font-size: 14px; font-weight: 700; color: var(--text-dark); padding: 11px 14px; background: var(--grey-light); border-radius: 8px 8px 0 0; border-left: 3px solid var(--primary); display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--grey); }
.history-date-header i { color: var(--primary); }

/* ===== MANAGER INSIGHTS ===== */
.manager-performance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.manager-perf-card { background: var(--white); border-radius: 14px; padding: 22px; border: 1px solid var(--grey); border-top: 3px solid var(--primary); transition: var(--transition); position: relative; }
.manager-perf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.manager-perf-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; position: relative; }
.manager-perf-avatar { width: 50px; height: 50px; border-radius: 10px; background: var(--dark); color: white; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.manager-perf-header h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.manager-perf-header p  { font-size: 12px; color: var(--text-grey); margin-bottom: 2px; }
.manager-status-dot { width: 10px; height: 10px; border-radius: 50%; position: absolute; top: 0; right: 0; }
.manager-status-dot.active   { background: var(--primary); box-shadow: 0 0 0 3px rgba(235,181,29,0.2); }
.manager-status-dot.inactive { background: #dc3545; box-shadow: 0 0 0 3px rgba(220,53,69,0.2); }
.perf-score-wrap { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.perf-score-circle { width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--primary); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.perf-score-info { display: flex; flex-direction: column; gap: 4px; }
.perf-stat { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-grey); }
.perf-stat i { font-size: 13px; }
.perf-bar-wrap { height: 6px; background: var(--grey-light); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.perf-bar { height: 100%; border-radius: 3px; transition: width 1s ease; }
.manager-last-seen { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding: 9px 13px; background: var(--grey-light); border-radius: 8px; font-size: 12px; color: var(--text-grey); border: 1px solid var(--grey); }
.activity-feed { display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--grey-light); transition: var(--transition); }
.activity-item:hover { padding-left: 8px; background: var(--grey-light); border-radius: 8px; padding-right: 8px; }
.activity-item:last-child { border-bottom: none; }
.activity-icon { font-size: 20px; flex-shrink: 0; width: 38px; height: 38px; background: var(--grey-light); border: 1px solid var(--grey); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.activity-body p     { font-size: 13px; color: var(--text-dark); margin-bottom: 3px; line-height: 1.5; }
.activity-body small { font-size: 11px; color: var(--text-grey); }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.note-card { border-radius: 10px; padding: 16px; border-left: 3px solid var(--primary); border: 1px solid var(--grey); transition: var(--transition); }
.note-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.note-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 9px; }
.note-body { font-size: 13px; line-height: 1.6; margin-bottom: 9px; color: var(--text-dark); }

/* ===== NOTE MODAL ===== */
#noteOverlay { z-index: 999999 !important; }
#noteOverlay .confirm-modal { max-width: 460px !important; text-align: left !important; }
#noteOverlay textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--grey); border-radius: var(--border-radius); font-family: 'Poppins', sans-serif; font-size: 14px; resize: vertical; min-height: 110px; transition: var(--transition); background: var(--white); color: var(--text-dark); }
#noteOverlay textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(235,181,29,0.12); }
#noteOverlay select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--grey); border-radius: var(--border-radius); font-family: 'Poppins', sans-serif; font-size: 14px; background: var(--white); color: var(--text-dark); transition: var(--transition); }
#noteOverlay select:focus { outline: none; border-color: var(--primary); }
#noteOverlay .confirm-yes { background: var(--primary) !important; color: var(--navy) !important; }
#noteOverlay .confirm-yes:hover { background: var(--primary-dark) !important; }

/* ===== MOBILE MENU ACTIONS ===== */
@media (max-width: 960px) {
    #mobileActionsItem { width: 100%; }
    #mobileActionsItem a, #mobileActionsItem button { width: 100% !important; box-sizing: border-box !important; }
}

/* ===== NOTIFICATION BELL ===== */
.notif-bell-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.notif-bell-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.25); background: none; color: white; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); position: relative; flex-shrink: 0; }
.notif-bell-btn:hover { background: rgba(235,181,29,0.15); border-color: var(--primary); }
.notif-badge { position: absolute; top: -4px; right: -4px; background: #dc3545; color: white; font-size: 9px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid white; animation: badgePulse 1.5s infinite; }
@keyframes badgePulse { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
.notif-dropdown { position: absolute; top: 46px; right: 0; width: 320px; background: var(--white); border-radius: 12px; border: 1px solid var(--grey); box-shadow: var(--shadow-hover); z-index: 99999; overflow: hidden; display: none; }
.notif-dropdown.open { display: block; animation: dropdownFadeIn 0.25s ease; }
@keyframes dropdownFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.notif-dropdown-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--grey); background: var(--grey-light); }
.notif-dropdown-header h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.notif-mark-all { font-size: 12px; color: var(--primary); cursor: pointer; font-weight: 600; background: none; border: none; font-family: 'Poppins', sans-serif; }
.notif-mark-all:hover { text-decoration: underline; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { display: flex; align-items: flex-start; gap: 11px; padding: 13px 18px; border-bottom: 1px solid var(--grey-light); cursor: pointer; transition: var(--transition); text-decoration: none; }
.notif-item:hover { background: var(--grey-light); }
.notif-item.unread { background: rgba(235,181,29,0.05); border-left: 2px solid var(--primary); }
.notif-item.unread:hover { background: rgba(235,181,29,0.1); }
.notif-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(235,181,29,0.1); border: 1px solid rgba(235,181,29,0.2); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 13px; flex-shrink: 0; }
.notif-content  { flex: 1; }
.notif-title    { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; line-height: 1.3; }
.notif-message  { font-size: 11px; color: var(--text-grey); line-height: 1.5; margin-bottom: 3px; }
.notif-time     { font-size: 11px; color: var(--primary); font-weight: 600; }
.notif-empty { text-align: center; padding: 36px 18px; color: var(--text-grey); }
.notif-empty i { font-size: 30px; display: block; margin-bottom: 8px; opacity: 0.25; }
.notif-dropdown-footer { padding: 11px 18px; text-align: center; border-top: 1px solid var(--grey); background: var(--grey-light); }
.notif-dropdown-footer a { font-size: 12px; color: var(--primary); font-weight: 600; text-decoration: none; }
body.dark-mode .notif-dropdown { background: #1e2027; border-color: #2e3038; }
body.dark-mode .notif-item.unread { background: rgba(235,181,29,0.05); }
body.dark-mode .notif-title { color: #e8eaed; }
body.dark-mode .notif-dropdown-header, body.dark-mode .notif-dropdown-footer { background: #16181f; }

/* ===== PAYMENT PROOF WHATSAPP BOX ===== */
.payment-proof-box { background: linear-gradient(135deg, #25D366, #128C7E); border-radius: 12px; padding: 18px 22px; margin-top: 18px; color: white; display: flex; align-items: flex-start; gap: 14px; transition: var(--transition); }
.payment-proof-box:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.payment-proof-icon { font-size: 30px; flex-shrink: 0; margin-top: 2px; }
.payment-proof-content h4 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.payment-proof-content p  { font-size: 12px; opacity: 0.9; line-height: 1.6; margin-bottom: 11px; }
.payment-proof-rules { background: rgba(255,255,255,0.12); border-radius: 8px; padding: 11px 14px; margin-bottom: 13px; }
.payment-proof-rules p { font-size: 12px; margin-bottom: 4px; opacity: 0.95; }
.payment-proof-rules p:last-child { margin-bottom: 0; }
.payment-proof-btn { display: inline-flex; align-items: center; gap: 7px; background: white; color: #128C7E; padding: 9px 18px; border-radius: 25px; font-size: 13px; font-weight: 700; text-decoration: none; transition: var(--transition); font-family: 'Poppins', sans-serif; }
.payment-proof-btn:hover { background: #f0fff0; transform: translateY(-1px); }
.payment-proof-btn i { font-size: 16px; color: #25D366; }

/* ===== CUSTOMER LEADERBOARD ===== */
.leaderboard-list { display: flex; flex-direction: column; gap: 12px; }
.leaderboard-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--white); border-radius: 12px; border: 1px solid var(--grey); transition: var(--transition); flex-wrap: wrap; }
.leaderboard-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.leaderboard-item.top-1 { border-left: 4px solid #f5cc5a; background: rgba(235,181,29,0.04); }
.leaderboard-item.top-2 { border-left: 4px solid #9e9e9e; }
.leaderboard-item.top-3 { border-left: 4px solid #cd7f32; }
.leaderboard-rank { font-size: 26px; flex-shrink: 0; width: 38px; text-align: center; }
.leaderboard-rank span { font-size: 15px; font-weight: 700; color: var(--text-grey); }
.leaderboard-avatar { width: 46px; height: 46px; border-radius: 10px; background: var(--dark); color: white; font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.leaderboard-info { flex: 1; min-width: 140px; }
.leaderboard-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.leaderboard-info p  { font-size: 12px; color: var(--text-grey); margin-bottom: 5px; }
.leaderboard-subs { display: flex; flex-wrap: wrap; gap: 4px; }
.leaderboard-subs span { background: rgba(235,181,29,0.1); color: #7a5c00; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; border: 1px solid rgba(235,181,29,0.2); }
.leaderboard-stats { display: flex; gap: 18px; flex-shrink: 0; }
.lb-stat { text-align: center; }
.lb-stat h4 { font-size: 17px; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.lb-stat p  { font-size: 11px; color: var(--text-grey); font-weight: 500; }
.leaderboard-actions { flex-shrink: 0; }

/* ===== BIRTHDAY SECTION ===== */
.birthday-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.birthday-card { background: var(--white); border-radius: 14px; padding: 22px 18px; text-align: center; border: 1px solid var(--grey); border-bottom: 3px solid var(--primary); transition: var(--transition); }
.birthday-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.birthday-card.today { background: rgba(235,181,29,0.04); border-color: var(--primary); box-shadow: 0 4px 20px rgba(235,181,29,0.15); }
.birthday-emoji { font-size: 36px; margin-bottom: 11px; }
.birthday-avatar { width: 56px; height: 56px; border-radius: 12px; background: var(--dark); color: white; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 11px; }
.birthday-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.birthday-info p  { font-size: 12px; color: var(--text-grey); margin-bottom: 4px; }

/* ===== HERO SUBSIDIARY CARDS ===== */
.hero-subsidiaries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; max-width: 820px; margin-left: auto; margin-right: auto; }
.hero-sub-card { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: 12px; padding: 16px 11px; text-align: center; color: white; text-decoration: none; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; gap: 9px; cursor: pointer; }
.hero-sub-card:hover { background: rgba(235,181,29,0.2); border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,0.25); }
.hero-sub-icon { font-size: 32px; line-height: 1; }
.hero-sub-info h4 { font-size: 13px; font-weight: 700; margin-bottom: 2px; color: white; -webkit-text-fill-color: white; }
.hero-sub-info p  { font-size: 11px !important; opacity: 0.75; margin: 0 !important; color: white !important; -webkit-text-fill-color: white !important; }

/* ===== EXPENSES ===== */
.expenses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.expense-card { background: var(--white); border-radius: 12px; padding: 18px; border: 1px solid var(--grey); border-left: 3px solid var(--primary); transition: var(--transition); }
.expense-card:hover { box-shadow: var(--shadow-hover); }
.expense-header { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 11px; }
.expense-icon { font-size: 24px; flex-shrink: 0; width: 42px; height: 42px; background: var(--grey-light); border-radius: 8px; border: 1px solid var(--grey); display: flex; align-items: center; justify-content: center; }
.expense-title { flex: 1; }
.expense-title h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.expense-title p  { font-size: 11px; color: var(--text-grey); margin-bottom: 2px; }
.expense-amount   { font-size: 16px; font-weight: 800; color: #dc3545; flex-shrink: 0; white-space: nowrap; }
.expense-desc { font-size: 12px; color: var(--text-grey); line-height: 1.6; margin-bottom: 11px; padding: 9px 12px; background: var(--grey-light); border-radius: 8px; }
.expense-receipt { margin-bottom: 11px; text-align: center; }
.expense-receipt img { max-width: 100%; max-height: 140px; border-radius: 8px; border: 1px solid var(--grey); object-fit: cover; transition: var(--transition); cursor: pointer; }
.expense-receipt img:hover { border-color: var(--primary); transform: scale(1.02); }
.expense-receipt small { display: block; margin-top: 4px; font-size: 11px; color: var(--text-grey); }
.expense-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--grey-light); flex-wrap: wrap; gap: 7px; }

/* ===== LEGAL PAGES ===== */
.legal-doc { max-width: 820px; margin: 0 auto; }
.legal-header { text-align: center; margin-bottom: 38px; padding-bottom: 22px; border-bottom: 2px solid var(--grey-light); }
.legal-header h1   { font-size: 28px; font-weight: 800; margin-bottom: 7px; color: var(--text-dark); }
.legal-header h1 i { color: var(--primary); margin-right: 10px; }
.legal-header p    { color: var(--text-grey); font-size: 13px; }
.legal-content { display: flex; flex-direction: column; gap: 22px; }
.legal-section { background: var(--white); border-radius: 12px; padding: 22px 26px; border: 1px solid var(--grey); border-left: 3px solid var(--primary); }
.legal-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 11px; color: var(--text-dark); }
.legal-section p  { font-size: 13px; color: var(--text-grey); line-height: 1.8; margin-bottom: 9px; }
.legal-list { list-style: none; padding: 0; margin: 9px 0; }
.legal-list li { font-size: 13px; color: var(--text-grey); padding: 5px 0 5px 18px; position: relative; line-height: 1.6; }
.legal-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ===== STAR RATINGS ===== */
.star-rating { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label { font-size: 28px; color: #ddd; cursor: pointer; transition: color 0.2s ease; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--primary); }
.rating-display { display: flex; align-items: center; gap: 4px; }
.rating-star       { color: var(--primary); font-size: 15px; }
.rating-star.empty { color: #ddd; }
.review-card { background: var(--white); border-radius: 12px; padding: 18px; border: 1px solid var(--grey); border-left: 3px solid var(--primary); margin-bottom: 14px; transition: var(--transition); }
.review-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 9px; flex-wrap: wrap; gap: 9px; }
.review-customer { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 38px; height: 38px; border-radius: 8px; background: var(--dark); color: white; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.review-name h4 { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.review-name p  { font-size: 11px; color: var(--text-grey); }
.review-body { font-size: 13px; color: var(--text-grey); line-height: 1.6; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--grey-light); }

/* ===== RATINGS OVERVIEW ===== */
.ratings-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 22px; }
.rating-overview-card { background: var(--white); border-radius: 12px; padding: 22px 18px; text-align: center; border: 1px solid var(--grey); border-bottom: 3px solid var(--primary); transition: var(--transition); }
.rating-overview-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.rating-overview-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 13px; color: var(--text-dark); }
.rating-big          { font-size: 38px; font-weight: 900; margin-bottom: 9px; line-height: 1; }
.rating-stars-display { font-size: 18px; letter-spacing: 2px; }

/* ===== RATE PROMPT BOX ===== */
.rate-prompt-box { display: flex; align-items: center; gap: 18px; background: rgba(235,181,29,0.06); border-radius: 12px; padding: 18px 22px; margin-top: 22px; border: 1px solid rgba(235,181,29,0.25); border-left: 4px solid var(--primary); transition: var(--transition); flex-wrap: wrap; }
.rate-prompt-box:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(235,181,29,0.15); }
.rate-prompt-icon { font-size: 40px; flex-shrink: 0; }
.rate-prompt-content h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: #7a5c00; }
.rate-prompt-content p  { font-size: 12px; color: #7a5c00; opacity: 0.8; margin-bottom: 11px; }

/* ===== DASHBOARD SIDEBAR ===== */
.dashboard-layout { display: flex; min-height: calc(100vh - 70px); position: relative; }

.dashboard-sidebar {
    width: 255px;
    min-width: 255px;
    background: #0d0d0d;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
    z-index: 500;
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.dashboard-sidebar.collapsed { width: 60px; min-width: 60px; }

.sidebar-header { padding: 16px 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: space-between; min-height: 60px; flex-shrink: 0; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; }
.sidebar-brand-icon { width: 34px; height: 34px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; color: var(--navy); }
.sidebar-brand-text { transition: all 0.3s ease; }
.sidebar-brand-text h4 { font-size: 13px; font-weight: 800; color: white; margin-bottom: 1px; letter-spacing: 1px; }
.sidebar-brand-text p  { font-size: 9px; color: rgba(255,255,255,0.4); letter-spacing: 2px; text-transform: uppercase; }
.dashboard-sidebar.collapsed .sidebar-brand-text { display: none; }

.sidebar-toggle { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: white; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; transition: var(--transition); }
.sidebar-toggle:hover { background: rgba(235,181,29,0.2); border-color: var(--primary); }

.sidebar-user { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 10px; overflow: hidden; flex-shrink: 0; }
.sidebar-user-avatar { width: 34px; height: 34px; border-radius: 8px; background: var(--dark); border: 1px solid rgba(235,181,29,0.3); color: white; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.sidebar-user-info { overflow: hidden; transition: all 0.3s ease; }
.sidebar-user-info h4 { font-size: 12px; font-weight: 700; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 1px; }
.sidebar-user-info p  { font-size: 10px; color: rgba(255,255,255,0.4); white-space: nowrap; }
.dashboard-sidebar.collapsed .sidebar-user-info { display: none; }

.sidebar-nav { flex: 1; padding: 10px 0; overflow-y: auto; overflow-x: hidden; }

.sidebar-section-title { font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.25); padding: 8px 16px 4px; white-space: nowrap; overflow: hidden; transition: all 0.3s ease; }
.dashboard-sidebar.collapsed .sidebar-section-title { opacity: 0; height: 0; padding: 0; margin: 0; }

.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: rgba(255,255,255,0.55); text-decoration: none; transition: all 0.2s ease; white-space: nowrap; overflow: hidden; position: relative; font-size: 13px; font-weight: 500; cursor: pointer; border: none; background: none; width: 100%; text-align: left; font-family: 'Poppins', sans-serif; }
.sidebar-link:hover { background: rgba(255,255,255,0.05); color: white; padding-left: 20px; }
.sidebar-link.active { background: rgba(235,181,29,0.12); color: var(--primary); border-left: 2px solid var(--primary); }
.sidebar-link i    { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar-link span { transition: all 0.3s ease; flex: 1; }
.dashboard-sidebar.collapsed .sidebar-link span  { display: none; }
.dashboard-sidebar.collapsed .sidebar-link        { padding: 10px; justify-content: center; }
.dashboard-sidebar.collapsed .sidebar-link:hover  { padding-left: 10px; }
.dashboard-sidebar.collapsed .sidebar-link:hover::after { content: attr(data-tooltip); position: absolute; left: 65px; background: #1a1a1a; border: 1px solid rgba(255,255,255,0.1); color: white; padding: 5px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap; z-index: 9999; pointer-events: none; box-shadow: var(--shadow-hover); }

.sidebar-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 6px 16px; }
.sidebar-footer { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.sidebar-footer .sidebar-link      { padding: 8px 0; color: rgba(255,255,255,0.4); }
.sidebar-footer .sidebar-link:hover { color: #dc3545; background: none; padding-left: 0; }
.dashboard-sidebar.collapsed .sidebar-footer .sidebar-link { justify-content: center; padding: 9px; }

.sidebar-badge { background: #dc3545; color: white; font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 10px; margin-left: auto; flex-shrink: 0; }
.dashboard-sidebar.collapsed .sidebar-badge { display: none; }

.dashboard-main { margin-left: 255px; flex: 1; transition: margin-left 0.3s ease; min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - 70px); }
.dashboard-main.expanded { margin-left: 60px; }
.dashboard-main footer   { margin-top: auto; }

.sidebar-overlay { display: none; position: fixed; top: 70px; left: 0; width: 100%; height: calc(100vh - 70px); background: rgba(0,0,0,0.6); z-index: 499; backdrop-filter: blur(2px); }
.sidebar-overlay.show { display: block; }

.sidebar-mobile-toggle { display: none; position: fixed; top: 80px; left: 10px; z-index: 501; background: var(--primary); color: var(--navy); border: none; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; font-size: 14px; box-shadow: var(--shadow); }

body.dark-mode .dashboard-sidebar { background: #080808; }
body.dark-mode .dashboard-main    { background: #16181f; }

/* ===== GLASSMORPHISM UTILITIES ===== */
.glass-card { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: 14px; box-shadow: var(--glass-shadow); }
.glass-card-dark { background: var(--glass-dark-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-dark-border); border-radius: 14px; box-shadow: var(--glass-shadow); }

/* ===== HOMEPAGE REVIEWS ===== */
.reviews-homepage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.review-homepage-card { background: var(--white); border-radius: 12px; padding: 18px; border: 1px solid var(--grey); border-bottom: 2px solid var(--primary); transition: var(--transition); }
.review-homepage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.review-homepage-header { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.review-homepage-body { font-size: 13px; color: var(--text-grey); line-height: 1.7; font-style: italic; margin-bottom: 9px; padding-top: 9px; border-top: 1px solid var(--grey-light); }

/* ===== SUBSIDIARY HERO BACKGROUNDS ===== */
.homes-hero      { background-color: var(--dark) !important; }
.water-hero      { background-color: var(--navy) !important; }
.fanzone-hero    { background-color: var(--dark) !important; }
.realestate-hero { background-color: var(--navy) !important; }

/* ===== FOOTER LOGIN/LOGOUT SWAP ===== */
.footer-logout-link { display: none; }

/* ===== PROFILE PICTURE UPLOAD ===== */
.profile-pic-upload-wrap { display: flex; align-items: center; gap: 20px; padding: 16px; background: var(--grey-light); border-radius: 12px; border: 1px solid var(--grey); }
.profile-pic-preview { flex-shrink: 0; }
.profile-pic-preview img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); display: block; }
.profile-pic-placeholder { width: 90px; height: 90px; border-radius: 50%; background: var(--dark); color: white; font-size: 34px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 3px solid var(--primary); flex-shrink: 0; }
.profile-pic-upload-info { flex: 1; }

/* ===== HERO SUBSIDIARY LOGO ===== */
.hero-sub-logo { width: 70px; height: 70px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,0.15); padding: 8px; transition: var(--transition); filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.hero-sub-card:hover .hero-sub-logo { transform: scale(1.08); background: rgba(255,255,255,0.25); }

/* ===== NAVBAR MAIN LOGO ===== */
.navbar-main-logo { height: 44px; width: 44px; object-fit: contain; border-radius: 8px; opacity: 0; transform: translateX(-10px); animation: logoFadeIn 0.8s ease 0.3s forwards; flex-shrink: 0; }
@keyframes logoFadeIn { 0% { opacity: 0; transform: translateX(-10px); } 100% { opacity: 1; transform: translateX(0); } }

/* ===== COUNTER ANIMATION ===== */
[data-count] { display: inline-block; transition: all 0.3s ease; }
.stat-item.counted h3 { animation: counterPop 0.3s ease; }
@keyframes counterPop { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ===== SHOWS SLIDESHOW ===== */
.shows-slideshow-wrap { position: relative; max-width: 900px; margin: 0 auto; }
.shows-slideshow { position: relative; overflow: hidden; border-radius: 16px; }
.show-slide { display: none; animation: showFadeIn 0.8s ease; }
.show-slide.active { display: block; }
@keyframes showFadeIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.show-slide-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; overflow: hidden; }
.show-flyer-wrap { position: relative; min-height: 380px; background: rgba(0,0,0,0.3); }
.show-flyer-img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; display: block; }
.show-flyer-placeholder { width: 100%; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); gap: 14px; }
.show-flyer-placeholder i { font-size: 60px; }
.show-flyer-placeholder p { font-size: 14px; }
.show-status-badge { position: absolute; top: 14px; left: 14px; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.show-status-upcoming { background: var(--primary); color: var(--navy); }
.show-status-ongoing  { background: #25D366; color: white; }
.show-status-passed   { background: rgba(255,255,255,0.2); color: white; }
.show-info { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; color: white; }
.show-info h3 { font-size: 24px; font-weight: 800; margin-bottom: 16px; color: var(--primary); }
.show-info .show-date, .show-info .show-time, .show-info .show-venue { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.show-info .show-date i, .show-info .show-time i, .show-info .show-venue i { color: var(--primary); width: 16px; }
.show-info .show-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-top: 12px; }
.shows-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.shows-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.4); }
.shows-dot.active { background: var(--primary); transform: scale(1.3); border-color: var(--primary); }
.shows-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: white; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: var(--transition); z-index: 10; }
.shows-arrow:hover { background: var(--primary); color: var(--navy); border-color: var(--primary); }
.shows-arrow-left  { left: -20px; }
.shows-arrow-right { right: -20px; }

/* ===== FLOATING WHATSAPP CHAT ===== */
.chat-launcher { position: fixed; bottom: 28px; right: 90px; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-bubble-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--navy); border: none; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(235,181,29,0.4); transition: all 0.3s ease; position: relative; }
.chat-bubble-btn:hover { transform: scale(1.08); }
.chat-bubble-btn .chat-unread { position: absolute; top: -4px; right: -4px; background: #dc3545; color: white; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
.chat-popup-msg { background: white; border-radius: 12px; padding: 12px 16px; max-width: 230px; font-size: 13px; color: var(--text-dark); box-shadow: var(--shadow-hover); border: 1px solid var(--grey); display: none; animation: chatPopIn 0.4s ease; position: relative; }
.chat-popup-msg::after { content: ''; position: absolute; bottom: -8px; right: 20px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid white; }
.chat-popup-msg.show { display: block; }
@keyframes chatPopIn { from { opacity: 0; transform: translateY(10px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.chat-window { position: fixed; bottom: 96px; right: 90px; width: 320px; background: white; border-radius: 16px; border: 1px solid var(--grey); box-shadow: 0 10px 40px rgba(0,0,0,0.15); z-index: 9991; display: none; flex-direction: column; overflow: hidden; animation: chatWinIn 0.3s ease; }
.chat-window.open { display: flex; }
@keyframes chatWinIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.chat-win-header { background: var(--primary); color: var(--navy); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat-win-header h4 { font-size: 14px; font-weight: 700; margin: 0; }
.chat-win-header p  { font-size: 11px; margin: 2px 0 0; opacity: 0.8; }
.chat-win-close     { background: none; border: none; font-size: 18px; color: var(--navy); cursor: pointer; }
.chat-win-messages { flex: 1; padding: 14px; max-height: 260px; overflow-y: auto; background: #f9fafb; display: flex; flex-direction: column; gap: 10px; }
.chat-bot-msg { background: var(--navy); color: white; border-radius: 12px 12px 12px 2px; padding: 10px 13px; font-size: 13px; max-width: 82%; align-self: flex-start; line-height: 1.5; }
.chat-user-msg { background: var(--primary); color: var(--navy); border-radius: 12px 12px 2px 12px; padding: 10px 13px; font-size: 13px; max-width: 82%; align-self: flex-end; font-weight: 600; line-height: 1.5; }
.chat-win-input { padding: 12px; border-top: 1px solid var(--grey); display: flex; gap: 8px; background: white; }
.chat-win-input input { flex: 1; padding: 9px 13px; border: 1.5px solid var(--grey); border-radius: 20px; font-family: 'Poppins', sans-serif; font-size: 13px; outline: none; }
.chat-win-input input:focus { border-color: var(--primary); }
.chat-win-input button { width: 38px; height: 38px; background: var(--primary); color: var(--navy); border: none; border-radius: 50%; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.chat-win-input button:hover { background: var(--primary-dark); }
.chat-wa-btn { display: flex; align-items: center; gap: 8px; background: #25D366; color: white; padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; margin: 10px 14px; justify-content: center; transition: var(--transition); }
.chat-wa-btn:hover { background: #128C7E; }


/* ============================================================
   COMPREHENSIVE MOBILE FIXES — ONCE AND FOR ALL
   Covers: Auth pages, Background images, Hero title,
   Tabs, Grids, Tables, Dashboard, Sidebar, All elements
============================================================ */

/* ===== TABLET (max 960px) ===== */
@media (max-width: 960px) {

    /* Body & backgrounds */
    body      { background-attachment: scroll !important; }
    .sub-hero { background-attachment: scroll !important; }

    /* Hero */
    .hero-content h1     { font-size: 22px !important; }
    .hero-content p      { font-size: 13px !important; }
    .sub-hero-content h1 { font-size: 20px !important; }
    .section-title h2    { font-size: 22px !important; }

    /* Subsidiary cards — 2 columns on tablet */
    .hero-subsidiaries { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }

    /* Grids */
    .two-col-grid { grid-template-columns: 1fr !important; }
    .charts-grid  { grid-template-columns: 1fr !important; }
    .form-row     { grid-template-columns: 1fr !important; }

    /* CEO section */
    .ceo-wrapper { grid-template-columns: 1fr !important; text-align: center !important; }

    /* Dashboard */
    .dashboard-stats { grid-template-columns: repeat(2, 1fr) !important; }

    /* Sidebar — slide off canvas */
    .dashboard-sidebar { left: -260px !important; width: 255px !important; min-width: 255px !important; }
    .dashboard-sidebar.mobile-open { left: 0 !important; }
    .dashboard-sidebar.collapsed   { left: -260px !important; width: 255px !important; }
    .dashboard-main { margin-left: 0 !important; }
    .sidebar-brand-text, .sidebar-user-info, .sidebar-link span, .sidebar-section-title { display: block !important; opacity: 1 !important; height: auto !important; }
    .sidebar-link { padding: 10px 16px !important; justify-content: flex-start !important; }
    .sidebar-mobile-toggle { display: flex !important; }

    /* Tabs — horizontal scroll instead of wrapping */
    .dash-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        padding-bottom: 8px !important;
        scrollbar-width: none;
    }
    .dash-tabs::-webkit-scrollbar { display: none; }
    .tab-btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        width: auto !important;
        text-align: center !important;
    }

    /* Shows slideshow */
    .show-slide-inner  { grid-template-columns: 1fr !important; }
    .shows-arrow-left  { left: 5px !important; }
    .shows-arrow-right { right: 5px !important; }

    /* Float chat */
    #waFloat { bottom: 18px !important; left: 14px !important; }
    .scroll-top-btn { bottom: 18px !important; right: 14px !important; }
}

/* ===== MOBILE (max 600px) ===== */
@media (max-width: 600px) {

    /* Container */
    .container { width: 96% !important; padding: 0 8px !important; }

    /* ── AUTH PAGES — FULL SCREEN FIX ── */
    .auth-section  {
        padding: 0 !important;
        align-items: flex-start !important;
        min-height: 100vh !important;
    }
    .auth-wrapper  {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    .auth-card {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-top: 3px solid var(--primary) !important;
        padding: 28px 18px !important;
        min-height: 100vh !important;
        width: 100% !important;
    }
    .auth-info { display: none !important; }
    /* ─────────────────────────────────── */

    /* Hero */
    .hero-content h1     { font-size: 18px !important; }
    .hero-content p      { font-size: 12px !important; }
    .sub-hero-content h1 { font-size: 17px !important; }
    .sub-hero-content p  { font-size: 12px !important; }
    .hero-buttons        { flex-direction: column !important; align-items: stretch !important; }
    .hero-buttons .btn   { width: 100% !important; text-align: center !important; }

    /* Subsidiary cards — 2 columns stays */
    .hero-subsidiaries { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
    .hero-sub-info h4  { font-size: 11px !important; }

    /* Dashboard stats — single column */
    .dashboard-stats { grid-template-columns: 1fr !important; }

    /* Dashboard header — stack */
    .dashboard-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    .dashboard-header .btn { width: 100% !important; text-align: center !important; }

    /* ALL grids — single column */
    .cards-grid,
    .flats-grid,
    .products-grid,
    .properties-grid,
    .menu-grid,
    .features-grid,
    .why-grid,
    .steps-grid,
    .birthday-grid,
    .expenses-grid,
    .stock-grid,
    .ratings-overview-grid,
    .notes-grid,
    .manager-performance-grid,
    .footer-grid { grid-template-columns: 1fr !important; }

    /* Charts — single column */
    .charts-grid { grid-template-columns: 1fr !important; }

    /* Accounts grid — single column */
    .accounts-grid { grid-template-columns: 1fr !important; max-width: 100% !important; }

    /* Payment proof — stack vertically */
    .payment-proof-box { flex-direction: column !important; }
    .payment-proof-icon { text-align: center !important; }

    /* Tables — horizontal scroll */
    .table-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
    .dash-table { min-width: 560px !important; }

    /* Tabs — horizontal scroll */
    .dash-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }
    .dash-tabs::-webkit-scrollbar { display: none !important; }
    .tab-btn { white-space: nowrap !important; flex-shrink: 0 !important; width: auto !important; }

    /* Menu tabs */
    .menu-tabs { flex-wrap: nowrap !important; overflow-x: auto !important; }
    .menu-tab-btn { flex-shrink: 0 !important; white-space: nowrap !important; }

    /* Buttons */
    .btn { padding: 11px 18px !important; font-size: 13px !important; }

    /* CEO section */
    .ceo-image     { float: none !important; margin: 0 auto 18px !important; text-align: center !important; }
    .ceo-image img { width: 140px !important; height: 140px !important; }
    .ceo-tags      { justify-content: center !important; }
    .ceo-social    { justify-content: center !important; }

    /* Shows slideshow */
    .show-flyer-wrap  { min-height: 220px !important; }
    .show-flyer-img   { min-height: 220px !important; }
    .show-info        { padding: 18px !important; }
    .show-info h3     { font-size: 16px !important; }
    .show-info .show-date,
    .show-info .show-time,
    .show-info .show-venue { font-size: 12px !important; }

    /* Toast notifications — full width */
    .toast-container { right: 8px !important; left: 8px !important; }
    .toast { min-width: unset !important; max-width: 100% !important; }

    /* Rate prompt box — stack */
    .rate-prompt-box { flex-direction: column !important; align-items: flex-start !important; }

    /* Leaderboard — stack */
    .leaderboard-item  { flex-wrap: wrap !important; }
    .leaderboard-stats { width: 100% !important; justify-content: flex-start !important; }

    /* Section padding */
    .section-padding { padding: 44px 0 !important; }

    /* Form row — single column */
    .form-row { grid-template-columns: 1fr !important; }

    /* Logo text smaller */
    .logo-main-type { font-size: 14px !important; }
}

/* ===== VERY SMALL PHONES (max 380px) ===== */
@media (max-width: 380px) {
    .hero-content h1   { font-size: 16px !important; }
    .hero-sub-info h4  { font-size: 10px !important; }
    .hero-sub-logo     { width: 44px !important; height: 44px !important; }
    .section-title h2  { font-size: 18px !important; }
    .auth-card         { padding: 20px 14px !important; }
    .navbar            { padding: 10px 12px !important; }
    .logo-main-type    { font-size: 13px !important; }
    .sub-hero-content h1 { font-size: 15px !important; }
}

/* ===== IOS SAFARI SPECIFIC FIXES ===== */
@supports (-webkit-touch-callout: none) {
    /* Fix background-attachment: fixed — breaks on iOS */
    body      { background-attachment: scroll !important; }
    .sub-hero { background-attachment: scroll !important; }
    .hero     { background-attachment: scroll !important; }

    /* Fix 100vh on iOS address bar */
    .auth-section  { min-height: -webkit-fill-available !important; }
    .auth-card     { min-height: -webkit-fill-available !important; }
}

/* ============================================================
   WATER MODULE — CHECKOUT PAYMENT TABS
============================================================ */
.payment-tabs-wrap { display: flex; flex-direction: column; }
.pay-tab-buttons { display: flex; gap: 10px; margin-bottom: 20px; }
.pay-tab-btn {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid var(--grey);
    background: var(--white);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}
.pay-tab-btn:hover,
.pay-tab-btn.active { background: var(--primary); color: var(--navy); border-color: var(--primary); }
.pay-tab-content { display: none; }
.pay-tab-content.active { display: block; }

/* ===== ORDER SUMMARY ROWS (checkout) ===== */
.order-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.order-summary-row.total {
    border-top: 1px solid var(--grey-light);
    margin-top: 8px;
    padding-top: 10px;
    font-size: 16px;
    font-weight: 700;
}
.order-summary-row.total .amount { color: var(--primary); font-size: 18px; }

/* ===== CASH PAYMENT INFO BOX ===== */
.cash-info-box {
    background: rgba(235,181,29,0.08);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
}
.cash-info-box p { margin-bottom: 6px; }
.cash-info-box p:last-child { margin-bottom: 0; }

/* ============================================================
   FANZONE / WATER — RESERVATION / ORDER "CLOSED" STATE
============================================================ */
.closed-state-box { text-align: center; padding: 30px 10px; }
.closed-state-icon { font-size: 40px; margin-bottom: 10px; }
.closed-state-box h4 { margin-bottom: 8px; }
.closed-state-box p { color: var(--text-grey); font-size: 14px; }

/* ===== "CLOSED" pill on tab buttons ===== */
.tab-closed-pill {
    font-size: 10px;
    background: #dc3545;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* ===== Disabled submit button state (replaces inline opacity/cursor JS) ===== */
.btn-disabled { opacity: 0.5 !important; cursor: not-allowed !important; pointer-events: none; }

/* ============================================================
   DISTRIBUTOR ONBOARDING (water manager)
============================================================ */
.distributor-card { background: var(--grey-light); border-radius: 10px; padding: 18px; border: 1px solid var(--grey); border-left: 3px solid var(--primary); }
.distributor-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.distributor-card p { font-size: 12px; color: var(--text-grey); margin-bottom: 3px; }
.distributor-rate-form { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.distributor-rate-form input[type="number"] { width: 90px; padding: 6px 10px; border: 1.5px solid var(--grey); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 12px; }

/* ============================================================
   TOGGLE SWITCH (manager controls — bottle water, reservations)
============================================================ */
.toggle-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--grey-light); border-radius: 10px; border: 1px solid var(--grey); }
.toggle-switch-label { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.toggle-switch-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.toggle-switch-status.is-on  { background: rgba(235,181,29,0.15); color: #7a5c00; }
.toggle-switch-status.is-off { background: #fde8ea; color: #721c24; }

/* ============================================================
   WATER MODULE — ORDER FORM HELPERS
============================================================ */
.info-notice-box {
    background: rgba(235,181,29,0.08);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
}
.field-hint-error {
    font-size: 12px;
    color: #dc3545;
    display: none;
    margin-top: 4px;
}
.how-it-works-list { font-size: 14px; line-height: 1.8; color: var(--text-grey); }
.how-it-works-list p { margin-bottom: 6px; }
.btn-block { width: 100%; padding: 14px; }

/* ============================================================
   WATER MODULE — CHECKOUT PAYMENT TABS
============================================================ */
.payment-tabs-wrap { display: flex; flex-direction: column; }
.pay-tab-buttons { display: flex; gap: 10px; margin-bottom: 20px; }
.pay-tab-btn {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid var(--grey);
    background: var(--white);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}
.pay-tab-btn:hover,
.pay-tab-btn.active { background: var(--primary); color: var(--navy); border-color: var(--primary); }
.pay-tab-content { display: none; }
.pay-tab-content.active { display: block; }

.order-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.order-summary-row.total {
    border-top: 1px solid var(--grey-light);
    margin-top: 8px;
    padding-top: 10px;
    font-size: 16px;
    font-weight: 700;
}
.order-summary-row.total .amount { color: var(--primary); font-size: 18px; }

.cash-info-box {
    background: rgba(235,181,29,0.08);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
}
.cash-info-box p { margin-bottom: 6px; }
.cash-info-box p:last-child { margin-bottom: 0; }

/* ============================================================
   RESERVATION / ORDER "CLOSED" STATE (fanzone + water)
============================================================ */
.closed-state-box { text-align: center; padding: 30px 10px; }
.closed-state-icon { font-size: 40px; margin-bottom: 10px; }
.closed-state-box h4 { margin-bottom: 8px; }
.closed-state-box p { color: var(--text-grey); font-size: 14px; }
.tab-closed-pill {
    font-size: 10px;
    background: #dc3545;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* ===== Disabled submit button state ===== */
.btn-disabled { opacity: 0.5 !important; cursor: not-allowed !important; pointer-events: none; }

/* ============================================================
   DISTRIBUTOR ONBOARDING (water manager)
============================================================ */
.distributor-card { background: var(--grey-light); border-radius: 10px; padding: 18px; border: 1px solid var(--grey); border-left: 3px solid var(--primary); }
.distributor-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.distributor-card p { font-size: 12px; color: var(--text-grey); margin-bottom: 3px; }
.distributor-rate-form { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.distributor-rate-form input[type="number"] { width: 90px; padding: 6px 10px; border: 1.5px solid var(--grey); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 12px; }

/* ============================================================
   TOGGLE SWITCH ROW (manager controls — bottle water, reservations)
============================================================ */
.toggle-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--grey-light); border-radius: 10px; border: 1px solid var(--grey); }
.toggle-switch-label { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.toggle-switch-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.toggle-switch-status.is-on  { background: rgba(235,181,29,0.15); color: #7a5c00; }
.toggle-switch-status.is-off { background: #fde8ea; color: #721c24; }

/* ============================================================
   WATER MANAGER — DISTRIBUTOR GRID & LEDGER
============================================================ */
.distributor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.filter-bar select,
.filter-bar input { padding: 8px 12px; border: 1.5px solid var(--grey); border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 13px; background: var(--white); color: var(--text-dark); }

.ledger-summary-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.ledger-summary-item { background: var(--white); border-radius: 10px; padding: 16px 18px; border: 1px solid var(--grey); border-left: 3px solid var(--primary); }
.ledger-summary-item.outstanding { border-left-color: #dc3545; }
.ledger-summary-item h4 { font-size: 12px; color: var(--text-grey); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.ledger-summary-item p { font-size: 22px; font-weight: 800; color: var(--dark); }
.ledger-summary-item.outstanding p { color: #dc3545; }

/* Hide non-essential UI when printing the ledger */
@media print {
    .dashboard-sidebar, .sidebar-mobile-toggle, header, footer,
    .dashboard-header, .filter-bar, .btn, .btn-sm { display: none !important; }
    .dashboard-main { margin-left: 0 !important; }
    .dash-card { border: none !important; box-shadow: none !important; }
}

/* ============================================================
   CHECKOUT — EDIT ORDER PANEL
============================================================ */
.edit-order-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--grey-light);
}

/* ============================================================
   LEDGER — THIRD SUMMARY CARD (total income, distributor-neutral tone)
============================================================ */
.ledger-summary-item.total-income { border-left-color: var(--dark); }
.ledger-summary-item.total-income p { color: var(--dark); }
/* ============================================================
   WATER MANAGER — DISTRIBUTOR REASSIGN DROPDOWN
============================================================ */
.reassign-select {
    font-size: 11px !important;
    padding: 4px 22px 4px 8px !important;
    min-width: 110px !important;
    margin-top: 6px;
}