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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 300px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    backdrop-filter: blur(10px);
    color: #1e293b;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-right: 1px solid rgba(226, 232, 240, 0.8);
}

.sidebar-header {
    padding: 28px 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.5);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.logo-image {
    width: 40px;
    height: 40px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 30px;
}

.wallet-balance {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.wallet-balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wallet-balance-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-toggle {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wallet-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.wallet-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Courier New', monospace;
}

.transfer-amount-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #10b981 100%);
    background-size: 200% 200%;
    animation: transferAmountBlink 2s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transfer-amount-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.transfer-amount-btn i {
    font-size: 14px;
}

.cash-out-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 30%, #1d4ed8 50%, #dc2626 70%, #fbbf24 100%);
    background-size: 200% 200%;
    animation: cashOutBlink 5s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cash-out-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.5);
}

.cash-out-btn i {
    font-size: 14px;
}

.cash-in-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #10b981 0%, #059669 30%, #047857 50%, #065f46 70%, #34d399 100%);
    background-size: 200% 200%;
    animation: cashInBlink 5s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cash-in-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

.cash-in-btn i {
    font-size: 14px;
}

@keyframes cashInBlink {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Cash In Received (Admin only) - menu badge and blinking */
.cashin-received-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 11px;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.cashin-received-menu.cashin-received-blink {
    animation: cashin-received-blink 1.2s ease-in-out infinite;
}

@keyframes cashin-received-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { opacity: 0.9; box-shadow: 0 0 12px 4px rgba(239, 68, 68, 0.3); }
}

@keyframes cashOutBlink {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes transferAmountBlink {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.wallet-amount.hidden {
    filter: blur(8px);
    user-select: none;
}

.sidebar-nav {
    padding: 20px 0;
}

/* Search box: always visible above the menu list (above Home) for all users */
.menu-search-wrap {
    display: block;
    position: relative;
    padding: 0 16px 12px;
    margin: 0 0 8px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    min-height: 52px;
    box-sizing: border-box;
}

.menu-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.menu-search-input::placeholder {
    color: #94a3b8;
}

.menu-search-input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.menu-search-icon {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
}

.sidebar .menu-search-wrap .menu-search-input:focus + .menu-search-icon {
    color: #667eea;
}

.menu-search-suggestions {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 100%;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    z-index: 1000;
}

.menu-search-suggestion-item {
    padding: 12px 14px;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.menu-search-suggestion-item:last-child {
    border-bottom: none;
}

.menu-search-suggestion-item:hover {
    background: #f0f9ff;
}

.menu-search-no-match {
    color: #64748b;
    cursor: default;
}

.menu-search-no-match:hover {
    background: transparent;
}

.menu-list {
    list-style: none;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 15px;
    position: relative;
}

.menu-item i {
    width: 24px;
    height: 24px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.3);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.menu-item span {
    flex: 1;
}

.menu-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
    border-left-color: #667eea;
    color: #1e293b;
    padding-left: 28px;
}

.menu-item:hover i {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.2);
    animation: iconBlink 0.6s ease-in-out infinite;
}

@keyframes iconBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1.15);
        filter: brightness(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.25);
        filter: brightness(1.3);
    }
}

.menu-item.active {
    background-color: rgba(102, 126, 234, 0.15);
    border-left-color: #667eea;
    color: #1e293b;
    font-weight: 600;
}

.menu-item.active i {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Colorful Icon Gradients for Each Menu Item - Darker, More Visible Colors */
.menu-item[data-menu="home"] i {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.menu-item[data-menu="wallet"] i {
    background: linear-gradient(135deg, #d946ef 0%, #e11d48 100%);
}

.menu-item[data-menu="cashin"] i {
    background: linear-gradient(135deg, #3b82f6 0%, #0284c7 100%);
}

.menu-item[data-menu="cashinreceived"] i {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.menu-item[data-menu="sendmoney"] i {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.menu-item[data-menu="paybills"] i {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.menu-item[data-menu="globalpayments"] i {
    background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
}

.menu-item[data-menu="socialmedia"] i {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.menu-item[data-menu="livevideo"] i {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.menu-item[data-menu="farmersvlogger"] i,
.menu-item.farmers-vlogger i {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.menu-item[data-menu="dating"] i {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.menu-item[data-menu="music"] i {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.menu-item[data-menu="youtube"] i {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.menu-item[data-menu="airlines"] i {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.menu-item[data-menu="hotels"] i {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.menu-item[data-menu="cars"] i {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.menu-item[data-menu="ferry"] i {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.menu-item[data-menu="delivery"] i {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.menu-item[data-menu="emergency"] i {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.menu-item[data-menu="jobhiring"] i {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.menu-item[data-menu="games"] i {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.menu-item[data-menu="gameseducational"] i {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.menu-item[data-menu="gamesonline"] i {
    background: linear-gradient(135deg, #c41e3a 0%, #1a1a2e 100%);
}

.menu-item[data-menu="accounting"] i {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.menu-item[data-menu="insurance"] i {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.menu-item[data-menu="marketplace"] i {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.menu-item[data-menu="livestores"] i {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    box-shadow: 0 3px 10px rgba(20, 184, 166, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.35);
    color: #fff;
}

.menu-item[data-menu="email"] i {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.menu-item[data-menu="advertisement"] i {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.menu-item[data-menu="tools"] i {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.menu-item[data-menu="settings"] i {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.menu-item[data-menu="support"] i {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.menu-item[data-menu="schools"] i {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

/* Schools dropdown menu */
.menu-item-has-dropdown {
    position: relative;
}

.menu-item-toggle {
    display: flex;
    align-items: center;
}

.menu-item-toggle .menu-item-chevron {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.25s ease;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    border: none;
    color: #64748b;
}

.menu-item-has-dropdown.open .menu-item-chevron {
    transform: rotate(180deg);
}

.menu-item[data-menu="schools"].active i,
.menu-item-has-dropdown.open .menu-item[data-menu="schools"] {
    background-color: rgba(13, 148, 136, 0.15);
    border-left-color: #0d9488;
    color: #1e293b;
}

.schools-dropdown {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: rgba(30, 41, 59, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: none;
    margin-top: 4px;
    margin-left: 24px;
    margin-right: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    max-height: 280px;
    overflow-y: auto;
}

.schools-dropdown.open {
    display: block;
}

.schools-dropdown li {
    margin: 0;
}

.schools-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    margin: 0 8px;
}

.schools-dropdown-item:hover {
    background-color: rgba(13, 148, 136, 0.2);
    color: #fff;
}

.schools-dropdown-action {
    padding: 8px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 4px;
}

.btn-add-new-school {
    width: 100%;
    padding: 10px 16px;
    border: 2px dashed rgba(13, 148, 136, 0.6);
    border-radius: 8px;
    background: rgba(13, 148, 136, 0.15);
    color: #14b8a6;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-add-new-school:hover {
    background: rgba(13, 148, 136, 0.3);
    border-color: #14b8a6;
    color: #fff;
}

/* School welcome panel (e.g. Bulasa National High School) */
.school-welcome-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 0;
}

.school-welcome-message {
    text-align: center;
    margin-bottom: 28px;
}

.school-welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.school-welcome-by {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    font-style: italic;
}

/* Main school image - centered, larger than gallery */
.school-main-image {
    text-align: center;
    margin: 0 auto 28px;
    max-width: 920px;
}

.school-main-image img {
    width: 100%;
    max-width: 900px;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}

.school-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.school-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    background: #f1f5f9;
}

.school-gallery-delete-btn,
.school-admin-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.school-gallery-delete-btn:hover,
.school-admin-delete-btn:hover {
    background: rgba(220, 38, 38, 0.9);
}

.school-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.school-submitted-section {
    margin-bottom: 28px;
}

.school-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin: 0 0 16px 0;
}

.school-upload-section {
    margin: 24px 0 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.school-submit-btn {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.school-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.school-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.school-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.school-upload-btn:hover {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.school-upload-hint {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #64748b;
}

/* Big picture box for uploaded images */
.school-user-uploads.school-big-picture-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
    min-height: 280px;
}

.school-big-picture-box .school-user-upload-item {
    background: #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.school-big-picture-box .school-user-upload-item img {
    width: 100%;
    height: auto;
    min-height: 280px;
    max-height: 520px;
    object-fit: contain;
    display: block;
    background: #e2e8f0;
}

.school-user-upload-item {
    position: relative;
}

.school-user-upload-item .school-upload-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.9;
    z-index: 2;
}

.school-user-upload-item .school-upload-remove:hover {
    background: #dc2626;
    opacity: 1;
}

.school-back-btn {
    margin-top: 8px;
}

/* Bulasa panel – modern gradient background */
.school-panel-gradient {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 25%, #99f6e4 50%, #5eead4 75%, #2dd4bf 100%);
    background-attachment: local;
    padding: 24px;
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 32px rgba(13, 148, 136, 0.15);
}

/* Tabs */
.school-tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0 16px;
}

.school-tab-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    color: #0f766e;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.school-tab-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.school-tab-btn.active {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
}

.school-tab-content {
    margin-bottom: 16px;
}

/* Calendar tab */
.school-tab-calendar-wrap .school-calendar-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.school-calendar-label {
    display: block;
    font-weight: 600;
    color: #134e4a;
    margin-bottom: 8px;
    font-size: 15px;
}

.school-grade-select {
    width: 100%;
    max-width: 240px;
    padding: 12px 16px;
    border: 2px solid #99f6e4;
    border-radius: 12px;
    background: #fff;
    color: #134e4a;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
    cursor: pointer;
}

.school-calendar-box {
    min-height: 320px;
}

.school-calendar-placeholder {
    color: #64748b;
    padding: 24px;
    text-align: center;
}

.school-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.school-calendar-nav {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #99f6e4 0%, #5eead4 100%);
    color: #0f766e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.school-calendar-nav:hover {
    background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 100%);
    transform: scale(1.05);
}

.school-calendar-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #134e4a;
}

.school-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.school-calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #0f766e;
}

.school-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.school-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.school-calendar-day:hover:not(.school-calendar-day-empty) {
    background: rgba(45, 212, 191, 0.3);
    border-color: #2dd4bf;
}

.school-calendar-day-empty {
    cursor: default;
    background: transparent;
}

.school-calendar-day-num {
    font-weight: 600;
    color: #134e4a;
    font-size: 14px;
}

.school-calendar-day-has-note .school-calendar-day-dot {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0d9488;
}

/* Video tab (Bulasa) */
.school-tab-video-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.school-video-section {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.school-video-section .school-section-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: #134e4a;
}

.school-video-go-live-btn,
.school-video-live-controls .btn {
    margin-top: 8px;
}

.school-video-live-preview-wrap {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 2px solid #99f6e4;
}

.school-video-live-preview {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.school-video-live-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.6);
}

.school-video-live-badge {
    color: #ef4444;
    font-weight: 600;
    font-size: 14px;
}

.school-video-live-badge i {
    margin-right: 4px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.school-pending-videos {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.school-pending-video-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border: 1px solid #99f6e4;
}

.school-pending-video-name {
    font-size: 14px;
    color: #134e4a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.school-submitted-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.school-video-item {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #99f6e4;
}

.school-video-item video {
    display: block;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.school-video-item-date {
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
    color: #64748b;
}

.school-video-empty {
    margin: 0;
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* Scrollable feed (Facebook-style) for pictures and videos */
.school-feed-scroll {
    max-height: 55vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.school-video-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.school-video-delete-btn:hover {
    background: rgba(220, 38, 38, 0.9);
}

/* Note modals */
.school-note-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.school-note-modal-content {
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 20px;
    padding: 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(45, 212, 191, 0.5);
    position: relative;
}

.school-note-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
    color: #134e4a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s ease;
}

.school-note-modal-close:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.school-note-readonly-msg {
    font-size: 13px;
    color: #0f766e;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 12px;
    border-radius: 10px;
    margin: 0 0 12px 0;
    border-left: 4px solid #0d9488;
}

.school-note-modal-title {
    margin: 0 0 16px 0;
    font-size: 1.2rem;
    color: #134e4a;
}

.school-note-modal-content textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #99f6e4;
    border-radius: 12px;
    font-size: 15px;
    resize: vertical;
    margin-bottom: 16px;
    background: #fff;
    color: #1e293b;
}

.school-note-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.school-note-visibility-text {
    margin: 0 0 20px 0;
    color: #0f766e;
    font-size: 15px;
}

.school-btn-selected-users {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.school-btn-selected-users:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
}

.school-selected-users-panel {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(13, 148, 136, 0.3);
}

.school-selected-users-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #134e4a;
    font-weight: 600;
}

.school-selected-users-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.school-selected-user-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #99f6e4;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
}

.school-selected-users-list {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
    max-height: 160px;
    overflow-y: auto;
}

.school-selected-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #134e4a;
}

.school-selected-user-remove {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.school-selected-user-remove:hover {
    background: #dc2626;
    color: #fff;
}

/* Active state with matching colors - Updated to match darker gradients */
.menu-item[data-menu="home"].active {
    background-color: rgba(90, 103, 216, 0.15);
    border-left-color: #5a67d8;
}

.menu-item[data-menu="wallet"].active {
    background-color: rgba(217, 70, 239, 0.15);
    border-left-color: #d946ef;
}

.menu-item[data-menu="cashin"].active {
    background-color: rgba(59, 130, 246, 0.15);
    border-left-color: #3b82f6;
}

.menu-item[data-menu="cashinreceived"].active {
    background-color: rgba(16, 185, 129, 0.15);
    border-left-color: #10b981;
}

.menu-item[data-menu="sendmoney"].active {
    background-color: rgba(16, 185, 129, 0.15);
    border-left-color: #10b981;
}

.menu-item[data-menu="paybills"].active {
    background-color: rgba(245, 158, 11, 0.15);
    border-left-color: #f59e0b;
}

.menu-item[data-menu="globalpayments"].active {
    background-color: rgba(6, 182, 212, 0.15);
    border-left-color: #06b6d4;
}

.menu-item[data-menu="socialmedia"].active {
    background-color: rgba(139, 92, 246, 0.15);
    border-left-color: #8b5cf6;
}

.menu-item[data-menu="livevideo"].active {
    background-color: rgba(239, 68, 68, 0.15);
    border-left-color: #ef4444;
}

.menu-item[data-menu="farmersvlogger"].active,
.menu-item.farmers-vlogger.active {
    background-color: rgba(34, 197, 94, 0.15);
    border-left-color: #22c55e;
    color: #047857;
}

.menu-item[data-menu="dating"].active {
    background-color: rgba(236, 72, 153, 0.15);
    border-left-color: #ec4899;
}

.menu-item[data-menu="music"].active {
    background-color: rgba(249, 115, 22, 0.15);
    border-left-color: #f97316;
}

.menu-item[data-menu="youtube"].active {
    background-color: rgba(220, 38, 38, 0.15);
    border-left-color: #dc2626;
}

.menu-item[data-menu="airlines"].active {
    background-color: rgba(14, 165, 233, 0.15);
    border-left-color: #0ea5e9;
}

.menu-item[data-menu="hotels"].active {
    background-color: rgba(168, 85, 247, 0.15);
    border-left-color: #a855f7;
}

.menu-item[data-menu="cars"].active {
    background-color: rgba(245, 158, 11, 0.15);
    border-left-color: #f59e0b;
}

.menu-item[data-menu="ferry"].active {
    background-color: rgba(59, 130, 246, 0.15);
    border-left-color: #3b82f6;
}

.menu-item[data-menu="delivery"].active {
    background-color: rgba(249, 115, 22, 0.15);
    border-left-color: #f97316;
}

.menu-item[data-menu="emergency"].active {
    background-color: rgba(220, 38, 38, 0.15);
    border-left-color: #dc2626;
}

.menu-item[data-menu="jobhiring"].active {
    background-color: rgba(99, 102, 241, 0.15);
    border-left-color: #6366f1;
}

.menu-item[data-menu="games"].active {
    background-color: rgba(236, 72, 153, 0.15);
    border-left-color: #ec4899;
}

.menu-item[data-menu="gameseducational"].active {
    background-color: rgba(6, 182, 212, 0.15);
    border-left-color: #06b6d4;
}

.menu-item[data-menu="gamesonline"].active {
    background-color: rgba(196, 30, 58, 0.2);
    border-left-color: #c41e3a;
}

.menu-item[data-menu="accounting"].active {
    background-color: rgba(16, 185, 129, 0.15);
    border-left-color: #10b981;
}

.menu-item[data-menu="insurance"].active {
    background-color: rgba(245, 158, 11, 0.15);
    border-left-color: #f59e0b;
}

.menu-item[data-menu="marketplace"].active {
    background-color: rgba(139, 92, 246, 0.15);
    border-left-color: #8b5cf6;
}

.menu-item[data-menu="livestores"].active {
    background-color: rgba(20, 184, 166, 0.15);
    border-left-color: #14b8a6;
}

.menu-item[data-menu="livestores"].active i {
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.menu-item[data-menu="email"].active {
    background-color: rgba(59, 130, 246, 0.15);
    border-left-color: #3b82f6;
}

.menu-item[data-menu="advertisement"].active {
    background-color: rgba(245, 158, 11, 0.15);
    border-left-color: #f59e0b;
}

.menu-item[data-menu="tools"].active {
    background-color: rgba(100, 116, 139, 0.15);
    border-left-color: #64748b;
}

.menu-item[data-menu="settings"].active {
    background-color: rgba(99, 102, 241, 0.15);
    border-left-color: #6366f1;
}

.menu-item[data-menu="support"].active {
    background-color: rgba(6, 182, 212, 0.15);
    border-left-color: #06b6d4;
}

.menu-item[data-menu="schools"].active {
    background-color: rgba(13, 148, 136, 0.15);
    border-left-color: #0d9488;
}

/* Main Content Styles */
.main-content {
    margin-left: 300px;
    flex: 1;
    padding: 40px;
    min-height: 100vh;
    width: calc(100% - 300px);
    max-width: 100%;
    overflow-x: hidden;
}

.content-header {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.content-header-left {
    flex: 1;
    min-width: 0;
}

.content-header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-account-display {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
}

.user-account-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.user-first-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.user-account-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-account-badge.admin {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.user-account-badge.user {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-auth-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-auth-header:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}
.btn-auth-header:active {
    transform: translateY(0);
}

.content-header h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.content-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.content-body {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#content-panel.content-panel-superace {
    padding: clamp(8px, 1.5vw, 20px);
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
}
@media (max-width: 767px) {
    #content-panel.content-panel-superace {
        padding: 8px 6px;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    #content-panel.content-panel-superace {
        padding: 12px 10px;
    }
}

/* Hantak (coin-toss) game panel */
#content-panel.content-panel-hantak {
    padding: clamp(8px, 1.5vw, 20px);
    background: transparent;
}
.hantak-game-wrap {
    max-width: min(700px, 98vw);
    margin: 0 auto;
}
.hantak-container {
    padding: clamp(12px, 2vw, 24px);
    border-radius: 16px;
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 40%, #0f766e 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.hantak-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.hantak-title {
    margin: 0;
    font-size: clamp(18px, 3vw, 22px);
    color: #fff;
}
.hantak-title i {
    color: #fbbf24;
    margin-right: 8px;
}
.hantak-back-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.hantak-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.hantak-info {
    margin-bottom: 16px;
}
.hantak-balance {
    font-size: clamp(14px, 2vw, 16px);
    color: #fbbf24;
    font-weight: 700;
}
.hantak-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin-right: 6px;
}
.hantak-countdown-box {
    text-align: center;
    padding: 14px 20px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 2px solid rgba(251, 191, 36, 0.4);
}
.hantak-countdown-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-right: 8px;
}
.hantak-countdown-value {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
}
.hantak-next-result-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 10px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.4);
    animation: hantakDotBlink 1s ease-in-out infinite;
}
.hantak-next-result-dot.head {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
.hantak-next-result-dot.tail {
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}
.hantak-next-result-dot.draw {
    background: #a855f7;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}
@keyframes hantakDotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}
.hantak-last-round {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}
.hantak-drawing {
    text-align: center;
    padding: 16px;
    margin-bottom: 16px;
    background: rgba(251, 191, 36, 0.25);
    border: 2px solid rgba(251, 191, 36, 0.6);
    border-radius: 12px;
    color: #fbbf24;
    font-weight: 700;
    font-size: 18px;
}
.hantak-drawing.hantak-drawing-visible,
.hantak-drawing-visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.hantak-on-hold {
    text-align: center;
    padding: 14px 20px;
    margin-bottom: 16px;
    background: rgba(251, 191, 36, 0.2);
    border: 2px solid rgba(251, 191, 36, 0.6);
    border-radius: 12px;
    color: #fbbf24;
    font-weight: 600;
    font-size: 15px;
}
.hantak-winner-info {
    padding: 14px 18px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.hantak-winner-info-intro {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
}
.hantak-winner-if-row {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}
.hantak-winner-if-row:last-child {
    margin-bottom: 0;
}
.hantak-arena {
    position: relative;
    min-height: 140px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    border: 2px solid rgba(251, 191, 36, 0.3);
}
.hantak-tosser-wrap {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    z-index: 3;
}
.hantak-tosser-wrap.hantak-tosser-tossing {
    animation: hantakTosserToss 1.2s ease-in-out forwards;
}
@keyframes hantakTosserToss {
    0% { transform: translateY(-50%) translateX(0) scale(1); }
    20% { transform: translateY(-70%) translateX(4px) scale(1.08); }
    40% { transform: translateY(-85%) translateX(8px) scale(1.12); }
    60% { transform: translateY(-70%) translateX(6px) scale(1.05); }
    80% { transform: translateY(-55%) translateX(3px) scale(1.02); }
    100% { transform: translateY(-50%) translateX(0) scale(1); }
}
.hantak-tosser-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hantak-tosser-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    font-size: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}
.hantak-tosser-placeholder .hantak-tosser-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(251, 191, 36, 0.9);
}
.hantak-coin-in-flight {
    display: none;
    position: absolute;
    left: 90px;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    margin-left: -24px;
    pointer-events: none;
    z-index: 5;
}
.hantak-coin-in-flight.hantak-coin-animating {
    display: block !important;
    animation: hantakCoinArc 1.2s ease-in-out forwards;
}
.hantak-coin-in-flight .hantak-coin-fly-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hantak-coin-in-flight.use-fallback .hantak-coin-fly-img {
    display: none;
}
.hantak-coin-in-flight.use-fallback .hantak-coin-fly-fallback {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
@keyframes hantakCoinArc {
    0% {
        left: 90px;
        top: 50%;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    40% {
        left: 50%;
        top: 20%;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        left: 50%;
        top: 50%;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
.hantak-arena-result-zone {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    pointer-events: none;
    visibility: hidden;
}
.hantak-arena-result-zone.hantak-arena-result-visible {
    visibility: visible;
    width: auto;
    height: auto;
    margin-left: 0;
    margin-top: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hantak-arena-result-zone.hantak-arena-result-visible .hantak-result-coins {
    margin: 0;
    gap: 10px;
}
.hantak-arena-result-zone.hantak-arena-result-visible .hantak-result-coin {
    width: 52px;
    height: 52px;
}
.hantak-arena-result-zone.hantak-arena-result-visible .hantak-coin-fallback {
    font-size: 28px;
}
.hantak-coins-rotating .hantak-result-coin {
    animation: hantakCoinSpin 0.6s linear infinite;
}
.hantak-coins-rotating .hantak-result-coin-2 { animation-delay: 0.15s; }
.hantak-coins-rotating .hantak-result-coin-3 { animation-delay: 0.3s; }
@keyframes hantakCoinSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hantak-sides {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 600px) {
    .hantak-sides {
        grid-template-columns: 1fr;
    }
}
.hantak-side {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.15);
}
.hantak-side-head {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
}
.hantak-side-tail {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
}
.hantak-side-draw {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.5);
}
.hantak-side-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.hantak-side-stat {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}
.hantak-side-stat span {
    font-weight: 700;
    color: #fbbf24;
}
.hantak-side-stat.hantak-possible-win {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
}
.hantak-possible-win-note {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    display: block;
    margin-top: 2px;
}
.hantak-bet-btn {
    margin-top: 12px;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}
.hantak-bet-head {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.hantak-bet-head:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
}
.hantak-bet-tail {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.hantak-bet-tail:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}
.hantak-bet-draw {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.hantak-bet-draw:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
}
.hantak-amount-row {
    margin-bottom: 16px;
}
.hantak-amount-row .hantak-label {
    display: block;
    margin-bottom: 8px;
}
.hantak-amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hantak-amount-btn {
    min-width: 52px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.hantak-amount-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.hantak-amount-btn.active {
    background: rgba(251, 191, 36, 0.4);
    border-color: #fbbf24;
    color: #fbbf24;
}
.hantak-result-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
}
.hantak-result-inner {
    background: linear-gradient(165deg, #1e293b 0%, #0f766e 100%);
    padding: 28px 32px;
    border-radius: 16px;
    border: 2px solid rgba(251, 191, 36, 0.5);
    text-align: center;
    max-width: 360px;
}
.hantak-result-text {
    font-size: 24px;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 12px;
}
.hantak-result-counts {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}
.hantak-result-coins {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.hantak-result-coin {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fbbf24 0%, #d97706 100%);
    border: 4px solid rgba(251, 191, 36, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: hantakCoinAppear 0.4s ease backwards;
}
.hantak-result-coin-1 { animation-delay: 0s; }
.hantak-result-coin-2 { animation-delay: 0.1s; }
.hantak-result-coin-3 { animation-delay: 0.2s; }
.hantak-result-coin .hantak-coin-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hantak-result-coin .hantak-coin-fallback {
    width: 100%;
    height: 100%;
}
@keyframes hantakCoinAppear {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes hantakCoinSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hantak-result-payout {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
}
.hantak-result-payout.hantak-result-payout-win {
    font-weight: 800;
    color: #fbbf24;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.9), 0 0 24px rgba(251, 191, 36, 0.7);
    animation: hantakPayoutFlash 0.75s ease-in-out infinite alternate;
}
@keyframes hantakPayoutFlash {
    0% {
        opacity: 0.4;
        transform: scale(0.96);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}
@media (max-width: 500px) {
    .hantak-sides {
        grid-template-columns: 1fr;
    }
}

.panel-content {
    animation: fadeIn 0.3s ease;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.development-notice {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 18px 30px;
    border-radius: 40px;
    border: 2px dashed rgba(251, 191, 36, 0.8);
    background: rgba(255, 243, 205, 0.9);
    color: #92400e;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: noticeBlink 1.5s ease-in-out infinite;
    box-shadow: 0 10px 25px rgba(250, 204, 21, 0.25);
}

.development-notice i {
    font-size: 20px;
}

@keyframes noticeBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.97);
    }
}

.panel-title {
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 20px;
    font-weight: 600;
}

.panel-description {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(235, 51, 73, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 51, 73, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.video-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.video-status {
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 600;
}

.status-ready {
    background: #d1fae5;
    color: #065f46;
}

.status-recording {
    background: #fee2e2;
    color: #991b1b;
}

.status-stopped {
    background: #e0e7ff;
    color: #3730a3;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.card-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* Pay Bills – modern category cards with gradient */
.paybills-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.paybills-category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 140px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.paybills-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.paybills-category-card:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.paybills-cat-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.paybills-cat-electricity .paybills-cat-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #dc2626 100%);
}

.paybills-cat-water .paybills-cat-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
}

.paybills-cat-internet .paybills-cat-gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
}

.paybills-cat-mobile .paybills-cat-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

.paybills-cat-schools .paybills-cat-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
}

.paybills-cat-hospitals .paybills-cat-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
}

.paybills-cat-stores .paybills-cat-gradient {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
}

.paybills-cat-government .paybills-cat-gradient {
    background: linear-gradient(135deg, #475569 0%, #334155 50%, #1e293b 100%);
}

.paybills-cat-content {
    position: relative;
    z-index: 1;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 140px;
}

.paybills-cat-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.95;
}

.paybills-cat-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
}

.paybills-cat-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Pay Bills – billers list (after selecting a category) */
.paybills-billers-section {
    margin-top: 24px;
}

.paybills-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.paybills-back-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.paybills-billers-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.paybills-billers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.paybills-biller-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.paybills-biller-item:hover {
    border-color: #667eea;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.paybills-biller-name {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
}

.paybills-biller-arrow {
    font-size: 12px;
    color: #94a3b8;
}

/* Pay Bills – biller URL viewer modal (CEBECO etc. open inside site) */
.paybills-url-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.paybills-url-viewer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}
.paybills-url-viewer-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.paybills-url-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}
.paybills-url-viewer-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}
.paybills-url-viewer-close {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    font-size: 18px;
}
.paybills-url-viewer-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.paybills-url-viewer-hint {
    margin: 0;
    padding: 10px 20px;
    font-size: 13px;
    color: #64748b;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.paybills-url-viewer-toolbar {
    padding: 10px 20px;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.paybills-url-viewer-newtab-label {
    font-weight: 600;
    margin-right: 8px;
}
.paybills-viewer-newtab-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}
.paybills-viewer-newtab-link:hover {
    text-decoration: underline;
}
.paybills-url-viewer-iframe {
    flex: 1;
    width: 100%;
    min-height: 400px;
    border: none;
    display: block;
}
.paybills-biller-item-with-link .paybills-biller-name {
    color: #667eea;
}
.paybills-biller-link-icon {
    font-size: 12px;
    margin-left: 6px;
    color: #667eea;
}

/* AI Chat Panel (Tools sub-panel) */
.ai-chat-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.ai-chat-intro {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #64748b;
}

.ai-chat-open-external {
    margin-bottom: 12px;
    margin-top: 4px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ai-chat-open-external .btn {
    flex-shrink: 0;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    max-height: 360px;
}

.ai-chat-msg {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 90%;
    line-height: 1.5;
    word-wrap: break-word;
}

.ai-chat-msg-user {
    margin-left: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.ai-chat-msg-assistant {
    margin-right: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #1e3a8a;
}

.ai-chat-typing {
    color: #64748b;
    font-style: italic;
}

.ai-chat-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    padding: 0 0 8px 0;
}

.ai-chat-input {
    flex: 1;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    resize: none;
    font-family: inherit;
}

.ai-chat-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-chat-send {
    flex-shrink: 0;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.info-box h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.info-box p {
    margin: 5px 0;
    opacity: 0.95;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Home Hero */
.home-hero {
    text-align: center;
    padding: 2rem 1rem 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
}

.home-hero-tagline {
    margin: 0 0 1rem 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Get Started button – logo-style gradient that moves and blinks */
@keyframes home-hero-cta-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes home-hero-cta-blink {
    0%, 100% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5), 0 0 0 0 rgba(240, 147, 251, 0.4); }
    50% { box-shadow: 0 6px 24px rgba(118, 75, 162, 0.6), 0 0 20px 4px rgba(240, 147, 251, 0.25); }
}

.home-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 35%, #f093fb 70%, #667eea 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #fff;
    border: none;
    animation: home-hero-cta-gradient 4s ease infinite, home-hero-cta-blink 2.5s ease-in-out infinite;
}

.home-hero-cta:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 35%, #e082ea 70%, #5a67d8 100%);
    background-size: 200% 200%;
    color: #fff;
    animation: home-hero-cta-gradient 2.5s ease infinite, home-hero-cta-blink 1.5s ease-in-out infinite;
}

/* Home development notice – visible and blinking */
@keyframes home-dev-notice-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5); }
    50% { opacity: 0.75; box-shadow: 0 0 12px 4px rgba(245, 158, 11, 0.35); }
}

.home-dev-notice {
    font-size: 1.1rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 1.5rem;
    padding: 0.85rem 1.25rem;
    background: rgba(251, 191, 36, 0.35);
    border: 2px solid rgba(245, 158, 11, 0.7);
    border-radius: 10px;
    animation: home-dev-notice-blink 1.5s ease-in-out infinite;
    text-align: center;
}

.home-dev-notice i {
    margin-right: 0.5rem;
    color: #b45309;
}

/* Home Latest activity panel */
.home-activity-panel {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.home-activity-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-activity-list {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    margin-bottom: 1rem;
}

.home-activity-list.home-activity-empty-wrap {
    max-height: none;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-activity-actions {
    display: flex;
    justify-content: flex-end;
}

.home-activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s;
}

.home-activity-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.home-activity-item-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.home-activity-item-body {
    flex: 1;
    min-width: 0;
}

.home-activity-item-meta {
    margin-bottom: 4px;
}

.home-activity-item-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.home-activity-item-time {
    font-size: 0.8rem;
    color: #64748b;
    margin-left: 6px;
}

.home-activity-item-content {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.45;
}

.home-activity-item-media {
    margin-top: 8px;
}

.home-activity-item-thumb {
    max-width: 120px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.home-activity-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
}

.home-activity-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.7;
}

.home-activity-empty p {
    margin: 0;
    font-size: 0.95rem;
}

/* Home Get Started section */
.home-get-started {
    margin: 2rem 0;
    padding-top: 1.5rem;
}

.home-get-started-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.home-step-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.home-step-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.home-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.home-step-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

.home-step-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.home-step-card .btn {
    width: 100%;
    justify-content: center;
}

/* Home step card preview image (below title/desc in step cards) */
.home-step-preview {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #e2e8f0;
}

.home-step-preview img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Home feature card preview image */
.home-blink-card.card .card-preview,
.card-preview {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #e2e8f0;
}

.home-blink-card.card .card-preview img,
.card-preview img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Blink animation: on hover (desktop) and when card is in viewport center (mobile) */
@keyframes home-card-blink {
    0%, 100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.35), 0 8px 24px rgba(102, 126, 234, 0.2); }
}

.home-blink-card {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.home-blink-card:hover,
.home-blink-card.home-card-centered {
    animation: home-card-blink 1.2s ease-in-out infinite;
}

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

/* Airlines – status blink beside airline name/selection */
@keyframes airline-status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.airline-status-blink {
    animation: airline-status-blink 1.5s ease-in-out infinite;
    font-weight: 600;
}

.airline-status-available {
    color: #059669;
}

.airline-status-activation {
    color: #d97706;
}

.airline-status-coming-soon {
    color: #6366f1;
}

.airline-status-line {
    min-height: 22px;
}

.airlines-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.airlines-search-input {
    width: 280px;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid #667eea;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    animation: airlines-search-blink 2.2s ease-in-out infinite;
    box-sizing: border-box;
}

.airlines-search-input::placeholder {
    color: #94a3b8;
}

.airlines-search-input:focus {
    outline: none;
}

@keyframes airlines-search-blink {
    0%, 100% {
        border-color: #667eea;
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25), 0 0 12px rgba(102, 126, 234, 0.35);
    }
    50% {
        border-color: #764ba2;
        box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.3), 0 0 18px rgba(240, 147, 251, 0.4);
    }
}

.airlines-panel-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.airlines-list-section {
    flex-shrink: 0;
}

.airlines-list-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
}

.airlines-list-toggle:hover {
    background: #e2e8f0;
}

.airlines-list-wrapper {
    transition: opacity 0.2s;
}

.airlines-list-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    align-content: flex-start;
}

.airline-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.airline-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.airline-row.selected {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
    outline: 2px solid #1e293b;
}

.airline-row .airline-row-name,
.airline-row .airline-status-coming-soon {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.airline-row-logo-wrap {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.airline-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.airline-logo-fallback {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
}

.airline-row-name {
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.airline-row .airline-status-coming-soon {
    font-size: 12px;
    flex-shrink: 0;
}

.airline-status-line {
    margin-top: 6px;
    font-size: 13px;
    min-height: 20px;
}

.airline-detail-container {
    flex: 1;
    min-height: 400px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.airline-detail-container.airline-detail-expanded {
    min-height: 60vh;
}

.airline-detail-container .airline-detail-iframe,
.airline-detail-container iframe {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.airline-detail-container:not(.airline-detail-expanded) .airline-detail-iframe,
.airline-detail-container:not(.airline-detail-expanded) iframe {
    height: 500px;
    min-height: 400px;
}

.airline-detail-container.airline-detail-expanded .airline-detail-iframe,
.airline-detail-container.airline-detail-expanded iframe {
    height: calc(100vh - 180px);
    min-height: 500px;
}

.airline-detail-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-right: 10px;
}

/* Scrollbar Styling for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.5);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.7);
}

/* Farmers Vlogger Styles */
.farmers-panel {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    min-height: 100vh;
    padding: 20px;
    margin: -40px;
    border-radius: 0;
}

.farmers-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
}

.farmers-logo {
    font-size: 40px;
    color: #10b981;
}

.farmers-title {
    font-size: 28px;
    font-weight: 700;
    color: #047857;
}

.go-live-btn-top {
    margin-left: auto;
}

.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    border: 2px solid #10b981;
    background: #fff;
    color: #10b981;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tab:hover {
    background: rgba(16, 185, 129, 0.1);
}

.tab.active {
    background: #10b981;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.vloggers-panel {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.vlogger-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.vlogger-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.vlogger-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.vlogger-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

.vlogger-info {
    flex: 1;
}

.vlogger-name {
    font-weight: 600;
    color: #047857;
    font-size: 16px;
    margin-bottom: 5px;
}

.vlogger-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #64748b;
}

.vlogger-stats i {
    margin-right: 5px;
}

/* Facebook-like Social Media */
.social-feed {
    background: #f0f2f5;
    min-height: 100vh;
    padding: 20px;
    margin: -40px;
    border-radius: 0;
}

.social-header {
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-composer {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e4e6eb;
    border-radius: 20px;
    font-size: 15px;
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #e4e6eb;
}

.post-action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #f0f2f5;
    border-radius: 8px;
    color: #65676b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-action-btn:hover {
    background: #e4e6eb;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.post-content {
    margin-bottom: 15px;
    color: #1c1e21;
    line-height: 1.6;
}

.post-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    max-height: 400px;
    object-fit: cover;
    max-width: 100%;
    height: auto;
}

.post-engagement {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #e4e6eb;
    border-bottom: 1px solid #e4e6eb;
    margin-bottom: 10px;
}

.engagement-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: none;
    color: #65676b;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.engagement-btn:hover {
    background: #f0f2f5;
}

.engagement-btn.liked {
    color: #1877f2;
}

/* BIGO-like Dating */
.dating-panel {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    min-height: 100vh;
    padding: 20px;
    margin: -40px;
    border-radius: 0;
}

.live-stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stream-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stream-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stream-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.stream-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc2626;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stream-info {
    padding: 15px;
}

.streamer-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.stream-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
}

.gifts-panel {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gift-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gift-item:hover {
    border-color: #667eea;
    transform: scale(1.1);
}

.gift-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.gift-name {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

.gift-price {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

/* Games Panel */
.games-panel {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    min-height: 100vh;
    padding: 20px;
    margin: -40px;
    border-radius: 0;
}

.game-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.game-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px) rotateY(5deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.game-thumbnail {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
}

.game-info {
    padding: 15px;
    min-width: 0;
}

.game-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.3;
}

.game-age {
    font-size: 12px;
    color: #64748b;
}

.game-score {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    margin-top: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 6px;
    display: inline-block;
}

/* Games (Free) – modal and in-game UI */
.games-free-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.games-free-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
}
.games-free-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.games-free-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.games-free-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}
.games-free-modal-close {
    padding: 8px 12px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    font-size: 18px;
}
.games-free-modal-close:hover {
    background: rgba(255,255,255,0.35);
}
.games-free-modal-body {
    padding: 24px;
    overflow-y: auto;
}
.games-free-prompt {
    font-size: 18px;
    color: #1e293b;
    margin: 0 0 20px 0;
    text-align: center;
}
.games-free-score {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    margin-top: 16px;
    text-align: center;
}
.games-free-color-options,
.games-free-animal-options,
.games-free-shape-options,
.games-free-number-options,
.games-free-abc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}
.games-free-color-btn {
    width: 80px;
    height: 80px;
    border: 4px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.games-free-color-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.games-free-animal-btn,
.games-free-shape-btn {
    padding: 20px 28px;
    font-size: 42px;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.games-free-animal-btn:hover,
.games-free-shape-btn:hover {
    transform: scale(1.05);
    background: #e2e8f0;
}
.games-free-number-btn,
.games-free-abc-btn {
    padding: 16px 28px;
    font-size: 22px;
    font-weight: 700;
    border: 3px solid #667eea;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.games-free-number-btn:hover,
.games-free-abc-btn:hover {
    transform: scale(1.05);
    background: rgba(102, 126, 234, 0.25);
}
.games-free-dots {
    font-size: 28px;
    letter-spacing: 8px;
    text-align: center;
    margin: 16px 0;
    color: #1e293b;
}
.games-free-memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.games-free-memory-card {
    aspect-ratio: 1;
    border: 3px solid #e2e8f0;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.games-free-memory-card:hover {
    transform: scale(1.03);
}
.games-free-memory-card[data-hidden="1"] {
    background: #cbd5e1;
    color: #64748b;
}
.games-free-racing-track {
    height: 220px;
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    position: relative;
    margin-bottom: 16px;
}
.games-free-car {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 42px;
    transition: left 0.15s ease;
}
.games-free-obstacle {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background: #ef4444;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.games-free-puzzle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.games-free-puzzle-tile {
    aspect-ratio: 1;
    border: 3px solid #667eea;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.15);
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.games-free-puzzle-tile[data-empty="1"] {
    background: #e2e8f0;
    cursor: default;
    visibility: hidden;
}
.games-free-rps-options,
.games-free-card-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 16px 0;
}
.games-free-rps-btn,
.games-free-card-btn {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: 3px solid #667eea;
    border-radius: 12px;
    background: #fff;
    color: #667eea;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.games-free-rps-btn:hover,
.games-free-card-btn:hover {
    transform: scale(1.05);
    background: rgba(102, 126, 234, 0.15);
}
.games-free-rps-result,
.games-free-quest-desc {
    text-align: center;
    margin: 16px 0;
    color: #475569;
    font-size: 16px;
}
.games-free-quest-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}
.games-free-quest-btn {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #667eea;
    border-radius: 10px;
    background: #fff;
    color: #667eea;
    cursor: pointer;
}
.games-free-quest-btn:hover {
    background: rgba(102, 126, 234, 0.15);
}
.games-free-space-arena {
    height: 280px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    position: relative;
    margin-bottom: 16px;
}
.games-free-space-target {
    position: absolute;
    padding: 12px 16px;
    font-size: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.15s;
}
.games-free-space-target:hover {
    transform: scale(1.2);
}

/* Games - Online lobby */
.games-online-age-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(15, 118, 110, 0.2) 100%);
    border: 2px solid rgba(13, 148, 136, 0.5);
    border-radius: 12px;
    color: #0f766e;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}
.games-online-age-notice i {
    font-size: 20px;
    flex-shrink: 0;
}
.games-online-panel .game-card-online:hover {
    box-shadow: 0 12px 32px rgba(196, 30, 58, 0.25);
}
.game-card-online.game-card-coming-soon:hover {
    transform: none;
}

/* Super Ace slot – cards fill the panel (fit entire Super Ace box) */
.superace-container {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: min(1200px, 98vw);
    margin: 0 auto;
    min-height: min(90vh, 860px);
    padding: clamp(12px, 2vw, 24px);
    border-radius: 20px;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.25);
    background: linear-gradient(165deg, #1a2744 0%, #243b55 22%, #1e3a5a 45%, #2d4a6e 65%, #1e4976 85%, #1a3658 100%);
    --superace-reel-h: min(500px, 58vh);
    --superace-card-h: calc((var(--superace-reel-h) - 3 * 8px) / 4);
}
.superace-reels {
    --superace-card-w: min(160px, calc((100% - 48px) / 5));
}
.superace-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(120, 180, 220, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.superace-container > * {
    position: relative;
    z-index: 1;
}
.superace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(8px, 1.5vw, 14px);
    margin-bottom: clamp(12px, 1.8vw, 20px);
}
.superace-title {
    margin: 0;
    font-size: clamp(16px, 3.5vw, 22px);
    color: #fff;
}
.superace-title i {
    color: #c41e3a;
    margin-right: 8px;
}
.superace-back-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.superace-back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.superace-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.superace-balance,
.superace-win {
    font-weight: 700;
    color: #fbbf24;
    font-size: clamp(13px, 2.2vw, 17px);
}
.superace-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(10px, 1.4vw, 12px);
    font-weight: 600;
    margin-right: 6px;
}
.superace-bet-row {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 10px);
}
.superace-bet-options {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 1vw, 8px);
}
.superace-bet-btn {
    min-height: 44px;
    min-width: 44px;
    padding: clamp(6px, 1.2vw, 10px) clamp(10px, 1.8vw, 14px);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.superace-bet-btn:hover,
.superace-bet-btn.active {
    background: #c41e3a;
    border-color: #c41e3a;
    color: #fff;
}
.superace-reels-wrap {
    margin-bottom: clamp(16px, 2.5vw, 24px);
    padding: clamp(14px, 2vw, 22px);
    background: linear-gradient(180deg, rgba(30, 58, 90, 0.4) 0%, rgba(20, 40, 65, 0.5) 100%);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.superace-reels {
    --superace-card-w: max(64px, min(240px, calc((100% - 48px) / 5)));
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}
.superace-reel {
    width: var(--superace-card-w, 80px);
    height: var(--superace-reel-h, 380px);
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}
.superace-reel-spinning .superace-reel-strip {
    filter: brightness(1.08);
}
.superace-reel-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px 0;
    will-change: transform;
}
.superace-card {
    width: calc(100% - 4px);
    height: var(--superace-card-h, 72px);
    min-height: var(--superace-card-h, 72px);
    margin: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: #1a2332;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    position: relative;
    box-sizing: border-box;
}
.superace-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.superace-card-rank {
    font-size: 18px;
    line-height: 1.2;
    color: #1a1a2e;
}
.superace-card-suit {
    font-size: 14px;
    color: #1a1a2e;
    opacity: 0.9;
}
.superace-symbol {
    width: 52px;
    height: 56px;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.superace-symbol .superace-card-rank,
.superace-symbol .superace-card-suit { color: #fff; }
.superace-symbol-A { background: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%); }
.superace-symbol-K { background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%); }
.superace-symbol-Q { background: linear-gradient(135deg, #7c2d8a 0%, #4a1a52 100%); }
.superace-symbol-J { background: linear-gradient(135deg, #1e5f3a 0%, #0f4427 100%); }
.superace-symbol-10 { background: linear-gradient(135deg, #5f3a1e 0%, #44270f 100%); }
.superace-symbol-9 { background: linear-gradient(135deg, #3d3d3d 0%, #252525 100%); }
.superace-symbol-SC { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.superace-symbol-W { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }
.superace-symbol-W .superace-card-rank,
.superace-symbol-W .superace-card-suit { color: #1a1a2e; }
.superace-symbol-A .superace-card-rank,
.superace-symbol-A .superace-card-suit,
.superace-symbol-K .superace-card-rank,
.superace-symbol-K .superace-card-suit,
.superace-symbol-Q .superace-card-rank,
.superace-symbol-Q .superace-card-suit,
.superace-symbol-J .superace-card-rank,
.superace-symbol-J .superace-card-suit,
.superace-symbol-10 .superace-card-rank,
.superace-symbol-10 .superace-card-suit,
.superace-symbol-9 .superace-card-rank,
.superace-symbol-9 .superace-card-suit,
.superace-symbol-SC .superace-card-rank,
.superace-symbol-SC .superace-card-suit { color: #fff; }
@media (min-width: 768px) {
    .superace-container {
        --superace-reel-h: min(560px, 62vh);
    }
}
@media (min-width: 1024px) {
    .superace-container {
        --superace-reel-h: min(620px, 66vh);
    }
}
.superace-win-popup {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    animation: superacePopupFade 0.3s ease;
}
@keyframes superacePopupFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.superace-win-popup-inner {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #fbbf24;
    border-radius: 16px;
    padding: 28px 36px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.4);
    animation: superacePopupScale 0.35s ease;
}
@keyframes superacePopupScale {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.superace-win-popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 8px;
}
.superace-win-popup-amount {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}
.superace-win-popup-close {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%);
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}
.superace-win-popup-close:hover {
    opacity: 0.95;
}
.superace-spin-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%);
    border: none;
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.superace-spin-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
}
.superace-spin-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Educational games – players & invite */
.educational-players-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.educational-players-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.educational-players-scores-list {
    margin-bottom: 16px;
    min-height: 48px;
}

.educational-player-score-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.educational-player-score-row.educational-player-you {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    border-color: rgba(102, 126, 234, 0.3);
}

.educational-player-name {
    flex: 1;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.educational-player-score {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
}

.educational-player-remove {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
}

.educational-player-remove:hover {
    color: #dc2626;
}

.educational-players-empty {
    margin: 0;
    padding: 12px 0;
    font-size: 0.9rem;
    color: #64748b;
}

.educational-invite-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.educational-invite-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.educational-invite-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.educational-invite-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
}

.educational-invite-input:focus {
    outline: none;
    border-color: #667eea;
}

.educational-invited-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.educational-invited-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #e0e7ff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #3730a3;
}

.educational-invited-remove {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0 2px;
}

.educational-invited-remove:hover {
    color: #dc2626;
}

/* Educational games search */
.educational-games-search-wrap {
    position: relative;
    margin-bottom: 24px;
    max-width: 420px;
}

.educational-games-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.educational-games-search-input::placeholder {
    color: #94a3b8;
}

.educational-games-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.educational-games-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
}

.educational-games-no-results {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #991b1b;
    font-size: 15px;
}

.educational-games-no-results #educationalGamesSearchQuery {
    font-weight: 700;
}

@media (max-width: 480px) {
    .educational-games-search-wrap {
        max-width: 100%;
    }
    .educational-games-search-input {
        font-size: 16px;
        padding: 10px 14px 10px 40px;
    }
    .educational-games-search-icon {
        left: 12px;
        font-size: 16px;
    }
    .game-name {
        font-size: 14px;
    }
}

.game-score::before {
    content: '📊 ';
    margin-right: 4px;
}

/* Business Accounting */
.accounting-panel {
    background: #f8fafc;
}

/* Business selector and Create Additional Business Name */
.accounting-business-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.accounting-business-select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accounting-business-label {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

.accounting-business-select {
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    min-width: 200px;
    background: #fff;
    color: #1e293b;
}

.accounting-create-business-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.accounting-clear-entries-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fef2f2;
}
.accounting-clear-entries-btn:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.accounting-create-business-form {
    margin-bottom: 20px;
    padding: 20px;
    background: #f0f9ff;
    border: 2px solid #bae6fd;
    border-radius: 12px;
}

.accounting-create-business-inner {
    max-width: 420px;
}

.accounting-create-business-title {
    font-size: 18px;
    font-weight: 700;
    color: #0c4a6e;
    margin: 0 0 8px 0;
}

.accounting-create-business-desc {
    font-size: 14px;
    color: #0369a1;
    margin: 0 0 16px 0;
}

.accounting-create-business-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.accounting-create-business-error {
    margin: 12px 0 0 0;
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 14px;
}

/* Create New Accounting Record – dropdown bar */
.accounting-create-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.accounting-create-dropdown:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.accounting-create-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accounting-create-label i {
    font-size: 20px;
}

.accounting-create-chevron {
    font-size: 14px;
    transition: transform 0.2s;
}

/* Expandable content – tabs and bookkeeping forms (hidden until dropdown opened) */
.accounting-create-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accounting-create-content.accounting-create-open {
    max-height: 5000px;
}

.accounting-private-notice {
    margin: 16px 0 20px 0;
    padding: 12px 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #065f46;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accounting-private-notice i {
    color: #059669;
}

.accounting-expired-banner {
    margin-bottom: 16px;
    padding: 14px 18px;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    color: #92400e;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.accounting-expired-banner i {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.accounting-download-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 24px 0 8px 0;
}

.accounting-download-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 16px 0;
}

.accounting-sales-type-wrap .form-group label {
    font-weight: 600;
    color: #475569;
}

.accounting-download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.accounting-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.accounting-tabs-wrap {
    flex-wrap: wrap;
}

#accountingTabPanels {
    position: relative;
}

.accounting-tab-panel {
    width: 100%;
}

.accounting-full-list-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.report-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.report-table-accountancy-entries .accountancy-entry-row:hover {
    background: #f0f9ff;
}

.accounting-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.accounting-edit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.accounting-edit-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.accounting-edit-modal-content .form-group { margin-bottom: 16px; }
.accounting-edit-modal-content .form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: #334155; }
.accounting-edit-modal-content input, .accounting-edit-modal-content select, .accounting-edit-modal-content textarea {
    width: 100%; padding: 10px 12px; border: 2px solid #e2e8f0; border-radius: 8px; box-sizing: border-box;
}
.accounting-edit-modal-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e2e8f0; }

.accountancy-entry-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.accountancy-entry-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.accountancy-entry-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.accountancy-entry-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.accountancy-entry-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.accountancy-entry-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #64748b;
    border-radius: 8px;
}

.accountancy-entry-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.accountancy-entry-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.accountancy-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accountancy-detail-section {
    font-size: 14px;
    color: #475569;
    padding-bottom: 4px;
}

.accountancy-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.accountancy-detail-row span:first-child {
    color: #64748b;
    flex-shrink: 0;
}

.accountancy-detail-row span:last-child {
    color: #1e293b;
    text-align: right;
}

/* Balance Sheet panel */
.balance-sheet-panel {
    max-width: 720px;
}

.balance-sheet-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.balance-sheet-main-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.balance-sheet-sub-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 16px 0 10px 0;
}

.balance-sheet-sub-title:first-of-type {
    margin-top: 0;
}

.balance-sheet-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.balance-sheet-row {
    display: grid;
    grid-template-columns: 1fr 140px;
    align-items: center;
    gap: 16px;
}

.balance-sheet-row label {
    font-size: 14px;
    color: #334155;
}

.balance-sheet-contra {
    font-size: 12px;
    color: #64748b;
    font-weight: normal;
}

.balance-sheet-input {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    text-align: right;
}

.balance-sheet-input:focus {
    border-color: #667eea;
    outline: none;
}

.balance-sheet-totals {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    border: 2px solid #0ea5e9;
}

.balance-sheet-equation {
    font-size: 16px;
    margin: 12px 0;
}

.balance-sheet-equation .bs-total {
    font-weight: 700;
    color: #0c4a6e;
}

.balance-sheet-equation strong {
    margin: 0 8px;
    color: #0369a1;
}

.bs-equation-status {
    margin: 8px 0 0 0;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .balance-sheet-row {
        grid-template-columns: 1fr;
    }
}

.accounting-tab {
    padding: 12px 24px;
    border: none;
    background: none;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.accounting-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.accounting-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

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

.report-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.report-table th,
.report-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.report-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

/* Marketplace */
.marketplace-panel {
    padding: 0 0 40px 0;
}

.marketplace-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.marketplace-search-row {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 260px;
}

.marketplace-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
}

.marketplace-search-input:focus {
    outline: none;
    border-color: #667eea;
}

.marketplace-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.marketplace-cart-badge {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #667eea;
    border-radius: 10px;
    margin-left: 6px;
    line-height: 20px;
    text-align: center;
}

.marketplace-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.marketplace-cat-btn {
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.marketplace-cat-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.marketplace-cat-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
}

.marketplace-category-section {
    margin-bottom: 32px;
}

.marketplace-category-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.marketplace-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.marketplace-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0;
}

.marketplace-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.marketplace-product-image {
    height: 140px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 36px;
}

.marketplace-product-info {
    padding: 16px;
}

.marketplace-product-title {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 6px;
}

.marketplace-product-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.marketplace-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.marketplace-product-price {
    font-weight: 700;
    font-size: 18px;
    color: #059669;
}

.marketplace-product-seller {
    font-size: 12px;
    color: #94a3b8;
}

.marketplace-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.marketplace-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: #cbd5e1;
}

.marketplace-detail-panel,
.marketplace-sell-panel,
.marketplace-cart-panel {
    max-width: 700px;
}

.marketplace-detail-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

@media (max-width: 600px) {
    .marketplace-detail-card {
        grid-template-columns: 1fr;
    }
}

.marketplace-detail-image {
    height: 200px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 48px;
}

.marketplace-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #059669;
    margin: 12px 0;
}

.marketplace-sell-form {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

.marketplace-sell-form label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.marketplace-sell-form input,
.marketplace-sell-form select,
.marketplace-sell-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

/* Job Hiring (Worldwide) */
.jobhiring-panel {
    padding: 0 0 40px 0;
}

.jobhiring-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.jobhiring-filter-item {
    margin-bottom: 0;
}

.jobhiring-country-select {
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
}

.jobhiring-country-select:focus {
    outline: none;
    border-color: #667eea;
}

.jobhiring-filter-item input[type="text"] {
    min-width: 220px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

.jobhiring-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.jobhiring-list-container {
    margin-top: 8px;
}

.jobhiring-country-section {
    margin-bottom: 32px;
}

.jobhiring-country-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.jobhiring-job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.jobhiring-job-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0;
}

.jobhiring-job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.jobhiring-job-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.jobhiring-job-company {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.jobhiring-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #64748b;
}

.jobhiring-job-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.jobhiring-job-salary {
    color: #059669;
    font-weight: 600;
}

.jobhiring-job-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.jobhiring-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.jobhiring-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: #cbd5e1;
}

.jobhiring-detail-panel,
.jobhiring-post-panel,
.jobhiring-apps-panel {
    max-width: 720px;
}

.jobhiring-detail-card {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.jobhiring-detail-company {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 16px;
}

.jobhiring-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #475569;
}

.jobhiring-detail-salary {
    color: #059669;
    font-weight: 700;
}

.jobhiring-detail-desc h4 {
    margin-bottom: 10px;
    color: #1e293b;
}

.jobhiring-post-form {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

.jobhiring-post-form label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.jobhiring-post-form input,
.jobhiring-post-form select,
.jobhiring-post-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

.jobhiring-status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #fef3c7;
    color: #b45309;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.jobhiring-status-active {
    display: inline-block;
    padding: 4px 10px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.jobhiring-status-expired {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Admin Special Tools */
.admin-special-tools-panel {
    padding: 0 0 40px 0;
}

.admin-security-card .admin-tool-title i {
    color: #059669;
}
.admin-security-status {
    font-size: 15px;
    color: #1e293b;
}
.admin-security-toggle-row label {
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.admin-security-check-result {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
}
.admin-security-check-result.ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.admin-security-check-result.warn {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.admin-tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    margin-top: 24px;
}

.admin-tool-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.admin-tool-title i {
    color: #667eea;
    margin-right: 8px;
}

.admin-tool-desc {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.admin-income-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.admin-income-tab {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.admin-income-tab:hover {
    color: #1e293b;
}

.admin-income-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.admin-income-tab-panel {
    padding-top: 4px;
}

.admin-tool-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.admin-tool-form .form-group {
    margin-bottom: 0;
}

.admin-tool-form label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.admin-tool-form input {
    min-width: 220px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

.admin-lookup-result {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
}

/* Music World */
.free-music-section .free-music-track:hover {
    background: #f1f5f9;
}
.free-music-section .free-music-category h4 {
    display: flex;
    align-items: center;
}
.music-panel {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    min-height: 100vh;
    padding: 20px;
    margin: -40px;
    border-radius: 0;
}

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

.music-now-playing {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.music-now-playing-visible {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}

.live-musicians-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.musician-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.musician-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.videoke-panel {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.videoke-panel:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.videoke-panel.enlarged {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    margin: 0;
    border-radius: 0;
    overflow-y: auto;
}

.videoke-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.videoke-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.song-search {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
}

.songs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.song-item {
    background: #f8fafc;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.song-item-thumb {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #e2e8f0;
}

.song-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.song-item-body {
    padding: 12px;
}

.song-item-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.song-item-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.song-item:hover {
    background: #e0e7ff;
    border-color: #667eea;
}

/* YouTube Video Cards */
.youtube-video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.youtube-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.youtube-video-card:active {
    transform: translateY(-2px);
}

.song-item.playing {
    background: #667eea;
    color: #fff;
}

/* YouTube button on song items */
.youtube-btn-song {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #ff0000;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.youtube-btn-song:hover {
    background: #cc0000;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.youtube-btn-song:active {
    transform: scale(0.95);
}

/* Recording indicator pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.videoke-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Scrollbar Styling */
.vloggers-panel::-webkit-scrollbar,
.social-feed::-webkit-scrollbar {
    width: 8px;
}

.vloggers-panel::-webkit-scrollbar-track,
.social-feed::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.vloggers-panel::-webkit-scrollbar-thumb,
.social-feed::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 4px;
}

.vloggers-panel::-webkit-scrollbar-thumb:hover,
.social-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.5);
}

/* Facebook Layout Styles */
.facebook-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 20px;
    background: #f0f2f5;
    min-height: 100vh;
    padding: 20px;
    margin: -40px;
    border-radius: 0;
}

/* Left Sidebar */
.fb-left-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.fb-search-container {
    position: relative;
    margin-bottom: 20px;
}

.fb-search-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #65676b;
}

.fb-search-input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: none;
    border-radius: 20px;
    background: #f0f2f5;
    font-size: 15px;
}

.fb-user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fb-user-section:hover {
    background: #e4e6eb;
}

.fb-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.fb-username {
    font-weight: 600;
    color: #1c1e21;
    font-size: 15px;
}

.fb-menu-list {
    margin-bottom: 20px;
}

.fb-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1c1e21;
    font-size: 15px;
}

.fb-menu-item:hover {
    background: #e4e6eb;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fb-menu-item.active {
    background: #e7f3ff;
    color: #1877f2;
    font-weight: 600;
}

.fb-menu-item i {
    width: 24px;
    text-align: center;
    font-size: 20px;
}

.fb-shortcuts {
    border-top: 1px solid #e4e6eb;
    padding-top: 15px;
}

.fb-shortcuts-title {
    font-weight: 600;
    color: #65676b;
    font-size: 13px;
    margin-bottom: 10px;
    padding: 0 10px;
}

/* Main Feed */
.fb-main-feed {
    max-width: 680px;
    margin: 0 auto;
}

.fb-top-nav {
    background: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fb-nav-icons {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.fb-nav-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #65676b;
    font-size: 24px;
}

.fb-nav-icon:hover {
    background: #f0f2f5;
    transform: scale(1.1);
    color: #1877f2;
}

.fb-nav-icon.active {
    color: #1877f2;
    border-bottom: 3px solid #1877f2;
}

.fb-post-composer {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fb-composer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.fb-user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.fb-composer-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background: #f0f2f5;
    font-size: 15px;
}

.fb-composer-input:focus {
    outline: none;
}

.fb-composer-input:focus ~ .fb-composer-actions ~ #fbPostBtn {
    display: block !important;
}

.fb-composer-actions {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #e4e6eb;
}

.fb-composer-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #65676b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fb-composer-btn:hover {
    background: #f0f2f5;
}

/* Stories */
.fb-stories-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.fb-story-card {
    min-width: 110px;
    height: 200px;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.fb-story-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.fb-story-card.create-story {
    background: #fff;
    border: 2px solid #e4e6eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fb-story-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    margin: 10px auto 5px;
    border: 3px solid #fff;
}

.fb-story-plus {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 10px auto 5px;
}

.fb-story-label {
    font-size: 12px;
    font-weight: 600;
    color: #1c1e21;
    text-align: center;
    padding: 0 5px;
}

/* Posts */
.fb-post-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fb-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.fb-post-name {
    font-weight: 600;
    color: #1c1e21;
    font-size: 15px;
}

.fb-post-time {
    font-size: 13px;
    color: #65676b;
}

.fb-post-content {
    color: #1c1e21;
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 15px;
}

.fb-post-image {
    width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.fb-post-engagement {
    padding: 10px 0;
    border-top: 1px solid #e4e6eb;
    border-bottom: 1px solid #e4e6eb;
    margin: 10px 0;
}

.fb-engagement-count {
    font-size: 14px;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fb-post-actions {
    display: flex;
    gap: 5px;
    padding-top: 8px;
}

.fb-action-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #65676b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fb-action-btn:hover {
    background: #f0f2f5;
}

.fb-action-btn.liked {
    color: #1877f2;
}

.fb-action-btn.liked i {
    animation: likePulse 0.3s ease;
}

@keyframes likePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.fb-recent-contact:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.fb-composer-btn:hover {
    background: #f0f2f5;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fb-search-input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px #1877f2;
}

/* Right Sidebar */
.fb-right-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.fb-sponsored-section {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fb-sponsored-title {
    font-weight: 600;
    color: #65676b;
    font-size: 13px;
    margin-bottom: 15px;
}

.fb-sponsored-ad {
    margin-bottom: 15px;
    cursor: pointer;
}

.fb-ad-image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 8px;
    max-width: 100%;
    object-fit: cover;
}

.fb-ad-title {
    font-size: 13px;
    color: #1c1e21;
    font-weight: 600;
}

/* Test Sponsor banner (Advertisement + Sponsored box) */
.test-sponsor-banner {
    position: relative;
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
}
.test-sponsor-banner-sm {
    height: 150px;
}
.test-sponsor-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.test-sponsor-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
.test-sponsor-slide.active {
    opacity: 1;
    z-index: 1;
}
.test-sponsor-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    background: #fff;
}
.test-sponsor-slide-gradient .test-sponsor-slide-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.test-sponsor-ad {
    margin-bottom: 15px;
}

/* Invert picture: apply to images and video in banner */
.test-sponsor-banner-invert .test-sponsor-slide img,
.test-sponsor-banner-invert .test-sponsor-slide video,
.test-sponsor-banner-invert .test-sponsor-slide .test-sponsor-slide-video-el {
    filter: invert(1);
}

/* Video slides in Test Sponsor banner */
.test-sponsor-slide-video {
    background: #000;
}
.test-sponsor-slide-video .test-sponsor-slide-video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Admin-only toolbar in Sponsored box (SM - Social Media) */
.fb-sponsored-admin-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.fb-sponsored-admin-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.fb-sponsored-admin-btn:hover {
    background: #e2e8f0;
    color: #1877f2;
    border-color: #1877f2;
}
.fb-sponsored-admin-btn i {
    font-size: 14px;
}

.fb-group-chats {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fb-group-chats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    color: #1c1e21;
    font-size: 15px;
}

.fb-create-group-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #e4e6eb;
    color: #1c1e21;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fb-create-group-btn:hover {
    background: #d1d5db;
}

.fb-group-chat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 8px;
}

.fb-group-chat-item:hover {
    background: #f0f2f5;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fb-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.fb-chat-info {
    flex: 1;
}

.fb-chat-name {
    font-weight: 600;
    color: #1c1e21;
    font-size: 14px;
    margin-bottom: 2px;
}

.fb-chat-last {
    font-size: 12px;
    color: #65676b;
}

.fb-unread-badge {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #1877f2;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.fb-recent-contacts {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 1000;
}

.fb-recent-contact {
    position: relative;
}

.fb-contact-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.fb-contact-avatar-small:hover {
    transform: scale(1.1);
}

.fb-contact-avatar-small.online::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
}

.fb-message-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid #fff;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 2000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Responsive Design - Mobile First Approach */

/* Mobile Devices (320px - 767px) */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        width: 280px;
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1500;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    }

    .sidebar.open {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 60px 15px 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        overflow-x: hidden;
    }

    .content-header h2 {
        font-size: 24px;
    }

    .content-header p {
        font-size: 14px;
    }

    .content-body {
        padding: 20px 15px;
    }

    .menu-item {
        padding: 12px 20px;
        font-size: 14px;
    }

    .menu-item i {
        width: 22px;
        height: 22px;
        font-size: 16px;
    }

    .menu-item span {
        display: inline;
    }

    .logo {
        font-size: 20px;
        gap: 8px;
    }
    
    .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 18px;
    }

    .wallet-amount {
        font-size: 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .paybills-category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .tabs-container {
        flex-direction: column;
        gap: 8px;
    }

    .tab {
        width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }

    .live-stream-grid,
    .live-musicians-grid,
    .games-grid,
    .live-users-grid,
    .live-stores-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .facebook-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "fb-main";
        padding: 0;
        margin: -40px -15px -20px;
        gap: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fb-left-sidebar,
    .fb-right-sidebar {
        display: none;
    }

    .fb-main-feed {
        grid-area: fb-main;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 12px 16px 24px;
        box-sizing: border-box;
        order: 1;
    }

    .fb-main-feed .fb-top-nav {
        margin-bottom: 12px;
        padding: 8px 12px;
    }

    .fb-main-feed .fb-post-composer {
        margin-bottom: 12px;
    }

    .fb-main-feed .fb-stories-section {
        margin-bottom: 16px;
    }

    #fbPostsContainer {
        width: 100%;
        max-width: 100%;
    }

    .fb-post-card {
        width: 100%;
        box-sizing: border-box;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }

    .panel-title {
        font-size: 20px;
    }

    .panel-description {
        font-size: 14px;
    }

    /* Video container responsive */
    .video-container {
        max-width: 100%;
        margin: 15px 0;
    }

    /* Live user / store cards mobile */
    .live-user-card,
    .live-store-card {
        margin-bottom: 15px;
    }

    .live-user-thumbnail {
        height: 180px;
    }

    .live-user-actions {
        flex-direction: column;
    }

    .live-action-btn {
        width: 100%;
        margin-bottom: 8px;
    }

    /* Farmers panel mobile */
    .farmers-panel {
        padding: 15px;
        margin: -40px -15px;
    }

    /* Dating panel mobile */
    .dating-panel {
        padding: 15px;
        margin: -40px -15px;
    }

    /* Music panel mobile */
    .music-panel {
        padding: 15px;
        margin: -40px -15px;
    }

    /* Games panel mobile */
    .games-panel {
        padding: 15px;
        margin: -40px -15px;
    }

    /* Social feed mobile */
    .social-feed {
        padding: 15px;
        margin: -40px -15px;
    }

    /* Post cards mobile */
    .post-card {
        padding: 15px;
    }

    /* Stream cards mobile */
    .stream-card {
        margin-bottom: 15px;
    }

    /* Advertisement plans mobile */
    .advertisement-plans {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Form rows mobile */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Stats grid mobile */
    .stat-card {
        padding: 20px;
    }

    /* Info box mobile */
    .info-box {
        padding: 15px;
    }

    /* Recent contacts mobile */
    .fb-recent-contacts {
        bottom: 10px;
        right: 10px;
    }

    .fb-contact-avatar-small {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Tablet Devices (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .sidebar {
        width: 250px;
    }
    
    .logo {
        font-size: 24px;
        gap: 10px;
    }
    
    .logo-image {
        width: 36px;
        height: 36px;
    }

    .main-content {
        margin-left: 250px;
        padding: 30px;
        width: calc(100% - 250px);
        max-width: 100%;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .paybills-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-stream-grid,
    .live-musicians-grid,
    .live-users-grid,
    .live-stores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .facebook-layout {
        grid-template-columns: 200px 1fr 250px;
    }

    .fb-right-sidebar {
        display: none;
    }

    .content-body {
        padding: 30px;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .advertisement-plans {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1024px - 1919px) */
@media (min-width: 1024px) and (max-width: 1919px) {
    .sidebar {
        width: 280px;
    }
    
    .logo {
        font-size: 26px;
        gap: 10px;
    }
    
    .logo-image {
        width: 38px;
        height: 38px;
    }

    .main-content {
        margin-left: 280px;
        padding: 40px;
        width: calc(100% - 280px);
        max-width: 100%;
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .live-users-grid,
    .live-stores-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .facebook-layout {
        grid-template-columns: 250px 1fr 300px;
    }

    .content-body {
        padding: 40px;
    }
}

/* Large Desktop / TV (1920px+) */
@media (min-width: 1920px) {
    .sidebar {
        width: 320px;
    }
    
    .logo {
        font-size: 28px;
        gap: 12px;
    }
    
    .logo-image {
        width: 42px;
        height: 42px;
    }

    .main-content {
        margin-left: 320px;
        padding: 50px;
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 370px;
    }

    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .live-users-grid,
    .live-stores-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .content-body {
        padding: 50px;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .sidebar {
        width: 240px;
        left: -240px;
    }
    
    .logo {
        font-size: 18px;
        gap: 6px;
    }
    
    .logo-image {
        width: 28px;
        height: 28px;
    }

    .main-content {
        padding: 50px 15px 20px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .menu-item {
        padding: 16px 24px; /* Larger touch targets */
    }

    .btn {
        min-height: 44px; /* Minimum touch target size */
    }

    .wallet-toggle {
        padding: 8px 12px;
        min-width: 44px;
        min-height: 44px;
    }

    .live-action-btn,
    .fb-action-btn,
    .engagement-btn {
        min-height: 44px;
        padding: 12px;
    }

    .mobile-menu-toggle {
        min-width: 50px;
        min-height: 50px;
    }

    .tab {
        min-height: 44px;
    }
}

/* Ensure all images and media are responsive */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll - ensure containers don't overflow */
.container,
.main-content,
.content-body,
.panel-content {
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Support Panel Styles */
.support-panel {
    max-width: 100%;
}

/* ACS - Authorized Customer Support */
.acs-panel .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 600;
}

.acs-admin-card {
    cursor: pointer;
}

.acs-admin-card:hover {
    border-color: #5a67d8 !important;
    transform: translateY(-2px);
}

.acs-activity-log .acs-activity-table,
.acs-activity-log table {
    width: 100%;
    border-collapse: collapse;
}

.acs-activity-log thead th {
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.acs-defined-recipients .acs-recipients-readonly > div:last-child {
    border-bottom: none;
}

/* Audit Trail */
.audit-trail-card {
    cursor: pointer;
}

.audit-trail-card:hover {
    border-color: #b91c1c !important;
    transform: translateY(-2px);
}

.audit-trail-panel .audit-trail-table {
    width: 100%;
    border-collapse: collapse;
}

.audit-trail-panel .audit-trail-table thead th {
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #e2e8f0;
    background: #fef2f2;
}

.audit-trail-panel .audit-trail-table td {
    word-break: break-word;
    vertical-align: top;
}

/* FAQ Panel Styles */
.faq-search-container {
    margin-bottom: 30px;
}

.faq-search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.faq-search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.faq-search-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.faq-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.faq-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-category-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-category-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.faq-category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.faq-results {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.faq-category-section {
    margin-bottom: 30px;
}

.faq-category-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-category-title i {
    color: #667eea;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(102, 126, 234, 0.05);
}

.faq-question i {
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    padding: 0 20px 18px 20px;
    color: #64748b;
    line-height: 1.8;
    border-top: 1px solid #f1f5f9;
    animation: slideDown 0.3s ease;
}

.faq-answer p {
    margin: 0;
    padding-top: 15px;
}

.faq-answer mark {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 4px;
    border-radius: 3px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 16px;
}

/* Chat Panel Styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-agent-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-agent-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
}

.chat-status {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-welcome {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.chat-welcome-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.chat-welcome h3 {
    color: #1e293b;
    margin-bottom: 10px;
}

.chat-message {
    display: flex;
    max-width: 70%;
    animation: fadeIn 0.3s ease;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.support {
    align-self: flex-start;
}

.chat-message-content {
    padding: 12px 16px;
    border-radius: 12px;
    position: relative;
}

.chat-message.user .chat-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-message.support .chat-message-content {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.chat-text {
    margin-bottom: 5px;
    line-height: 1.5;
}

.chat-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
}

.chat-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.chat-typing-indicator {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 13px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typingDot 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chat-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.chat-attach-btn,
.chat-send-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.chat-attach-btn:hover {
    background: #e2e8f0;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Email Support Panel Styles */
.email-support-container {
    max-width: 800px;
    margin: 0 auto;
}

.email-support-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.info-card i {
    font-size: 32px;
    margin-bottom: 15px;
}

.info-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.info-card p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

.email-support-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.email-support-form .form-group {
    margin-bottom: 25px;
}

.email-support-form label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
}

.email-support-form input,
.email-support-form select,
.email-support-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.email-support-form input:focus,
.email-support-form select:focus,
.email-support-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.email-support-form textarea {
    resize: vertical;
    min-height: 120px;
}

.email-support-form small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}

.email-support-form .form-group:last-of-type {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.email-support-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

.email-support-result.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.email-support-result.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.result-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-content i {
    font-size: 20px;
}

/* Scrollbar for FAQ and Chat */
.faq-results::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.faq-results::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.faq-results::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.faq-results::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Authentication Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.auth-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s ease;
    z-index: 10;
}

.auth-close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

.auth-header {
    padding: 40px 40px 30px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.auth-header p {
    color: #64748b;
    font-size: 16px;
}

.auth-form {
    padding: 30px 40px 40px;
}

.auth-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.auth-social-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.auth-social-btn i {
    font-size: 20px;
}

.auth-social-btn.google {
    border-color: #db4437;
    color: #db4437;
}

.auth-social-btn.google:hover {
    background: rgba(219, 68, 55, 0.1);
    border-color: #db4437;
}

.auth-social-btn.yahoo {
    border-color: #6001d2;
    color: #6001d2;
}

.auth-social-btn.yahoo:hover {
    background: rgba(96, 1, 210, 0.1);
    border-color: #6001d2;
}

.auth-social-btn.facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.auth-social-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.1);
    border-color: #1877f2;
}

.auth-social-btn.twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.auth-social-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.1);
    border-color: #1da1f2;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #64748b;
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 15px;
}

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

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.auth-switch {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 14px;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

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

/* Verification Badge */
.verification-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #fff;
    z-index: 10;
}

.verification-badge i {
    font-size: 10px;
}

/* Responsive Auth Modal */
@media (max-width: 767px) {
    .auth-modal-content {
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 95vh;
    }
    
    .auth-header {
        padding: 30px 20px 20px;
    }
    
    .auth-form {
        padding: 20px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
}

/* Settings Panel Styles */
.settings-section {
    margin-bottom: 30px;
}

.settings-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-section-title i {
    color: #667eea;
}

.settings-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item-info {
    flex: 1;
}

.settings-item-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.settings-item-value {
    font-size: 14px;
    color: #64748b;
}

/* Live Users Grid Styles */
.live-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.live-user-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.live-user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.live-user-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.live-badge {
    background: #dc2626;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-badge i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

.viewer-count {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.live-user-info {
    padding: 15px;
}

.live-user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
    margin-bottom: 5px;
}

.live-user-title {
    color: #475569;
    font-size: 14px;
    margin-bottom: 5px;
}

.live-user-category {
    color: #667eea;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.live-user-actions {
    padding: 0 15px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.live-action-btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.live-action-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.live-action-btn.liked {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.live-action-btn.following {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #2563eb;
}

.live-action-btn i {
    font-size: 14px;
}

.action-count {
    font-size: 11px;
    font-weight: 700;
}

/* Responsive Live Users Grid - Already handled in main mobile media query */

/* Advertisement Panel Styles */
.advertisement-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.ad-plan-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ad-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ad-plan-card.featured {
    border-color: #667eea;
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.ad-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.ad-plan-name {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.ad-plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.ad-currency {
    font-size: 20px;
    color: #64748b;
    font-weight: 600;
}

.ad-amount {
    font-size: 48px;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
}

.ad-period {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

.ad-plan-features {
    margin-bottom: 30px;
    min-height: 250px;
}

.ad-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: #475569;
    line-height: 1.6;
}

.ad-feature i {
    color: #10b981;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ad-feature strong {
    color: #1e293b;
    font-weight: 700;
}

.ad-subscribe-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    margin-top: auto;
}

.advertisement-info {
    margin-top: 40px;
}

.advertisement-info .info-box {
    margin-bottom: 20px;
}

.advertisement-info ol li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Responsive Advertisement Plans */
@media (max-width: 767px) {
    .advertisement-plans {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ad-plan-card {
        padding: 20px;
    }
    
    .ad-plan-name {
        font-size: 24px;
    }
    
    .ad-amount {
        font-size: 36px;
    }
}

/* Enhanced Social Media Animations */
.fb-post-card {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fb-story-card {
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal overlay animations */
.modal-overlay {
    animation: fadeIn 0.3s ease;
}

.modal-overlay > div {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Airbnb-like Hotels Interface Styles
   ============================================ */

.airbnb-container {
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Search Bar */
.airbnb-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 40px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    max-width: 850px;
    transition: box-shadow 0.3s ease;
}

.airbnb-search-bar:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-item {
    flex: 1;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 30px;
    transition: background 0.2s ease;
}

.search-item:hover {
    background: #f7f7f7;
}

.search-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.search-item input {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #717171;
    width: 100%;
    cursor: pointer;
    pointer-events: none;
}

.search-item input:focus {
    outline: none;
}

.search-item-active {
    background: #f0f9ff;
    border-radius: 30px;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3);
}
.search-item-active:hover {
    background: #e0f2fe;
}

.search-divider {
    width: 1px;
    height: 24px;
    background: #ddd;
    margin: 0 8px;
}

.airbnb-search-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff385c 0%, #e61e4d 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.airbnb-search-btn:hover {
    transform: scale(1.05);
}

/* Filters Bar */
.airbnb-filters {
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.airbnb-filters::-webkit-scrollbar {
    display: none;
}

.filter-scroll {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: #222;
}

.filter-chip.active {
    border-color: #222;
    background: #222;
    color: #fff;
}

.filter-chip i {
    font-size: 12px;
}

/* Properties Grid */
.airbnb-main {
    position: relative;
}

.airbnb-properties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px 24px;
    margin-bottom: 60px;
}

.airbnb-property-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.airbnb-property-card:hover {
    transform: translateY(-4px);
}

.property-image {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.airbnb-property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.property-favorite:hover {
    background: #fff;
    transform: scale(1.1);
}

.property-favorite i {
    color: #222;
    font-size: 16px;
}

.property-favorite .fas {
    color: #ff385c;
}

.property-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.property-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #222;
    white-space: nowrap;
}

.property-rating i {
    color: #ff385c;
    font-size: 12px;
}

.property-reviews {
    color: #717171;
    font-weight: normal;
}

.property-location {
    font-size: 15px;
    color: #717171;
    margin: 0;
}

.property-type {
    font-size: 14px;
    color: #717171;
    text-transform: capitalize;
    margin: 0;
}

.property-amenities {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.amenity-tag {
    font-size: 12px;
    color: #717171;
}

.property-footer {
    margin-top: 8px;
}

.property-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.price-period {
    font-size: 14px;
    color: #717171;
}

/* Map View */
.airbnb-map {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f7f7;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #717171;
}

.map-placeholder i {
    font-size: 64px;
    margin-bottom: 16px;
    color: #ddd;
}

.map-placeholder p {
    font-size: 18px;
    font-weight: 600;
    margin: 8px 0;
}

.map-note {
    font-size: 14px;
    font-weight: normal;
    color: #999;
}

/* View Toggle */
.airbnb-view-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 8px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.view-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #717171;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: #f7f7f7;
}

.view-btn.active {
    background: #222;
    color: #fff;
}

/* Modals */
.airbnb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

/* Post Property modal rendered on body – always on top, no scroll/freeze issues */
.airbnb-modal-portal {
    z-index: 10002;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    box-sizing: border-box;
}

.airbnb-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease;
}

.property-modal {
    max-width: 1200px;
    width: 95%;
    max-height: 95vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: #f7f7f7;
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Post Property modal content – scrollable on small screens, touch-friendly */
.airbnb-modal-portal .airbnb-modal-content {
    max-height: 90vh;
    -webkit-overflow-scrolling: touch;
}

.airbnb-modal-portal .modal-body {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.modal-search-sticky {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1;
    margin-bottom: 16px;
    padding-bottom: 4px;
}
.modal-search-sticky .search-input {
    margin-bottom: 0;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
}

.popular-destinations h4 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
}

.destination-list,
.location-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.airbnb-modal .modal-body .location-list {
    max-height: none;
    overflow: visible;
}

.location-list::-webkit-scrollbar {
    width: 6px;
}

.location-list::-webkit-scrollbar-track {
    background: transparent;
}

.location-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.location-list::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.destination-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.destination-item:hover {
    background: #f7f7f7;
}

.destination-item i {
    color: #717171;
    width: 20px;
    text-align: center;
}

/* Guests Selector */
.guests-selector {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.guest-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guest-option strong {
    display: block;
    font-size: 16px;
    color: #222;
    margin-bottom: 4px;
}

.guest-option span {
    font-size: 14px;
    color: #717171;
}

.guest-counter {
    display: flex;
    align-items: center;
    gap: 16px;
}

.guest-counter button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.guest-counter button:hover {
    border-color: #222;
}

.guest-counter span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: #222;
}

/* Property Details */
.property-details {
    padding: 0;
}

.property-details-header {
    padding: 24px;
    border-bottom: 1px solid #ddd;
}

.property-details-header h1 {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}

.property-details-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.property-details-rating i {
    color: #ff385c;
}

.property-location-badge {
    color: #717171;
    text-decoration: underline;
    margin-left: 8px;
}

.property-details-images {
    margin-bottom: 24px;
}

.main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px;
}

.thumbnails img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.thumbnails img:hover {
    opacity: 0.8;
}

.property-details-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    padding: 24px;
}

.property-host {
    margin-bottom: 24px;
}

.host-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.host-info p {
    font-size: 16px;
    color: #717171;
}

.property-description {
    margin-bottom: 32px;
}

.property-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #222;
}

.property-amenities-list h3 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin-bottom: 24px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #222;
}

.amenity-item i {
    color: #222;
    width: 24px;
}

/* Booking Card */
.property-booking-card {
    position: sticky;
    top: 24px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.booking-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 24px;
}

.booking-price .price-amount {
    font-size: 22px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.booking-date-input {
    padding: 12px;
    border-right: 1px solid #ddd;
}

.booking-date-input:last-child {
    border-right: none;
}

.booking-date-input label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.booking-date-input input {
    width: 100%;
    border: none;
    font-size: 14px;
    color: #222;
}

.booking-date-input input:focus {
    outline: none;
}

.booking-guests {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
}

.booking-guests label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.booking-guests select {
    width: 100%;
    border: none;
    font-size: 14px;
    color: #222;
    background: transparent;
}

.booking-guests select:focus {
    outline: none;
}

.booking-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff385c 0%, #e61e4d 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.booking-btn:hover {
    transform: scale(1.02);
}

.booking-note {
    text-align: center;
    font-size: 14px;
    color: #717171;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .property-details-content {
        grid-template-columns: 1fr;
    }
    
    .property-booking-card {
        position: relative;
        top: 0;
    }
    
    .airbnb-properties {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 32px 20px;
    }
}

@media (max-width: 768px) {
    .airbnb-search-bar {
        flex-direction: column;
        border-radius: 12px;
        padding: 16px;
        gap: 12px;
    }
    
    .search-item {
        width: 100%;
        padding: 12px;
    }
    
    .search-divider {
        display: none;
    }
    
    .airbnb-search-btn {
        width: 100%;
        border-radius: 8px;
        height: 48px;
    }
    
    .airbnb-properties {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .filter-scroll {
        gap: 8px;
    }
    
    .filter-chip {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .property-details-content {
        padding: 16px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .airbnb-view-toggle {
        bottom: 20px;
        right: 20px;
    }
}

/* Post Property Button */
.post-property-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1500;
    background: linear-gradient(135deg, #ff385c 0%, #e61e4d 100%);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: buttonBlink 2s ease-in-out infinite;
}

.post-property-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.6);
}

.post-property-btn i {
    font-size: 14px;
}

@keyframes buttonBlink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 4px 12px rgba(255, 56, 92, 0.4);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 4px 20px rgba(255, 56, 92, 0.8);
    }
}

/* Live Stores */
.live-stores-tabs.tabs-container {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.live-store-detail-tabs.tabs-container {
    margin-top: 16px;
    margin-bottom: 16px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
}

.live-store-order-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.live-store-order-row label {
    flex: 1;
    min-width: 120px;
    margin: 0;
    cursor: pointer;
}

.order-requested-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    animation: buttonBlink 2s ease-in-out infinite;
}

.live-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.live-store-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.live-store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.live-store-thumb {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #e2e8f0;
}

.live-store-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-store-info {
    padding: 16px;
}

.live-store-name {
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
}

/* Interactive Map Section */
.interactive-map-section {
    margin-top: 60px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
}

.map-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.map-header h3 i {
    color: #ff385c;
}

.map-controls {
    display: flex;
    gap: 8px;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.map-control-btn:hover {
    background: #f7f7f7;
    border-color: #222;
}

.interactive-map-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #e8e8e8;
    border-radius: 0 0 12px 12px;
}

.google-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}


.map-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.terrain-overlay {
    mix-blend-mode: overlay;
    opacity: 0.6;
}

.map-grid {
    mix-blend-mode: screen;
}

.road-overlay {
    mix-blend-mode: multiply;
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-marker:hover {
    transform: translate(-50%, -100%) scale(1.15);
    z-index: 20;
}

.map-marker:hover .marker-pin {
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.6), 0 0 0 4px rgba(255, 56, 92, 0.2);
}

.marker-pin {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff385c 0%, #e61e4d 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 56, 92, 0.3);
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.marker-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 56, 92, 0.3);
    animation: markerPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes markerPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.marker-price {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #222 0%, #333 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 56, 92, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-marker:hover .marker-price {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.marker-tooltip {
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    max-width: 280px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.6;
    backdrop-filter: blur(10px);
}

.marker-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

.map-marker:hover .marker-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.map-zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background: #f7f7f7;
    transform: scale(1.05);
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Post Property modal – responsive and safe area on mobile */
@media (max-width: 768px) {
    .airbnb-modal-portal {
        align-items: flex-start;
        padding-top: max(env(safe-area-inset-top), 12px);
        padding-bottom: max(env(safe-area-inset-bottom), 12px);
        padding-left: max(env(safe-area-inset-left), 12px);
        padding-right: max(env(safe-area-inset-right), 12px);
        overflow-y: auto;
    }
    .airbnb-modal-portal .airbnb-modal-content {
        max-height: 85vh;
        width: 100%;
        margin: auto 0;
    }
    .airbnb-modal-portal .modal-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Responsive Map */
@media (max-width: 768px) {
    .post-property-btn {
        top: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .interactive-map-container {
        height: 400px;
    }
    
    .map-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .map-header h3 {
        font-size: 18px;
    }
    
    .map-zoom-controls {
        top: 15px;
        right: 15px;
    }
    
    .zoom-btn {
        width: 36px;
        height: 36px;
    }
    
    .map-legend {
        bottom: 15px;
        left: 15px;
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Dive & Convert game */
#reactRightContainer .react-right-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
#reactRightContainer .react-right-options button:hover {
    border-color: #0ea5e9 !important;
    background: #f0f9ff !important;
}
@media (max-width: 480px) {
    #reactRightContainer .react-right-options {
        grid-template-columns: 1fr;
    }
}

/* Mr. Question - Answer and Compete */
.mrquestion-card .game-thumbnail {
    background: linear-gradient(135deg, #E21B3C 0%, #D89E00 50%, #26890C 100%) !important;
}

.mrquestion-option:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.mrquestion-quiz-card:hover {
    border-color: #667eea !important;
    background: #f8fafc;
}

.mrquestion-percountries-card:hover,
.mrquestion-country-card:hover {
    border-color: #1368CE !important;
    background: #f0f9ff;
}

@media (max-width: 600px) {
    .mrquestion-options-grid {
        grid-template-columns: 1fr !important;
    }
}

#mrQuestionSearch {
    transition: border-color 0.2s;
}

#mrQuestionSearch:focus {
    outline: none;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

#mqRestrictedWrap textarea {
    font-family: inherit;
    resize: vertical;
}

#mrQuestionExpiryModal > div {
    animation: mrquestionModalIn 0.2s ease-out;
}

@keyframes mrquestionModalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
