* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
.home {
    display: flex;
    align-items: center;
}
body {
    background: #ffffff;
    color: #333;
}
/* default icon styling in header; visible except hamburger hidden by separate rule */
header ion-icon {
    font-size:40px;
    cursor: pointer;
    margin-right: 20px;
    display: inline-block;
}
@media (min-width: 781px) {
    /* hide hamburger icon on desktop */
    header .hamburger ion-icon {
        display: none;
    }
}
/* Desktop mode */
@media (min-width: 781px) {

    .hero,
    .cards,
    .service-area,
    footer {
        margin-left: 250px;   /* same as panel width */
    }

}
header {
    background: #ffffff;
    /* left padding provides room for fixed sidebar */
    padding: 20px 20px;
    display: flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: #333;
    height:70px;
    width: 100%;
    left: 0;
    z-index: 1100;
    border-bottom: 1px solid #eee;
}

@media (min-width: 781px) {
    header {
        left: 250px;
        width: calc(100% - 250px);
    }
}
.close-icon {
    display: none !important;
}
/* prevent horizontal scroll when sidebar is open */
body {
    overflow-x: hidden;
}

/* ensure standard buttons inside header have right margin only */
header button {
    margin: 0 5px 0 0;
    padding: 12px 30px;
    border: none;
    background: #838383;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* place hamburger icon at left edge */
header .hamburger {
    margin-left: 0;
    padding: 0;
    /* could also be absolute if desired
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    */
}

/* push controls group to the right */
header .controls {
    margin-left: auto;
    margin-right: 10px;
    display: flex;
    gap: 8px;
}

/* base hover for generic header buttons (not controls) */
header button:hover {
    background: #e8e8e8;
    color: #353535;
    transform: scale(1.05);
}

/* buttons inside controls get their own look */
header .controls button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f5f7fa;
    border: 1px solid #e1e4e8;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #333;
    transition: background 0.2s, transform 0.2s;
}
header .controls button:hover {
    background: #e1e4e8;
    transform: translateY(-1px);
}
header .controls button ion-icon {
    font-size: 18px;
    color: #5c6cff;
}


/* simplified hamburger hover: small indicator only */
header .hamburger {
    position: relative; /* for pseudo-element */
}
header .hamburger:hover {
    color: #ffca28;      /* color change only */
    transform: none;
    background: none;    /* remove previous background */
    box-shadow: none;
}

/* small dot indicator on right side */
header .hamburger::after {
    display: none;
}

/* remove rotate animation keyframes */

header a {
    color: #333;
    font-size: 30px;
    text-decoration: none;
    margin-left: 5px;
    font-weight: 600;
}

.hero {
    padding: 80px 40px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-top: 20px;
    margin-bottom: 20px;
}

.hero p {
    color: #666;
    max-width: 600px;
    margin: auto;
}

.btn {
    text-align: center;
    margin-top: 25px;
    padding: 12px 30px;
    border: none;
    background: #838383;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn:hover {
    background: #e8e8e8;
    color: #353535;
    transform: scale(1.05);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
}

ion-icon {
    font-size: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.service-area{padding:20px}
.service-options{display:flex;gap:20px;justify-content:center;align-items:center;margin-top:12px}
.service-options{display:flex;gap:20px;justify-content:center;align-items:center;margin-top:12px;flex-wrap:wrap}
.service-card{display:inline-flex;align-items:center;gap:12px;padding:10px 16px;border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.06);cursor:pointer;border:1px solid #eee;min-width:140px;color:inherit;text-decoration:none}
.service-card ion-icon{font-size:28px}
.service-card.youtube ion-icon{color:#FF0000}
.service-card.instagram ion-icon{color:#C13584}
.service-card.facebook ion-icon{color:#1877F2}
.service-card.telegram ion-icon{color:#0088cc}
.service-card .label{font-weight:600}
.service-card:focus,.service-card:hover{outline:0;transform:translateY(-3px);box-shadow:0 6px 18px rgba(0,0,0,.08)}


.service-option-button .details h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    display: block;
}

.service-option-button .details {
    display: flex;
    flex-direction: column;
}

/* FIX SERVICE OPTIONS VISIBILITY */
.service-option-button {
    background: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
}

.service-option-button .details h3 {
    display: block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin-bottom: 4px;
}

.service-option-button .details p {
    color: #666 !important;
}

.popup {
    background: rgba(0,0,0,0.6);
}

.popup-content {
    background: #fff !important;
    color: #222 !important;
    opacity: 1 !important;
}

/* FIX POPUP SCROLL */
.popup-content {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden; /* remove horizontal scrollbar */
}
/* keep previous popup section above */
/* existing popup style unchanged */
.popup{width:100%;height:100%;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center;z-index:3000}
.popup[aria-hidden="true"]{display:none}

.popup-content {
    position: relative; /* For positioning child elements like the close icon */
    background: white;
    padding: 20px 60px;
    border-radius: 10px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .popup-content {
        padding: 25px 20px !important;
        width: 95%;
    }
}

/* specialized help popup styling */
.popup-content.help {
    max-width: 90vw;
    width: 380px;
    padding: 30px 40px;
    border-radius: 14px;
    position: relative;
    text-align: left;
}

/* Generic Popup Close Icon */
.close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    z-index: 10;
}
.close-icon:hover {
    background-color: #f0f0f0;
    color: #333;
}
.close-icon.close-icon-sticky {
    position: sticky;
    float: right;
}

.popup-content.help h2 {
    margin-top: 0;
    text-align: center;
}
.popup-content.help p {
    margin: 0 0 16px;
    line-height: 1.4;
}
.popup-content.help a {
    color: #007BFF;
    text-decoration: none;
    font-weight: 600;
}
.popup-content.help a:hover {
    text-decoration: underline;
}
/* Make help menu buttons white instead of the default grey */
.popup-content.help .action-card {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}
.popup-content.help .action-card:hover {
    border-color: #5c6cff;
    box-shadow: 0 8px 20px rgba(92, 108, 255, 0.15);
}

/* Layout for sidebar + content to match HTML classes */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: #ffffff;
    color: #333;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: auto;
    z-index: 2000; /* ensure sidebar is above header and content */
    border-right: 1px solid #eee;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    height: 30px;
}
.brand a { color: #333; text-decoration:none }
.brand img { height: 30px; margin-right: 8px;}
.nav-list { list-style: none; margin: 6px 0 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.nav-list li a { display:flex; align-items:center; gap:10px; padding:10px 12px; color:#555; text-decoration:none; border-radius:8px; }
.nav-list li a:hover, .nav-list li a.active { background:#f0f7ff; color:#5c6cff; }
.section-title { margin-top:12px; margin-bottom:6px; font-size:12px; color:#9a9a9a; padding-left:4px }

/* Topbar no longer offset; header handles spacing via padding */
.topbar { margin-left: 0; }
.content { margin-left: 250px; padding: 90px 28px 40px; min-height: 100vh; }

/* Hamburger button (hidden on desktop) */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: #333;
    font-size: 26px;
    cursor: pointer;
    margin-left: 0;
}

/* Sidebar active state for mobile */
.sidebar { transition: left 0.25s ease; }
.sidebar.active { left: 0; }

@media (max-width: 700px) {
    .sidebar { left: -280px; z-index: 2000; }
    .hamburger { display: inline-block; }
    .topbar { margin-left: 0 }
    .content { margin-left: 0; padding: 90px 16px; }
}

/* Hero panel matching HTML classes */
.hero-panel { display:flex; gap:20px; align-items:center; justify-content:space-between; background: linear-gradient(90deg,#ffffff,#f8fbff); padding:28px; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,0.05); }
.hero-panel .text { flex:1 }
.hero-panel .hero-visual { width:220px; height:140px; background: linear-gradient(135deg,#7b61ff,#4ad7ff); border-radius:12px }

/* Dashboard grid and stat cards */
.dashboard-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; margin-top:24px }
.stat-card { background:#fff; padding:18px; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,0.06); }
.stat-chart { height:60px; background: linear-gradient(90deg,#f0f4ff,#ffffff); border-radius:8px }

/* Specific grid layout for services page */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.orders-overview { background:#fff; padding:18px; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,0.06); }
.orders-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px }

.cta { padding:12px 22px; background:#5c6cff; color:white; border-radius:10px; border:none; cursor:pointer }

/* slide-in login/register panel overlay */
.login-overlay, .register-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1200;
}
.login-overlay.active, .register-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-panel, .register-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 80%;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 16px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.login-overlay.active .login-panel,
.register-overlay.active .register-panel {
    transform: translateX(0);
}

.login-panel h2,
.register-panel h2 {
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: #333;
}

.login-panel .form-group,
.register-panel .form-group {
    margin-bottom: 14px;
}
.login-panel .form-group label,
.register-panel .form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #555;
}
.login-panel .form-group input,
.register-panel .form-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.login-panel .login-submit,
.register-panel .register-submit {
    margin-top: 8px;
    padding: 10px 0;
    background: #838383;
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}
.login-panel .login-submit:hover,
.register-panel .register-submit:hover {
    background: #666;
}

.login-panel .social-login,
.register-panel .social-login {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.login-panel .social-login .social,
.register-panel .social-login .social {
    flex: 1;
    padding: 8px 0;
    background: #e8e8e8;
    border: none;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.login-panel .register-text,
.register-panel .login-text {
    margin-top: auto;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
}
.login-panel .register-text a,
.register-panel .login-text a {
    color: #838383;
    text-decoration: none;
    font-weight: 600;
}

/* close button inside panel */
.login-panel .close-btn,
.register-panel .close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #888;
}

/* Responsive adjustments */
@media (max-width: 1000px) { .dashboard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
    .sidebar { left: -280px; }
    .panel{ left:-270px }
    .content { margin-left: 0; padding: 90px 16px; }
    .topbar { margin-left: 0 }
    .dashboard-grid { grid-template-columns: 1fr }
}
.popup-content h2 {
    margin-bottom: 20px;
}

.popup-content button {
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-content button:hover {
    background: #555;
}

.popup-content a {
    display: inline-block;
    margin-top: 15px;
    color: #007BFF;
    text-decoration: none;
}

.profile-card {
    max-width: 800px;
    margin: auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.profile-header-content {
    flex: 1;
    min-width: 0;   /* prevents overflow bugs */
}
.profile-header p {
    margin-top: 6px;
    font-size: 14px;
    color: #666;
}



@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

}

.profile-avatar ion-icon {
    font-size: 120px;
    color: #e0e0e0;
}

/* Fix size for the camera icon inside the edit button */
.edit-avatar ion-icon {
    font-size: 20px;
    color: #5c6cff;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 20px;
    margin-top: 30px;
}

.detail-box {
    background: #f7f9ff;
    padding: 20px;
    border-radius: 12px;
}

.detail-box h4 {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.detail-box p {
    font-weight: 600;
    font-size: 16px;
}

.logout-btn {
    background: #ff4d4d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.logout-btn:hover {
    background: #e60000;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.auth-btn {
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.login-btn {
    background: #838383;
    color: #fff;
}

.login-btn:hover {
    background: #6b6b6b;
}

.register-btn {
    background: #5c6cff;
    color: #fff;
}

.register-btn:hover {
    background: #4a59e0;
}

.profile-card {
    position: relative;
    background: #fff;
    max-width: 500px;
    margin: auto;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.profile-header {
    text-align: center;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;   /* 🔥 THIS FIXES SQUEEZING */
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.edit-avatar {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    background: #5c6cff;
    border-radius: 50%;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-name-section {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.edit-name {
    background: none;
    border: none;
    cursor: pointer;
}

.profile-details {
    margin-top: 25px;
}

.detail-box {
    padding: 12px;
    background: #f5f7fa;
    border-radius: 12px;
    margin-bottom: 12px;
}

.logout-btn {
    background: #ff4d4f;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
}


.left-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f5f7fa;
    border: 1px solid #e1e4e8;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.header-user:hover {
    background: #e1e4e8;
    transform: translateY(-1px);
}

.header-user ion-icon {
    font-size: 18px;
    color: #5c6cff;
}

/* Container for dynamic auth content to ensure alignment */
#headerAuthArea {
    display: flex;
    align-items: center;
}

.get-started-btn {
    padding: 6px 18px;
    border-radius: 20px;
    background: #5c6cff;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.get-started-btn:hover {
    background: #4a59e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(92, 108, 255, 0.3);
}

/* Specific override for service popup to fix overflow and spacing */
.popup-content.service-content {
    width: 600px;
    max-width: 90%;
    padding: 30px 25px;
    position: relative;
}

/* Service Popup Styles */
.service-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}
@media (max-width: 600px) {
    .service-options-grid {
        grid-template-columns: 1fr;
    }
}
.service-opt-btn {
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #333;
}
.service-opt-btn:hover {
    background: #5c6cff;
    color: white;
    border-color: #5c6cff;
    box-shadow: 0 6px 15px rgba(92, 108, 255, 0.3);
}
.service-opt-btn ion-icon {
    font-size: 1.2rem;
    color: #5c6cff;
}
.service-opt-btn:hover ion-icon {
    color: white;
}

/* New Professional Service Option Buttons */
.service-option-button {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px;
    margin: 0;
    text-align: left;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.service-option-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #5c6cff;
}

.service-option-button .icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-option-button .icon-wrapper ion-icon {
    font-size: 24px;
    margin: 0;
}

.service-option-button .details h3 {
    font-size: 1rem;
    margin: 0 0 2px 0;
    font-weight: 600;
    color: #333;
}

.service-option-button .details p {
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.3;
    color: #888;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}
.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}
.form-input:focus {
    border-color: #5c6cff;
}

/* Settings Icon Button */
.settings-icon-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.settings-icon-btn:hover {
    background: #f0f0f0;
}
.settings-icon-btn ion-icon {
    font-size: 22px;
    color: #666;
}

/* Settings Popup Styling */
.popup-content.settings-content {
    width: 450px;
    max-width: 95%;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    border-radius: 16px;
    overflow: hidden;
    margin: auto;
}
.settings-header {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    z-index: 10;
}
.settings-header h2 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.settings-body {
    padding: 0 25px 25px;
    overflow-y: auto;
    background: #fff;
}
.settings-category { margin-top: 25px; }
.settings-category h3 { font-size: 0.75rem; text-transform: uppercase; color: #999; margin-bottom: 10px; font-weight: 600; letter-spacing: 0.5px; }
.setting-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f7f7f7; font-size: 0.95rem; color: #333; cursor: pointer; transition: 0.2s; }
.setting-item:hover { color: #5c6cff; }
.setting-item ion-icon { font-size: 1.1rem; color: #ccc; }
.setting-item:hover ion-icon { color: #5c6cff; }
.setting-item input[type="checkbox"] { accent-color: #5c6cff; width: 18px; height: 18px; cursor: pointer; }
.setting-item.danger:hover { background: #fff5f5; padding-left:5px; padding-right:5px; border-radius:4px; }
.setting-item.danger ion-icon { color: #ff4d4f; }

/* Dark Mode Overrides */
body.dark-mode { background: #121212; color: #e0e0e0; }

/* Dark Mode Header & Sidebar */
body.dark-mode header {
    background: #1e1e1e;
    border-bottom: 1px solid #333;
    color: #fff;
}
body.dark-mode .sidebar {
    background: #1e1e1e;
    border-right: 1px solid #333;
    color: #e0e0e0;
}
body.dark-mode .brand a { color: #fff; }
body.dark-mode .nav-list li a { color: #cfcfcf; }
body.dark-mode .nav-list li a:hover, body.dark-mode .nav-list li a.active {
body.dark-mode .brand img {
    filter: brightness(0) invert(1); /* Invert to white in dark mode */
}

    background: #333;
    color: #fff;
}
body.dark-mode header .controls button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}
body.dark-mode header .controls button:hover {
    background: rgba(255,255,255,0.2);
}
body.dark-mode header .controls button ion-icon { color: #fff; }
body.dark-mode .header-user {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
body.dark-mode .header-user:hover { background: rgba(255,255,255,0.2); }
body.dark-mode .header-user ion-icon { color: #fff; }
body.dark-mode .hamburger { color: #fff; }

/* Dark Mode Containers & Cards */
body.dark-mode .profile-card,
body.dark-mode .settings-content,
body.dark-mode .settings-header,
body.dark-mode .settings-body,
body.dark-mode .detail-box,
body.dark-mode .stat-card,
body.dark-mode .orders-overview,
body.dark-mode .popup-content,
body.dark-mode .login-panel,
body.dark-mode .register-panel,
body.dark-mode .service-opt-btn {
    background: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Dark Mode Text & Elements */
body.dark-mode .setting-item { border-bottom-color: #333; color: #ccc; }
body.dark-mode .settings-header { border-bottom-color: #333; }
body.dark-mode .settings-icon-btn:hover { background: #333; }
body.dark-mode .settings-icon-btn ion-icon { color: #fff; }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode strong { color: #fff; }
body.dark-mode p, body.dark-mode small, body.dark-mode .label { color: #bbb; }
body.dark-mode .hero-panel { background: linear-gradient(90deg, #1e1e1e, #252525); border: 1px solid #333; }
body.dark-mode .stat-chart { background: linear-gradient(90deg, #2c2c2c, #333); }
body.dark-mode .close-btn { color: #fff; }

/* Dark Mode Inputs */
body.dark-mode input, body.dark-mode .form-input {
    background: #2c2c2c;
    border: 1px solid #444;
    color: #fff;
}
body.dark-mode input:focus, body.dark-mode .form-input:focus { border-color: #5c6cff; }

/* Dark Mode for new close icon */
body.dark-mode .close-icon {
    color: #aaa;
}
body.dark-mode .close-icon:hover {
    background-color: #333;
    color: #fff;
}

/* Restore hover for service buttons in dark mode */
body.dark-mode .service-opt-btn:hover {
    background: #5c6cff;
    border-color: #5c6cff;
    color: white;
}
/* Dark mode for new service option buttons */
body.dark-mode .service-option-button {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: #e0e0e0;
}

body.dark-mode .service-option-button:hover {
    border-color: #5c6cff;
}

body.dark-mode .service-option-button .details h3 {
    color: #e0e0e0;
}

body.dark-mode .service-option-button .details p {
    color: #aaa;
}

/* Compact View Overrides */
body.compact-view .content { padding-top: 70px; }
body.compact-view .profile-card { padding: 20px; }
body.compact-view .setting-item { padding: 8px 0; }

/* Balance Page Styles */
.balance-card {
    background: linear-gradient(135deg, #5c6cff 0%, #8c52ff 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(92, 108, 255, 0.3);
    margin-bottom: 30px;
}
.balance-amount { font-size: 2.5rem; font-weight: 700; margin: 10px 0 20px; }
.balance-actions { display: flex; gap: 15px; justify-content: center; }
.balance-btn {
    padding: 10px 24px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}
.balance-btn:hover { background: white; color: #5c6cff; }

.transaction-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.transaction-table th { text-align: left; padding: 12px; color: #888; font-size: 0.85rem; border-bottom: 1px solid #eee; }
.transaction-table td { padding: 16px 12px; border-bottom: 1px solid #f5f5f5; font-size: 0.95rem; }
.status-badge { padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.status-completed { background: #e0f7ea; color: #00c853; }
.status-pending { background: #fff8e1; color: #ffb300; }

/* Contact Pills */
.contact-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f7fa;
    background: #fff;
    border: 1px solid #e1e4e8;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}
.contact-pill:hover {
    background: #e1e4e8;
    background: #f5f7fa;
    transform: translateY(-1px);
}

/* Dark Mode Balance */
body.dark-mode .transaction-table th { border-bottom-color: #333; }
body.dark-mode .transaction-table td { border-bottom-color: #333; color: #ccc; }
body.dark-mode .status-completed { background: rgba(0, 200, 83, 0.2); }
body.dark-mode .status-pending { background: rgba(255, 179, 0, 0.2); }

/* Dark Mode for Contact Pills */
body.dark-mode .contact-pill {
    background: #1e1e1e;
    border-color: #333;
    color: #ccc;
}
body.dark-mode .contact-pill:hover {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

/* New Dashboard Styles */
.dashboard-header {
    margin-bottom: 24px;
}
.dashboard-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}
.dashboard-header p {
    color: #666;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 8px 0;
    color: #5c6cff;
}

.stat-card .stat-link {
    font-size: 0.85rem;
    color: #5c6cff;
    text-decoration: none;
    font-weight: 500;
}
.stat-card .stat-link:hover { text-decoration: underline; }

.quick-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.action-card { background: #f5f7fa; padding: 25px; border-radius: 16px; text-align: center; text-decoration: none; color: #333; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid #eee; }
.action-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.07); }
.action-card ion-icon { font-size: 2.5rem; color: #5c6cff; margin-bottom: 10px; }
.action-card h3 { font-size: 1.2rem; margin-bottom: 5px; }
.action-card p { color: #666; font-size: 0.9rem; }

/* Admin Hover effect for tables */
.admin-table tbody tr { transition: background 0.2s; }
.admin-table tbody tr:hover { background: #f8faff; }

@media (max-width: 600px) { .quick-actions-grid { grid-template-columns: 1fr; } }

/* Dark mode for new dashboard elements */
body.dark-mode .dashboard-header p { color: #bbb; }
body.dark-mode .stat-card .stat-link { color: #8c52ff; }
body.dark-mode .action-card { background: #1e1e1e; border-color: #333; color: #e0e0e0; }
body.dark-mode .action-card p { color: #bbb; }
body.dark-mode .contact-methods { border-top-color: #333 !important; }
body.dark-mode .popup-content.help .action-card { background: #1e1e1e; border-color: #444; 
    color: #5c6cff;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.copy-btn:hover { background: rgba(92, 108, 255, 0.2); transform: scale(1.05); }
body.dark-mode .admin-table tbody tr:hover { background: #2a2a2a; }

/* New Animated Dashboard */
.welcome-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #5c6cff, #8c52ff);
    color: white;
    padding: 30px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(92, 108, 255, 0.3);
}
.welcome-banner .banner-text h2 { font-size: 1.8rem; font-weight: 600; color: white; margin: 0; }
.welcome-banner .banner-text p { margin-top: 5px; opacity: 0.8; color: white; }
.banner-visuals { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.mini-icon-float { position: absolute; color: rgba(255,255,255,0.15); font-size: calc(60px * var(--s)); animation: float 8s ease-in-out infinite; animation-delay: calc(var(--i) * -1.5s); }
.mini-icon-float ion-icon { font-size: inherit; margin: 0; }
.mini-icon-float:nth-child(1) { top: 60%; left: 75%; }
.mini-icon-float:nth-child(2) { top: 10%; left: 85%; }
.mini-icon-float:nth-child(3) { top: 20%; left: 60%; }

.dashboard-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.dashboard-main .stat-card, .dashboard-sidebar .action-card { animation: fadeIn 0.5s ease-out both; }
.dashboard-grid .stat-card:nth-child(2) { animation-delay: 0.1s; }
.dashboard-main > .stat-card { animation-delay: 0.2s; }
.dashboard-sidebar .action-card:nth-child(1) { animation-delay: 0.3s; }
.dashboard-sidebar .action-card:nth-child(2) { animation-delay: 0.4s; }

@media (max-width: 1000px) {
    .dashboard-layout { grid-template-columns: 1fr; }
}

/* Dark mode for new animated dashboard */
body.dark-mode .welcome-banner { box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

.view-btn {
    padding: 8px 16px;
    background: #5c6cff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(92, 108, 255, 0.2);
}
.view-btn:hover { background: #4a59e0; transform: translateY(-1px); box-shadow: 0 6px 15px rgba(92, 108, 255, 0.3); }

/* Responsive Table Wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Admin Tabs */
.admin-tabs {
    display: inline-flex;
    background: #f5f7fa;
    padding: 6px;
    border-radius: 12px;
    gap: 5px;
    border: none;
    max-width: 100%;
}
.admin-tab-btn {
    background: transparent;
    color: #555;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.admin-tab-btn.active {
    background: #fff;
    color: #5c6cff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-weight: 600;
}
.admin-tab-btn:hover:not(.active) {
    background: rgba(0,0,0,0.03);
    color: #333;
}

/* Styled Filters Container */
.filter-bar {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    align-items: center;
}

/* Modern Stat Cards */
.stat-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.stat-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.stat-card-icon.blue { background: #e3f2fd; color: #1565c0; }
.stat-card-icon.green { background: #e8f5e9; color: #2e7d32; }
.stat-card-icon.purple { background: #f3e5f5; color: #7b1fa2; }
.stat-card-icon.orange { background: #fff3e0; color: #e65100; }

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #5c6cff, #8c52ff);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(92, 108, 255, 0.2);
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Dark Mode Additions */
body.dark-mode .admin-tabs { background: #1e1e1e; border: 1px solid #333; }
body.dark-mode .admin-tab-btn { color: #aaa; }
body.dark-mode .admin-tab-btn.active { background: #2c2c2c; color: #5c6cff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
body.dark-mode .admin-tab-btn:hover:not(.active) { background: rgba(255,255,255,0.05); color: #fff; }
body.dark-mode .filter-bar { background: #1e1e1e; border-color: #333; }
body.dark-mode .stat-card-icon.blue { background: rgba(21, 101, 192, 0.2); color: #90caf9; }

/* Dark Mode for Countdown Box */
body.dark-mode .countdown-box {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
body.dark-mode .stat-card-icon.green { background: rgba(46, 125, 50, 0.2); color: #a5d6a7; }
body.dark-mode .stat-card-icon.purple { background: rgba(123, 31, 162, 0.2); color: #ce93d8; }
body.dark-mode .stat-card-icon.orange { background: rgba(230, 81, 0, 0.2); color: #ffcc80; }

/* Ticket System Styles */
.chat-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-msg { padding: 10px 14px; border-radius: 12px; max-width: 85%; font-size: 0.9rem; line-height: 1.4; position: relative; word-wrap: break-word; }
.chat-msg.user { background: #e3f2fd; color: #0d47a1; align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-msg.admin { background: #5c6cff; color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-meta { font-size: 0.7rem; opacity: 0.7; margin-top: 4px; display: block; text-align: right; }
.ticket-status-open { background: #e3f2fd; color: #1565c0; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.ticket-status-closed { background: #f5f5f5; color: #666; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }

/* Notification Badges */
.tab-badge {
    background: #ff4d4f;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
    vertical-align: top;
    display: none;
}

/* New Homepage Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 20px;
    min-height: 60vh;
    text-align: left;
}

.hero-content {
    max-width: 550px;
    animation: slideInFromLeft 0.8s ease-out;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-cta {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-visuals {
    position: relative;
    width: 400px;
    height: 400px;
    display: block;
}

.icon-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #eee;
    padding: 12px 15px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 5px;
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.5s);
}
.icon-float ion-icon { font-size: 28px; margin-right: 0; }
.icon-float span { font-weight: 600; font-size: 0.9rem; }

.icon-float:nth-child(1) { top: 10%; left: 15%; }
.icon-float:nth-child(1) ion-icon { color: #C13584; }
.icon-float:nth-child(2) { top: 30%; left: 70%; }
.icon-float:nth-child(2) ion-icon { color: #FF0000; }
.icon-float:nth-child(3) { top: 65%; left: 5%; background: #fff0f3; }
.icon-float:nth-child(3) ion-icon { color: #ff4d4f; }
.icon-float:nth-child(4) { top: 80%; left: 60%; background: #f0f0ff; }
.icon-float:nth-child(4) ion-icon { color: #5c6cff; }
.icon-float:nth-child(5) { top: 50%; left: 35%; background: #f9f9f9; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
    .hero-section { flex-direction: column; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-visuals {
        order: -1;
        width: 100%;
        max-width: 350px;
        height: 300px;
        margin-top: 0;
        margin-bottom: 30px;
    }
    .icon-float {
        transform: scale(0.9);
    }
    /* Reposition icons for mobile */
    .icon-float:nth-child(1) { top: 5%; left: 10%; }
    .icon-float:nth-child(2) { top: 20%; left: 75%; }
    .icon-float:nth-child(3) { top: 60%; left: 0%; }
    .icon-float:nth-child(4) { top: 80%; left: 65%; }
    .icon-float:nth-child(5) { top: 45%; left: 30%; }
}

/* Features Section */
.features-section { padding: 60px 20px; background: #f8f9fa; text-align: center; }
.features-section h2 { font-size: 2.2rem; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.feature-card { background: #fff; padding: 30px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.feature-card ion-icon { font-size: 48px; color: #5c6cff; margin-bottom: 15px; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature-card p { color: #666; line-height: 1.6; }

/* Dark Mode for new sections */
body.dark-mode .hero-subtitle,
body.dark-mode .feature-card p { color: #bbb; }
body.dark-mode .features-section { background: #1a1a1a; border-top: 1px solid #333; }
body.dark-mode .feature-card { background: #1e1e1e; border: 1px solid #333; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
body.dark-mode .icon-float { background: rgba(30, 30, 30, 0.8); border-color: #444; }
body.dark-mode .icon-float:nth-child(3) { background: #2c1f23; }
body.dark-mode .icon-float:nth-child(4) { background: #232332; }
body.dark-mode .icon-float:nth-child(5) { background: #2b2b2b; }

/* Inline Error Text */
.error-text {
    color: #ff4d4f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* ================= NEW PROFILE PAGE STYLES ================= */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
}
@media (max-width: 850px) {
    .profile-container { grid-template-columns: 1fr; }
}

.profile-identity-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    border: 1px solid #eee;
}

.profile-cover {
    height: 120px;
    background: linear-gradient(135deg, #5c6cff, #8c52ff);
}

.profile-avatar-wrapper {
    margin-top: -60px;
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.profile-avatar img, .profile-avatar ion-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    color: #e0e0e0;
}

.edit-avatar-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #5c6cff;
    color: white;
    border: 3px solid #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}
.edit-avatar-btn:hover { transform: scale(1.1); }

.profile-identity-info { padding: 20px 25px 30px; }
.profile-identity-info h2 { margin-bottom: 5px; font-size: 1.5rem; }
.profile-identity-info p { color: #666; margin-bottom: 15px; font-size: 0.95rem; }

.badge-role {
    background: #e3f2fd;
    color: #1565c0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-actions { display: flex; gap: 10px; justify-content: center; }
.btn-outline {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: 0.2s;
}
.btn-outline:hover { border-color: #5c6cff; color: #5c6cff; background: #f0f7ff; }

.profile-details-grid { display: flex; flex-direction: column; gap: 20px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }

.profile-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}
.icon-box { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.icon-box.blue { background: #e3f2fd; color: #1565c0; }
.icon-box.green { background: #e8f5e9; color: #2e7d32; }
.icon-box.purple { background: #f3e5f5; color: #7b1fa2; }

.profile-stat-card h3 { font-size: 0.85rem; color: #888; font-weight: 500; margin-bottom: 5px; }
.profile-stat-card p { font-size: 1.2rem; font-weight: 700; color: #333; }

.profile-info-section { background: #fff; padding: 25px; border-radius: 16px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid #eee; }
.profile-info-section h3 { font-size: 1.1rem; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f9f9f9; }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: #666; font-size: 0.95rem; }
.info-row .value { font-weight: 500; color: #333; }
.status-active { color: #00c853; display: flex; align-items: center; gap: 5px; }
.status-active::before { content: ''; width: 8px; height: 8px; background: #00c853; border-radius: 50%; display: inline-block; }
.copy-small { background: none; border: none; color: #5c6cff; cursor: pointer; margin-left: 8px; vertical-align: middle; }
.logout-btn-full { width: 100%; padding: 15px; background: #ffebee; color: #c62828; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.2s; margin-top: 10px; }
.logout-btn-full:hover { background: #ffcdd2; }

/* Dark Mode Profile */
body.dark-mode .profile-identity-card, body.dark-mode .profile-stat-card, body.dark-mode .profile-info-section { background: #1e1e1e; border-color: #333; }
body.dark-mode .profile-avatar { background: #1e1e1e; }
body.dark-mode .edit-avatar-btn { border-color: #1e1e1e; }
body.dark-mode .profile-identity-info p, body.dark-mode .profile-stat-card h3, body.dark-mode .info-row .label { color: #aaa; }
body.dark-mode .profile-stat-card p, body.dark-mode .info-row .value { color: #fff; }
body.dark-mode .btn-outline { border-color: #444; color: #ccc; }
body.dark-mode .btn-outline:hover { background: #333; color: #fff; }
body.dark-mode .logout-btn-full { background: rgba(198, 40, 40, 0.2); color: #ff8a80; }
body.dark-mode .logout-btn-full:hover { background: rgba(198, 40, 40, 0.3); }
body.dark-mode .icon-box.blue { background: rgba(21, 101, 192, 0.2); color: #90caf9; }
body.dark-mode .icon-box.green { background: rgba(46, 125, 50, 0.2); color: #a5d6a7; }
body.dark-mode .icon-box.purple { background: rgba(123, 31, 162, 0.2); color: #ce93d8; }
body.dark-mode .badge-role { background: rgba(21, 101, 192, 0.2); color: #90caf9; }

/* Reviews Section */
.reviews-section { padding: 60px 20px; background: #fff; text-align: center; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1000px; margin: 30px auto 0; }
.review-card { background: #f9f9f9; padding: 25px; border-radius: 16px; text-align: left; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s; border: 1px solid #eee; }
.review-card:hover { transform: translateY(-5px); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 42px; height: 42px; background: linear-gradient(135deg, #5c6cff, #8c52ff); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 1.1rem; }
.review-info h4 { margin: 0; font-size: 1rem; color: #333; }
.review-info span { font-size: 0.8rem; color: #888; }
.review-stars { color: #ffca28; font-size: 1rem; margin-bottom: 10px; display: flex; gap: 2px; }
.review-text { color: #555; font-size: 0.95rem; line-height: 1.6; font-style: italic; }

/* Star Rating Input */
.star-rating-input { display: flex; justify-content: center; gap: 8px; font-size: 2.2rem; color: #ddd; cursor: pointer; margin: 15px 0; }
.star-rating-input ion-icon { transition: color 0.2s; }
.star-rating-input ion-icon:hover,
.star-rating-input ion-icon.active { color: #ffca28; }
.star-rating-input ion-icon.active[name="star"] { color: #ffca28; }

/* Dark Mode Reviews */
body.dark-mode .reviews-section { background: #121212; border-top: 1px solid #333; }
body.dark-mode .review-card { background: #1e1e1e; border-color: #333; }
body.dark-mode .review-info h4 { color: #fff; }
body.dark-mode .review-text { color: #bbb; }
body.dark-mode .star-rating-input { color: #444; }

/* Reviews Page Banner */
.reviews-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #5c6cff 0%, #8c52ff 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin: 0 auto 30px auto;
    max-width: 1000px;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(92, 108, 255, 0.3);
}
.reviews-title-area h2 { font-size: 2.2rem; margin-bottom: 5px; color: white; }
.reviews-title-area p { color: rgba(255,255,255,0.9); font-size: 1.05rem; }
.reviews-title-area .cta { background: white; color: #5c6cff; font-weight: 600; padding: 12px 25px; }
.reviews-title-area .cta:hover { background: #f0f0f0; color: #4a59e0; }

.reviews-summary-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 200px;
}
.rating-number { font-size: 3.5rem; font-weight: 700; line-height: 1; margin-bottom: 5px; }
.star-rating-display { color: #ffca28; font-size: 1.5rem; margin-bottom: 5px; display: flex; justify-content: center; gap: 3px; }
.total-reviews { font-size: 0.9rem; opacity: 0.9; }

@media (max-width: 700px) {
    .reviews-header-banner { flex-direction: column; text-align: center; padding: 30px 20px; }
    .reviews-summary-card { width: 100%; }
}

/* ================= NEW POPUP ENHANCEMENTS & WHITE BUTTONS ================= */
.btn-white-primary { background: #fff; color: #5c6cff; border: 2px solid #5c6cff; border-radius: 12px; padding: 14px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 12px rgba(92, 108, 255, 0.1); display: inline-flex; justify-content: center; align-items: center; }
.btn-white-primary:hover { background: #5c6cff; color: #fff; box-shadow: 0 6px 16px rgba(92, 108, 255, 0.25); transform: translateY(-2px); }

.btn-white-success { background: #fff; color: #00c853; border: 2px solid #00c853; border-radius: 12px; padding: 14px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 12px rgba(0, 200, 83, 0.1); display: inline-flex; justify-content: center; align-items: center; }
.btn-white-success:hover { background: #00c853; color: #fff; box-shadow: 0 6px 16px rgba(0, 200, 83, 0.25); transform: translateY(-2px); }

.btn-white-secondary { background: #fff; color: #555; border: 2px solid #eee; border-radius: 12px; padding: 14px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.02); display: inline-flex; justify-content: center; align-items: center; }
.btn-white-secondary:hover { background: #f9f9f9; border-color: #ddd; color: #333; transform: translateY(-2px); }

.btn-white-info { background: #fff; color: #0088cc; border: 2px solid #0088cc; border-radius: 12px; padding: 14px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 10px rgba(0, 136, 204, 0.1); display: inline-flex; justify-content: center; align-items: center; }
.btn-white-info:hover { background: #0088cc; color: #fff; box-shadow: 0 6px 16px rgba(0, 136, 204, 0.25); transform: translateY(-2px); }

/* Popup Enhanced Layouts */
.service-form-wrapper { background: #f8f9fa; border: 1px solid #eee; padding: 20px; border-radius: 16px; margin-bottom: 20px; }
.service-total-card { background: linear-gradient(135deg, #f0f4ff, #e6ecff); padding: 18px 20px; border-radius: 14px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #d1dbff; }
.payment-qr-card { background: #fff; border: 2px dashed #e1e4e8; border-radius: 16px; padding: 30px 20px 20px; text-align: center; margin-bottom: 25px; position: relative; }
.payment-qr-badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: #fff; padding: 6px 20px; color: #5c6cff; font-weight: 700; font-size: 1.2rem; border-radius: 20px; border: 1px solid #e1e4e8; box-shadow: 0 4px 12px rgba(0,0,0,0.06); white-space: nowrap; }

.payment-tutorial-box { background: #f0f4ff; border: 1px solid #c2c9ff; border-radius: 12px; padding: 18px 15px; margin-bottom: 25px; text-align: left; }
.payment-tutorial-box h4 { color: #5c6cff; margin-bottom: 10px; font-size: 1.05rem; display: flex; align-items: center; gap: 6px; margin-top: 0; }
.payment-tutorial-box ol { margin: 0 0 0 24px; padding: 0; color: #444; font-size: 0.9rem; line-height: 1.6; }
.payment-tutorial-box li { margin-bottom: 4px; }

body.dark-mode .payment-tutorial-box { background: rgba(92, 108, 255, 0.08); border-color: rgba(92, 108, 255, 0.2); }
body.dark-mode .payment-tutorial-box h4 { color: #8c52ff; }
body.dark-mode .payment-tutorial-box ol { color: #ddd; }

/* Input Focus Enhancement */
.form-input { transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus { border-color: #5c6cff; box-shadow: 0 0 0 3px rgba(92, 108, 255, 0.15); }

/* Dark Mode Overrides for New UI Elements */
body.dark-mode .btn-white-primary, body.dark-mode .btn-white-success, body.dark-mode .btn-white-secondary, body.dark-mode .btn-white-info { background: #1e1e1e; }

body.dark-mode .btn-white-primary { color: #8c52ff; border-color: #8c52ff; }
body.dark-mode .btn-white-primary:hover { background: #8c52ff; color: #fff; }

body.dark-mode .btn-white-success { color: #00e676; border-color: #00e676; }

/* Dark Mode for Popup Backgrounds and Text */
body.dark-mode .popup-content {
    background: #1e1e1e !important;
    color: #e0e0e0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .popup-content h2,
body.dark-mode .popup-content h3,
body.dark-mode .popup-content h4,
body.dark-mode .popup-content p,
body.dark-mode .popup-content label,
body.dark-mode .popup-content span,
body.dark-mode .popup-content div {
    color: #e0e0e0 !important;
}

body.dark-mode .popup-content .form-input {
    background-color: #2c2c2c;
    color: #fff;
    border-color: #444;
}

body.dark-mode .popup-content .form-input:focus {
    border-color: #5c6cff;
    box-shadow: 0 0 0 3px rgba(92, 108, 255, 0.2);
}

body.dark-mode .btn-white-success:hover { background: #00e676; color: #fff; }

body.dark-mode .btn-white-secondary { color: #ccc; border-color: #333; }
body.dark-mode .btn-white-secondary:hover { background: #2a2a2a; border-color: #444; color: #fff; }

body.dark-mode .btn-white-info { color: #40c4ff; border-color: #40c4ff; }
body.dark-mode .btn-white-info:hover { background: #40c4ff; color: #1e1e1e; }

body.dark-mode .service-form-wrapper { background: #1a1a1a; border-color: #333; }
body.dark-mode .service-total-card { background: linear-gradient(135deg, #1e1e2e, #2a2a40); border-color: #3d3d5c; }
body.dark-mode .payment-qr-card { background: #1a1a1a; border-color: #444; }
body.dark-mode .payment-qr-badge { background: #2c2c2c; border-color: #444; color: #8c52ff; }

body.dark-mode .form-input:focus { box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.2); border-color: #8c52ff; }

/* ================= NEW GIVEAWAY PAGE STYLES ================= */
.giveaway-page-hero {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 65, 108, 0.3);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.giveaway-page-hero h1 { font-size: 2.5rem; margin-bottom: 10px; position: relative; z-index: 2; }
.giveaway-page-hero .prize-tag { display: inline-block; background: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 20px; font-weight: bold; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.4); position: relative; z-index: 2; }
.giveaway-page-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 20px; position: relative; z-index: 2; }
.ga-rules-card { background: #fff; padding: 30px; border-radius: 16px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); height: 100%; border: 1px solid #eee; }
.ga-rules-list { list-style: none; padding: 0; margin-top: 15px; }
.ga-rules-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: #555; }
.ga-rules-list ion-icon { color: #00c853; font-size: 1.2rem; margin-top: 2px; }
body.dark-mode .ga-rules-card { background: #1e1e1e; border: 1px solid #333; }
body.dark-mode .ga-rules-list li { color: #ccc; }

/* Modern Giveaway Cards (Public) */
.giveaway-card-modern { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.06); border: 1px solid #eee; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; margin-bottom: 30px; }
.giveaway-card-modern:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,0,0,0.1); }
.ga-modern-banner { height: 220px; background-size: cover; background-position: center; position: relative; background-color: #5c6cff; }
.ga-modern-banner::after { content:''; position:absolute; top:0;left:0;right:0;bottom:0; background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%); }
.ga-modern-badge { position: absolute; top: 15px; right: 15px; background: #00c853; color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.ga-modern-badge.ended { background: #ff4d4f; }
.ga-modern-title-area { position: absolute; bottom: 15px; left: 20px; right: 20px; z-index: 2; color: #fff; }
.ga-modern-title-area h2 { font-size: 1.9rem; margin: 0 0 5px 0; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.ga-modern-title-area p { margin: 0; opacity: 0.9; font-size: 0.95rem; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.ga-modern-body { padding: 25px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.ga-modern-info { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.ga-modern-prize { font-size: 1.1rem; font-weight: 600; color: #5c6cff; display: flex; align-items: center; gap: 5px; }
.ga-modern-ends { font-size: 0.9rem; color: #666; display: flex; align-items: center; gap: 5px; }
.ga-modern-rules { background: #f9f9f9; padding: 15px; border-radius: 12px; font-size: 0.9rem; }
.ga-modern-rules h4 { margin-bottom: 10px; display: flex; align-items: center; gap: 6px; color: #333; margin-top:0; }
.ga-modern-rules ul { list-style: none; padding: 0; margin: 0; }
.ga-modern-rules li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; color: #555; }
.ga-modern-rules ion-icon { color: #00c853; font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.ga-modern-action { margin-top: auto; }

/* Enhanced Admin Giveaway Cards */
.admin-ga-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 0; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: transform 0.2s; display:flex; flex-direction:column; overflow:hidden;}
.admin-ga-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.06); }
.admin-ga-thumb { height: 100px; background-size: cover; background-position: center; position: relative; background-color: #5c6cff; }
.admin-ga-content { padding: 20px; flex: 1; display:flex; flex-direction:column; }
.admin-ga-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 15px; }
.admin-ga-actions button { display: flex; justify-content: center; align-items: center; padding: 8px; font-size: 1rem; }
.admin-ga-actions button:first-child { flex: 1; font-size: 0.9rem; }

/* Giveaway Countdown & States */
.countdown-container { display: flex; gap: 12px; justify-content: center; margin-top: 25px; flex-wrap: wrap; }
.countdown-box { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px; padding: 10px; min-width: 65px; text-align: center; }
.countdown-value { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1; margin-bottom: 2px; }
.countdown-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }

.entered-badge { background: #e8f5e9; color: #2e7d32; padding: 25px 20px; border-radius: 16px; border: 1px solid #c8e6c9; margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.entered-badge ion-icon { font-size: 48px; color: #4caf50; margin: 0; }

.winner-card { background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%); color: #333; padding: 35px 20px; border-radius: 16px; text-align: center; box-shadow: 0 10px 30px rgba(255, 160, 0, 0.3); margin: 0 auto; border: 2px solid #FFE082; position: relative; overflow: hidden; }
.winner-card h2 { font-size: 2.2rem; margin-bottom: 5px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.winner-card p { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; color: rgba(0,0,0,0.7); }
.winner-handle { display: inline-block; background: #fff; color: #FFA000; padding: 10px 25px; border-radius: 30px; font-size: 1.3rem; font-weight: 700; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

/* Animated Winner Popup */
.winner-anim-popup { z-index: 4000; }
.winner-anim-popup .popup-content { background: transparent; box-shadow: none; padding: 0; max-width: 500px; width: 95%; max-height: none; }
.winner-anim-card { background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%); border-radius: 20px; padding: 40px 30px; text-align: center; color: white; position: relative; overflow: hidden; box-shadow: 0 15px 40px rgba(255, 160, 0, 0.4); animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; }
.winner-anim-card h2 { font-size: 2.5rem; margin-bottom: 10px; text-shadow: 0 2px 5px rgba(0,0,0,0.2); color: #fff;}
.winner-anim-card p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 20px; color:#fff;}
.winner-anim-card .trophy-icon { font-size: 80px; margin-bottom: 10px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2)); animation: bounce 2s infinite; color:#fff;}
.loser-anim-card { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); border-radius: 20px; padding: 40px 30px; text-align: center; color: #333; position: relative; overflow: hidden; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; }
.loser-anim-card h2 { font-size: 2.2rem; margin-bottom: 10px; color: #333;}
.loser-anim-card p { font-size: 1.1rem; color: #666; margin-bottom: 20px; }
.loser-anim-card .sad-icon { font-size: 70px; margin-bottom: 10px; color: #888; }
@keyframes popIn { 0% { transform: scale(0.8) translateY(50px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

body.dark-mode .entered-badge { background: rgba(46, 125, 50, 0.1); border-color: rgba(46, 125, 50, 0.3); color: #a5d6a7; }
body.dark-mode .winner-card { box-shadow: 0 8px 25px rgba(0,0,0,0.4); border-color: #FFA000; }
body.dark-mode .loser-anim-card { background: linear-gradient(135deg, #2c3e50 0%, #000000 100%); color: #fff; box-shadow: 0 15px 40px rgba(0,0,0,0.5);}
body.dark-mode .loser-anim-card h2 { color: #fff; }
body.dark-mode .loser-anim-card p { color: #aaa; }
body.dark-mode .loser-anim-card .sad-icon { color: #ccc; }

/* Dark Mode specific overwrites */
body.dark-mode .giveaway-card-modern { background: #1e1e1e; border-color: #333; }
body.dark-mode .ga-modern-info { border-bottom-color: #333; }
body.dark-mode .ga-modern-prize { color: #8c52ff; }
body.dark-mode .ga-modern-ends { color: #aaa; }
body.dark-mode .ga-modern-rules { background: #252525; }
body.dark-mode .ga-modern-rules h4 { color: #fff; }
body.dark-mode .ga-modern-rules li { color: #ccc; }
body.dark-mode .admin-ga-card { background: #1e1e1e; border-color: #333; }

/* Spin animation for loading state */
@keyframes spin { 100% { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ================= NEW SAAS HOMEPAGE STYLES ================= */
.saas-homepage {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-bottom: 60px;
}

/* Global SaaS Gradients */
.insta-grad { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white; }
.yt-grad { background: #FF0000; color: white; }
.fb-grad { background: #1877F2; color: white; }
.tg-grad { background: #0088cc; color: white; }

/* --- Hero Section --- */
.saas-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 500px;
}

.saas-hero-content {
    flex: 1;
    max-width: 600px;
}

.saas-hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(to right, #2b2b2b, #5c6cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.saas-hero-content p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 35px;
}

.saas-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.saas-btn {
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.saas-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0,0,0,0.2); }
.saas-btn-green { background: linear-gradient(135deg, #00c853, #00e676); }
.saas-btn-blue { background: linear-gradient(135deg, #5c6cff, #8c52ff); }

.saas-hero-visuals {
    flex: 1;
    position: relative;
    height: 400px;
    max-width: 450px;
}

.saas-float-card {
    position: absolute;
    top: 10%; left: 20%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px 25px 15px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.4);
    animation: saasFloat 6s ease-in-out infinite;
    animation-delay: var(--d);
    z-index: 2;
}

.saas-float-card .icon-wrap {
    width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.saas-float-card .card-details { display: flex; flex-direction: column; }
.saas-float-card .card-title { font-weight: 700; font-size: 0.95rem; color: #333; }
.saas-float-card .card-stat { font-size: 0.8rem; color: #00c853; font-weight: 600; }

@keyframes saasFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Shared Section Styles --- */
.saas-section { text-align: center; }
.saas-section-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 40px; color: #222; }

/* --- Pricing Cards --- */
.saas-pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px;
}
.saas-price-card {
    background: #fff; border-radius: 20px; padding: 40px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
}
.saas-price-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(92, 108, 255, 0.1); border-color: #e0e4ff; }
.saas-icon-badge {
    width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.saas-price-card h3 { font-size: 1.3rem; margin-bottom: 5px; color: #333; }
.saas-package-desc { font-size: 0.95rem; color: #666; margin-bottom: 15px; }
.saas-price { font-size: 2rem; font-weight: 700; color: #5c6cff; margin-bottom: 25px; }
.saas-btn-outline {
    width: 100%; padding: 12px; border-radius: 12px; background: transparent; border: 2px solid #eee;
    font-weight: 600; color: #555; cursor: pointer; transition: 0.3s; font-size: 1rem;
}
.saas-price-card:hover .saas-btn-outline { background: #5c6cff; color: #fff; border-color: #5c6cff; }

/* --- Features Section --- */
.saas-features-grid {
    display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
}
.saas-feature {
    background: #f9faff; padding: 20px 30px; border-radius: 16px; display: flex; align-items: center; gap: 15px; border: 1px solid #eff2ff;
}
.saas-feature-icon {
    background: #fff; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #5c6cff; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.saas-feature h4 { font-size: 1.1rem; margin: 0; color: #333; }

/* --- Testimonial & Payment --- */
.saas-trust-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: #fdfdff;
    padding: 40px; border-radius: 24px; border: 1px solid #eee;
}
.saas-testimonial { background: #fff; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.testi-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.testi-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #5c6cff, #8c52ff); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; }
.testi-name { font-weight: 700; font-size: 1.1rem; color: #333; }
.testi-stars { color: #ffca28; font-size: 1.1rem; }
.testi-text { font-size: 1.05rem; color: #555; font-style: italic; line-height: 1.6; }

.saas-payments h3 { font-size: 1.4rem; margin-bottom: 20px; color: #333; }
.payment-logos { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 25px; }
.pay-badge { padding: 8px 16px; background: #fff; border: 1px solid #ddd; border-radius: 8px; font-weight: 600; font-size: 0.95rem; }
.trust-badges { display: flex; gap: 15px; flex-wrap: wrap; }
.trust-tag { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: #00c853; font-weight: 600; background: #e8f5e9; padding: 6px 12px; border-radius: 20px; }

/* --- SaaS Dark Mode --- */
body.dark-mode .saas-hero-content h1 { background: linear-gradient(to right, #fff, #8c52ff); -webkit-background-clip: text; }
body.dark-mode .saas-hero-content p, body.dark-mode .saas-package-desc, body.dark-mode .testi-text { color: #aaa; }
body.dark-mode .saas-section-title, body.dark-mode .saas-price-card h3, body.dark-mode .saas-feature h4, body.dark-mode .saas-payments h3, body.dark-mode .testi-name { color: #fff; }
body.dark-mode .saas-float-card { background: rgba(30, 30, 30, 0.9); border-color: #444; box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
body.dark-mode .saas-float-card .card-title { color: #fff; }
body.dark-mode .saas-price-card { background: #1e1e1e; border-color: #333; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
body.dark-mode .saas-price-card:hover { border-color: #5c6cff; }
body.dark-mode .saas-btn-outline { border-color: #444; color: #ccc; }
body.dark-mode .saas-feature { background: #1e1e1e; border-color: #333; }
body.dark-mode .saas-feature-icon { background: #2c2c2c; }
body.dark-mode .saas-trust-section { background: #121212; border-color: #333; }
body.dark-mode .saas-testimonial { background: #1e1e1e; }
body.dark-mode .pay-badge { background: #1e1e1e; border-color: #444; }
body.dark-mode .trust-tag { background: rgba(0, 200, 83, 0.1); }

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .saas-hero { flex-direction: column; text-align: center; }
    .saas-hero-content h1 { font-size: 2.5rem; }
    .saas-hero-buttons { justify-content: center; }
    .saas-hero-visuals { width: 100%; height: 350px; margin-top: 20px; }
    .saas-trust-section { grid-template-columns: 1fr; }
}

/* --- Service Showcase Slider --- */
.service-showcase-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
    border: 1px solid #eee;
}
.service-showcase-container::before,
.service-showcase-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
}
.service-showcase-container::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}
.service-showcase-container::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

.service-showcase-card {
    display: flex;
    gap: 50px;
    padding: 0 25px;
    animation: slideServices 25s linear infinite;
    width: fit-content;
}

.service-showcase-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
}
.service-showcase-item:hover { color: #5c6cff; }
.service-showcase-item ion-icon { font-size: 1.5rem; margin: 0; }

@keyframes slideServices {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); }
}

/* Dark Mode */
body.dark-mode .service-showcase-container { background: #1e1e1e; border-color: #333; }
body.dark-mode .service-showcase-container::before { background: linear-gradient(to right, #1e1e1e, transparent); }
body.dark-mode .service-showcase-container::after { background: linear-gradient(to left, #1e1e1e, transparent); }
body.dark-mode .service-showcase-item { color: #ccc; }
body.dark-mode .service-showcase-item:hover { color: #8c52ff; }

/* Public Account Note */
#public-account-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 15px;
}
#public-account-note ion-icon {
    font-size: 1.2rem;
    color: #e65100;
}

body.dark-mode #public-account-note {
    background: #3a2a00; /* Darker, more distinct background */
    color: #ffe0b2;     /* Brighter text color */
    border-color: #5c4000; /* Matching darker border */
}
body.dark-mode #public-account-note ion-icon {
    color: #ffcc80;
}

/* Fix for service option buttons in dark mode */
body.dark-mode .service-option-button {
    background: #1e1e1e !important;
    border-color: #333 !important;
}


/* Admin Manage Popup Specific Styles */
.admin-manage-popup .popup-content {
    max-width: 550px; /* Wider for better layout */
    padding: 25px;
    text-align: left;
}

.admin-manage-section {
    background: #f9f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.admin-manage-section:last-child {
    margin-bottom: 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to start for multi-line content */
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.detail-row:last-of-type {
    border-bottom: none;
}

.detail-row .label {
    color: #666;
    font-weight: 500;
    flex-shrink: 0; /* Prevent label from shrinking */
    margin-right: 15px; /* Space between label and value */
}

.detail-row .value {
    color: #333;
    font-weight: 600;
    text-align: right;
    flex-grow: 1; /* Allow value to take up remaining space */
}

.detail-row .value a {
    word-break: break-all;
}

.detail-row.cancelled-reason .value {
    color: #c62828;
    background: #ffebee;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.admin-section-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.admin-section-title.danger {
    color: #c62828;
}

.admin-section-description {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

.status-checkbox-group, .status-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.status-checkbox-item, .status-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.status-checkbox-item input[type="checkbox"],
.status-radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #5c6cff; /* Primary color for checkboxes/radios */
}

.status-radio-item input[type="radio"] { accent-color: #c62828; } /* Danger color for cancel radios */

.admin-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.admin-action-buttons .cta,
.admin-action-buttons .btn-outline {
    flex: 1;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
}

.admin-action-buttons.danger-actions {
    margin-top: 10px;
}

/* Specific button styles for admin panel */
.btn-primary { background: #5c6cff; color: white; border: none; }
.btn-primary:hover { background: #4a59e0; }
.btn-secondary { background: #e3f2fd; color: #1565c0; border: none; }
.btn-secondary:hover { background: #c5e1ff; }
.btn-danger { background: #c62828; color: white; border: none; }
.btn-danger:hover { background: #b71c1c; }
.btn-dark { background: #333; color: white; border: none; }
.btn-dark:hover { background: #555; }

/* Dark Mode Overrides for Admin Manage Popup */
body.dark-mode .admin-manage-section { background: #1a1a1a; border-color: #333; }
body.dark-mode .detail-row { border-bottom-color: #333; }
body.dark-mode .detail-row .label { color: #aaa; }
body.dark-mode .detail-row .value { color: #fff; }
body.dark-mode .detail-row.cancelled-reason .value { background: rgba(198, 40, 40, 0.2); color: #ff8a80; }
body.dark-mode .admin-section-title { color: #fff; }
body.dark-mode .admin-section-title.danger { color: #ff8a80; }
body.dark-mode .admin-section-description { color: #aaa; }
body.dark-mode .status-checkbox-item, body.dark-mode .status-radio-item { color: #ccc; }
body.dark-mode .status-checkbox-item input[type="checkbox"],
body.dark-mode .status-radio-item input[type="radio"] {
    accent-color: #8c52ff;
}
body.dark-mode .status-radio-item input[type="radio"] { accent-color: #ff8a80; }

body.dark-mode .btn-primary { background: #8c52ff; }
body.dark-mode .btn-primary:hover { background: #7b42e0; }
body.dark-mode .btn-secondary { background: rgba(21, 101, 192, 0.2); color: #90caf9; }
body.dark-mode .btn-secondary:hover { background: rgba(21, 101, 192, 0.3); }
body.dark-mode .btn-danger { background: #c62828; }
body.dark-mode .btn-danger:hover { background: #b71c1c; }
body.dark-mode .btn-dark { background: #444; }
body.dark-mode .btn-dark:hover { background: #666; }