/* ==========================================================================
   SHARED DESIGN SYSTEM - RUMREN MEMBER PORTAL
   ========================================================================== */

/* Global Colors & Reset */
:root {
    --primary: #dc2626;
    --primary-light: #ef4444;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overscroll-behavior: none !important;
    overscroll-behavior-y: none !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 100px;
}

.blob {
    position: fixed;
    width: 400px;
    height: 400px;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    border-radius: 50%;
}

.blob-1 {
    top: -100px;
    left: -100px;
    background: rgba(220, 38, 38, 0.15);
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    background: rgba(185, 28, 28, 0.1);
}

/* Navigation Bar */
nav {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.logo i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    height: 40px;
    padding: 0 4px 0 14px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-user:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1.5px solid var(--primary);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.2);
}

.nav-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.nav-user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.nav-user-stars {
    font-size: 10px;
    font-weight: 600;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.nav-user-stars i {
    font-size: 9px;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background-color: #1e293b;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.dropdown-btn.icon-only {
    padding: 0;
    width: 40px;
    height: 40px;
    justify-content: center;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--primary-light);
    padding-left: 20px;
}

.logout-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.05);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.logout-btn:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Floating Navigation Menu */
.floating-menu-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 90%;
    max-width: 400px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-menu {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Compact Floating Menu Styles */
.floating-menu-container.compact {
    bottom: 10px;
    width: 80%;
    max-width: 320px;
}

.floating-menu-container.compact .floating-menu {
    border-radius: 28px;
    padding: 4px 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.floating-menu-container.compact .float-item {
    padding: 4px;
    border-radius: 12px;
}

.floating-menu-container.compact .float-item span {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
}

.floating-menu-container.compact .float-item i {
    font-size: 1.25rem;
}

.float-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    padding: 6px 4px;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 14px;
    flex: 1;
    margin: 0 2px;
}

.float-item i {
    font-size: 1.1rem;
    transition: transform 0.2s, font-size 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-item span {
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 20px;
    overflow: hidden;
    opacity: 1;
}

.float-item.active {
    color: var(--primary-light);
    background: rgba(220, 38, 38, 0.15);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
}

.float-item.active i {
    transform: translateY(-1px);
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.float-item:hover {
    color: white;
}

.float-item:active {
    transform: scale(0.92);
}

/* Footer Section */
footer {
    margin-top: 2rem;
    padding: 1.5rem 1.5rem 5.5rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
    position: relative;
    z-index: 1;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.footer-logo-sm {
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 900;
}

.footer-brand-text {
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: white;
}

.footer-dot {
    color: var(--text-muted);
    opacity: 0.25;
    font-size: 0.7rem;
}

.footer-link-lite {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.footer-link-lite:hover {
    color: white;
}

.footer-powered-text {
    font-size: 0.5rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    opacity: 0.45;
    text-transform: uppercase;
}

.social-links-compact {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.social-btn-sm {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn-sm:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.disclaimer-text-compact {
    max-width: 500px;
    margin: 0 auto 0.8rem;
    font-size: 0.6rem;
    line-height: 1.6;
    color: var(--text-muted);
    opacity: 0.5;
    text-align: center;
}

.copyright-text-final {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.3;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   DASHBOARD / APP HUB STYLES
   ========================================================================== */
.hub-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0.75rem 80px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    border: 2px solid #ef4444;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.greeting-text-box {
    min-width: 0;
    flex: 1;
}

.greeting-text-box h1 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.name-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}

.greeting-text-box p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
}

.verified-check {
    color: #007bff;
    font-size: 0.9rem;
}

.stats-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 25px;
}

.stat-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
}

.stat-strip i {
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
}

.stat-strip.stars i {
    color: #fbbf24;
}

.stat-strip.verified i {
    color: #10b981;
}

.stat-strip.rank i {
    color: #fbbf24;
}

.stat-strip.tokens i {
    color: #a855f7;
}

.section-header {
    margin-bottom: 12px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header-icon {
    width: 34px;
    height: 34px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.section-header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header-text h2 {
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    color: #fff;
    line-height: 1.1;
}

.section-header-text p {
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-top: 1px;
    font-weight: 600;
    opacity: 0.7;
    line-height: 1.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card:active {
    transform: scale(0.96);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.platform-stack {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 5px 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-mini-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-right: 4px;
    box-shadow: none;
    text-decoration: none !important;
    outline: none;
}

.platform-mini-icon:last-child {
    margin-right: 0;
}

.platform-mini-icon i {
    transform: scale(0.85);
}

.platform-mini-icon.android {
    color: #22c55e;
}

.platform-mini-icon.ios {
    color: #f8fafc;
}

.platform-mini-icon.tg {
    color: #0ea5e9;
}

.platform-mini-icon.web {
    color: #3b82f6;
}

.card-icon.letter-placeholder {
    background: linear-gradient(135deg, var(--primary), #ef4444);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.card-name {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.card-desc {
    font-size: 0.6rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-btn {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-stack {
    flex: 1;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 5px;
}

.btn-hub-action {
    flex: 1;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
    cursor: pointer;
}

.service-card:hover .btn-hub-action {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-hub-action.soon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: default;
}

.shell-container {
    width: 100%;
    height: calc(100vh - 60px);
    position: relative;
}

.shell-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.shell-loader {
    position: absolute;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: opacity 0.4s;
}

.btn-shell-back {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.6rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   MEMBERSHIP VIEW STYLES
   ========================================================================== */
.membership-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px 100px;
}

@media (min-width: 768px) {
    .membership-main-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }

    .membership-left-col {
        grid-column: 1;
    }

    .membership-right-col {
        grid-column: 2;
    }
}

.current-status-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.atm-number {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .atm-number {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
}

.current-status-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.05"/></svg>');
    pointer-events: none;
    opacity: 0.2;
}

.card-content-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 5;
}

.current-level-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.current-level-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.current-level-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1;
}

@media (max-width: 480px) {
    .current-level-name {
        font-size: 1.4rem;
    }
}

.balance-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .balance-badge {
        gap: 8px;
        padding: 4px 10px;
        font-size: 0.65rem;
    }
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

@keyframes starFlip {

    0%,
    80% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.balance-item.stars i {
    color: #fbbf24;
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.4));
    animation: starFlip 4s infinite ease-in-out;
    display: inline-block;
}

.balance-item.tokens i {
    color: #a855f7;
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.4));
}

.balance-sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.card-icon-big {
    font-size: 5rem;
    color: white;
    opacity: 0.05;
    position: absolute;
    right: -15px;
    bottom: -15px;
    z-index: 1;
    animation: floatIcon 10s infinite ease-in-out;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: rotate(-10deg) translate(0, 0);
    }

    50% {
        transform: rotate(5deg) translate(-10px, -5px);
    }
}

.membership-id-badge {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-info-row {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 5;
}

.member-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.website-brand {
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.connected-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    position: relative;
    z-index: 5;
}

.service-badge {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-badge i {
    font-size: 0.45rem;
    color: #34d399;
}

.service-badge.hub-badge {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-light);
    border-color: rgba(220, 38, 38, 0.3);
}

.service-badge.hub-badge i {
    color: var(--primary-light);
}

.level-path {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px -10px -10px;
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.level-path::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30px;
    right: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
    transform: translateY(-50%);
}

.path-step {
    width: 32px;
    height: 32px;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

.path-step.active {
    color: white;
    transform: scale(1.2) translateY(-2px);
}

.path-step.completed {
    background: rgba(255, 255, 255, 0.05);
}

.level-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .level-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.level-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.level-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.level-card.active {
    background: linear-gradient(145deg, rgba(220, 38, 38, 0.15), rgba(15, 23, 42, 0.4));
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
}

.level-card.active::before {
    content: 'LEVEL SAAT INI';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.5rem;
    font-weight: 800;
    padding: 3px 10px;
    border-bottom-left-radius: 10px;
}

.level-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.level-card:hover .level-icon {
    transform: scale(1.1) rotate(5deg);
}

.level-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.level-info p {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.3;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    text-align: left;
}

.feature-tag {
    font-size: 0.6rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature-tag::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.5rem;
    color: var(--primary-light);
    opacity: 0.7;
}

.active .feature-tag {
    color: #e2e8f0;
}

.buy-points-content {
    margin-top: 25px;
}

.buy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

.buy-option {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 12px 18px;
    text-align: left;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.buy-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    opacity: 0;
    transition: 0.3s;
}

.buy-option:hover {
    border-color: #fbbf24;
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.15);
}

.buy-option:hover::before {
    opacity: 1;
}

.buy-option .star-icon-container {
    width: 50px;
    height: 50px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    transition: 0.3s;
}

.buy-option:hover .star-icon-container {
    transform: scale(1.1) rotate(15deg);
    background: rgba(251, 191, 36, 0.2);
}

.buy-option i {
    font-size: 1.5rem;
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

.buy-option .point-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    flex-grow: 1;
}

.buy-option .price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 6px 16px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.buy-btn-small {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    opacity: 0.7;
}

.buy-option:hover .buy-btn-small {
    color: #fff;
}

@media (min-width: 768px) {
    .buy-grid {
        grid-template-columns: 1fr 1fr;
    }

    .buy-option {
        padding: 15px 10px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
        white-space: normal;
        height: 100%;
        justify-content: center;
    }

    .buy-option .star-icon-container {
        margin-bottom: 5px;
        width: 40px;
        height: 40px;
    }

    .buy-option i {
        font-size: 1.2rem;
    }

    .buy-option .point-val {
        font-size: 0.9rem;
    }

    .buy-option .price {
        font-size: 0.75rem;
        background: rgba(0, 0, 0, 0.2);
        padding: 2px 8px;
        border-radius: 6px;
    }

    .buy-btn-small {
        width: 100%;
        text-align: center;
        margin-top: auto;
        margin-left: 0;
        padding: 6px;
        display: block !important;
        background: rgba(251, 191, 36, 0.15);
        border: 1px solid rgba(251, 191, 36, 0.3);
        color: #fbbf24;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .level-grid {
        grid-template-columns: 1fr;
    }

    .level-card {
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding: 12px;
        gap: 15px;
    }

    .level-info p {
        margin-bottom: 0;
        font-size: 0.75rem;
    }

    .level-info h3 {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .level-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .buy-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .buy-option {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 16px;
        white-space: normal;
    }

    .card-level-header {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .buy-option .star-icon-container {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .buy-option i {
        font-size: 1rem;
    }

    .buy-option .point-val {
        font-size: 0.9rem;
        flex-grow: 1;
    }

    .buy-option .price {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .buy-btn-small {
        display: none;
    }
}

/* Attendance Card */
.attendance-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.attendance-days {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 0;
}

@media (max-width: 600px) {
    .attendance-days {
        gap: 5px;
        overflow-x: auto;
        padding-bottom: 5px;
        justify-content: flex-start;
    }

    .day-box {
        min-width: 42px;
        flex: 0 0 auto;
    }
}

.day-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.day-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.day-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
}

.day-box.checked {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.day-box.checked .day-status {
    background: #10b981;
    color: white;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.day-box.missed {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.day-box.missed .day-status {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.day-box.today {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
}

.day-box.today .day-name {
    color: #fbbf24;
}

.checkin-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.checkin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.checkin-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Star Progress Bar */
.progress-info-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 16px;
    margin: 15px 0 25px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}

@media (max-width: 380px) {
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .progress-header div:last-child {
        text-align: left !important;
    }
}

.progress-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-stars-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

.progress-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #991b1b);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.next-target-text {
    font-weight: 600;
    color: #fff;
}

/* ==========================================================================
   STORE VIEW STYLES
   ========================================================================== */
.store-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 100px;
}

.balance-header {
    position: sticky;
    top: 48px;
    z-index: 90;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    margin-top: -1px;
}

@media (max-width: 480px) {
    .balance-header {
        padding: 10px 12px;
        top: 45px;
    }
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.store-page-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.balance-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 5px;
}

.balance-value.tokens {
    color: #a855f7;
}

.balance-value.tokens i {
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.4));
}

.balance-value .fa-star {
    animation: starFlip 4s infinite ease-in-out;
    display: inline-block;
}

.btn-history {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-history:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.header-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.balance-badge-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.balance-sep {
    width: 1px;
    height: 12px;
    background: var(--glass-border);
}

.history-actions {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.history-actions::-webkit-scrollbar {
    display: none;
}

@media (max-width: 480px) {
    .history-actions {
        margin-top: 2px;
    }

    .btn-history {
        padding: 4px 10px;
        font-size: 0.65rem;
    }

    .balance-badge-group {
        gap: 8px;
        padding: 4px 8px;
    }

    .balance-value {
        font-size: 0.75rem !important;
    }
}

/* Bottom Sheet */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111827;
    border-top: 1px solid var(--glass-border);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.bottom-sheet-header {
    padding: 20px;
    text-align: center;
    position: relative;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto 15px;
}

.sheet-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.sheet-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 40px;
}

.history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-type {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.history-date {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.history-right {
    text-align: right;
}

.history-amount {
    font-size: 0.9rem;
    font-weight: 700;
}

.history-amount.plus {
    color: #10b981;
}

.history-amount.minus {
    color: #f87171;
}

.history-amount.neutral {
    color: #fbbf24;
}

.history-status {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .history-item {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 14px;
    }

    .history-type {
        font-size: 0.75rem;
    }

    .history-date {
        font-size: 0.6rem;
    }

    .history-amount {
        font-size: 0.8rem;
    }

    .history-status {
        font-size: 0.55rem;
    }

    .history-left>div {
        gap: 6px !important;
    }

    .history-left button {
        padding: 2px 5px !important;
        font-size: 0.55rem !important;
    }

    .history-left span {
        font-size: 0.55rem !important;
        padding: 2px 5px !important;
    }

    .sheet-content {
        padding: 0 15px 40px;
    }
}

.products-wrapper {
    padding: 0 10px;
}

.section-title.stars-title i {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.section-title.redeem-title i {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card.type-redeem {
    border-color: rgba(52, 211, 153, 0.3);
}

.product-image {
    aspect-ratio: 1/1;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image i {
    font-size: 2rem;
    color: #fbbf24;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3));
}

.product-image .fa-star {
    font-size: 3.5rem;
    animation: floatStar 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
}

@keyframes floatStar {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
    }

    50% {
        transform: translateY(-8px) scale(1.1);
        filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.8));
    }
}

.product-image .image-overlay-badge i {
    animation: none !important;
    transform: none !important;
    font-size: 0.55rem !important;
    filter: none !important;
}

.type-redeem .product-image>i {
    color: #34d399;
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.3));
    font-size: 2rem !important;
    animation: none !important;
}

.image-overlay-badge {
    position: absolute;
    bottom: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 3px 6px;
    border-top-right-radius: 8px;
    color: #fbbf24;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
}

.type-redeem .image-overlay-badge {
    color: #34d399;
}

.product-info {
    padding: 8px 8px 10px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
    min-height: 1.2em;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.product-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

@media (max-width: 480px) {
    .product-name {
        font-size: 0.7rem;
    }

    .product-price {
        font-size: 0.75rem;
    }

    .btn-cart {
        font-size: 0.65rem;
        height: 24px;
    }
}

.btn-cart {
    width: 100%;
    height: 26px;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 8px;
}

.type-redeem .btn-cart {
    background: #34d399;
}

@media (min-width: 640px) {
    .store-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) {
    .store-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: flex-end;
    justify-content: center;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    width: 100%;
    max-width: 400px;
    border-radius: 24px 24px 0 0;
    padding: 16px 18px 22px;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Close button */
.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
    transform: rotate(90deg);
}

/* Drag handle for mobile */
.modal-drag-handle {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    margin: 0 auto 16px;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 16px 16px 24px;
        max-height: 85vh;
    }
}

.modal-img-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.5rem;
    color: #fbbf24;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2px;
    color: #fff;
    letter-spacing: -0.2px;
}

.modal-stars {
    text-align: center;
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-summary {
    background: rgba(15, 23, 42, 0.6);
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    font-weight: 800;
    color: white;
    font-size: 0.88rem;
}

.btn-confirm {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-confirm:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

@media (min-width: 640px) {
    .modal {
        align-items: center;
    }

    .modal-content {
        border-radius: 24px;
        max-height: 80vh;
    }

    .modal-drag-handle {
        display: none;
    }
}

/* Toast Notification */
.hub-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
    max-width: 380px;
    pointer-events: none;
}

.hub-toast {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    animation: hubToastSlide 0.4s ease-out;
    pointer-events: auto;
}

.hub-toast.success {
    border-left: 4px solid #10b981;
}

.hub-toast.error {
    border-left: 4px solid #ef4444;
}

.hub-toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.success .hub-toast-icon {
    color: #10b981;
}

.error .hub-toast-icon {
    color: #ef4444;
}

.hub-toast-msg {
    color: white;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
}

@keyframes hubToastSlide {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes hubToastFade {
    to {
        transform: translateY(-10px);
        opacity: 0;
    }
}

.section-title.membership-title i {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.product-card.plan-premium {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(59, 130, 246, 0.05));
}

.product-card.plan-diamond {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(168, 85, 247, 0.05));
}

.plan-premium .product-image i {
    color: #3b82f6;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
}

.plan-diamond .product-image i {
    color: #a855f7;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
}

.plan-premium .image-overlay-badge {
    color: #3b82f6;
}

.plan-diamond .image-overlay-badge {
    color: #a855f7;
}

.product-card.is-active-sub {
    opacity: 0.5;
    filter: grayscale(0.5);
    cursor: not-allowed !important;
    pointer-events: none;
    position: relative;
}

.product-card.is-active-sub::after {
    content: 'AKTIF';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.product-card.is-redundant {
    opacity: 0.6;
    filter: grayscale(0.6);
    cursor: not-allowed !important;
    pointer-events: none;
}

.flex-1 {
    flex: 1;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.border {
    border: 1px solid;
}

.border-2 {
    border: 2px solid;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.transition {
    transition: all 0.2s;
}

.active\:scale-95:active {
    transform: scale(0.95);
}

.border-primary {
    border-color: var(--primary);
}

.bg-primary\/10 {
    background-color: rgba(220, 38, 38, 0.1);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.border-yellow-500 {
    border-color: #fbbf24;
}

.bg-yellow-500\/10 {
    background-color: rgba(251, 191, 36, 0.1);
}

.text-yellow-500 {
    color: #fbbf24;
}

.text-yellow-500\/50 {
    color: rgba(251, 191, 36, 0.5);
}

.text-white\/50 {
    color: rgba(255, 255, 255, 0.5);
}

.text-\[10px\] {
    font-size: 10px;
}

/* OTP Channel Selector */
.otp-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.otp-option {
    flex: 1;
    position: relative;
    cursor: pointer;
    display: block;
}

.otp-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.otp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.otp-option input:checked+.otp-card {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.otp-option:last-child input:checked+.otp-card {
    background: rgba(251, 191, 36, 0.15) !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.otp-icon {
    font-size: 0.95rem;
    transition: transform 0.2s;
}

.otp-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.otp-option input:checked+.otp-card .otp-label {
    color: white;
}

/* Payment Methods */
.pay-method-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.btn-pay-option {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pay-option.active-cash {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.btn-pay-option.active-stars {
    background: rgba(251, 191, 36, 0.15);
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

#buyModal button[name="buy_package"] {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

#buyModal button[name="buy_package"]:active {
    transform: scale(0.98);
}


/* ==========================================================================
   SUPPORT VIEW STYLES
   ========================================================================== */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px 100px;
}

/* Support Grid Layout */
.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    align-items: start;
}

@media (min-width: 992px) {
    .support-grid {
        grid-template-columns: 400px 1fr;
    }
}

.container .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 4px;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    letter-spacing: -0.2px;
}

.section-title i {
    width: 32px;
    height: 32px;
    background: rgba(220, 38, 38, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 0.9rem;
    border: 1px solid rgba(220, 38, 38, 0.2);
    flex-shrink: 0;
}

.section-title-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.section-title-text span {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.section-title-text small {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.65;
    margin-top: 1px;
}

.section-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: -10px 0 20px 0;
    padding: 0 4px;
}

.notif-notice {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #a5b4fc;
}

.notif-notice i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notif-notice strong {
    color: var(--primary-light);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
}

.card-title {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-title i {
    color: var(--primary-light);
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
}

.collapsible-header:hover {
    color: var(--primary-light);
}

.collapsible-header .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.collapsible-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.collapsible-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.form-group {
    margin-bottom: 10px;
}

label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

input,
textarea,
select {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 10px;
    color: white;
    font-size: 0.8rem;
    outline: none;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
}

textarea {
    resize: vertical;
    min-height: 70px;
}

select {
    cursor: pointer;
}

select option {
    background: #0f172a;
    color: white;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 9px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-submit:hover {
    background: var(--primary-light);
}

.btn-submit:active {
    transform: scale(0.98);
}

.alert {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 14px;
    text-align: center;
    font-size: 0.8rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tickets-section {
    margin-top: 25px;
}

.tickets-section .section-title {
    margin-bottom: 14px;
}

.ticket-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.ticket-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.ticket-card.expanded {
    cursor: default;
    transform: translateY(0);
}

.ticket-header-bar {
    padding: 8px 12px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ticket-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.ticket-subject {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.new-reply-indicator {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #34d399;
    border-radius: 50%;
    margin-left: 4px;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.status-badge i {
    font-size: 0.6rem;
}

.status-open {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-in_progress {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.status-resolved {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-closed {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.ticket-body {
    padding: 10px 12px;
}

.ticket-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ticket-meta .service-tag {
    background: rgba(220, 38, 38, 0.15);
    color: #a5b4fc;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 600;
}

.ticket-meta i {
    font-size: 0.6rem;
}

.expand-indicator {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.expand-indicator i {
    font-size: 0.6rem;
}

.ticket-detail {
    display: none;
    padding: 12px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.1);
}

.ticket-detail.active {
    display: block;
}

.ticket-message {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    line-height: 1.6;
}

.replies-container {
    margin-bottom: 10px;
    max-height: 280px;
    overflow-y: auto;
}

.replies-container::-webkit-scrollbar {
    width: 5px;
}

.replies-container::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.reply-item {
    padding: 9px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.75rem;
}

.reply-user {
    background: rgba(220, 38, 38, 0.1);
    border-left: 3px solid var(--primary);
}

.reply-admin {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #34d399;
}

.reply-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.reply-message {
    line-height: 1.5;
}

.reply-form {}

.reply-form textarea {
    min-height: 65px;
    margin-bottom: 8px;
}

.reply-form button {
    padding: 8px;
    font-size: 0.75rem;
}

.no-tickets {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.no-tickets i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 10px;
    display: block;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .container {
        padding: 10px 10px 100px 10px;
    }

    .container .section-header {
        margin-bottom: 12px;
        padding: 0 2px;
    }

    .section-title {
        font-size: 0.88rem;
        gap: 8px;
    }

    .section-title i {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .section-subtitle {
        font-size: 0.7rem;
        margin: -8px 0 12px 0;
    }

    .notif-notice {
        padding: 8px 10px;
        margin-bottom: 12px;
        font-size: 0.7rem;
        border-radius: 8px;
    }

    .notif-notice i {
        font-size: 0.8rem;
    }

    .glass-card {
        padding: 10px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .card-title {
        font-size: 0.82rem;
    }

    .form-group {
        margin-bottom: 8px;
    }

    label {
        font-size: 0.68rem;
    }

    input,
    textarea,
    select {
        padding: 7px 9px;
        font-size: 0.75rem;
        border-radius: 7px;
    }

    textarea {
        min-height: 65px;
    }

    .btn-submit {
        padding: 8px;
        font-size: 0.75rem;
    }

    .ticket-card {
        margin-bottom: 8px;
    }

    .ticket-header-bar {
        padding: 7px 10px;
        flex-wrap: wrap;
    }

    .ticket-subject {
        font-size: 0.8rem;
        white-space: normal;
    }

    .status-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .ticket-body {
        padding: 7px 10px;
    }

    .ticket-meta {
        font-size: 0.6rem;
        gap: 6px;
    }

    .ticket-meta .service-tag {
        font-size: 0.58rem;
        padding: 2px 5px;
    }

    .expand-indicator {
        font-size: 0.6rem;
        padding: 6px 10px;
    }

    .ticket-detail {
        padding: 10px;
    }

    .ticket-message {
        font-size: 0.75rem;
        padding: 8px;
    }

    .reply-item {
        padding: 7px;
        font-size: 0.7rem;
    }

    .reply-meta {
        font-size: 0.6rem;
    }

    .reply-form textarea {
        font-size: 0.72rem;
        min-height: 60px;
    }

    .reply-form button {
        font-size: 0.72rem;
    }

    .no-tickets {
        padding: 30px 15px;
        font-size: 0.75rem;
    }

    .no-tickets i {
        font-size: 2.2rem !important;
    }
}


/* ==========================================================================
   PROFILE EDIT VIEW STYLES
   ========================================================================== */

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 12px 12px 100px 12px;
}

.container .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 4px;
}


.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
}

.form-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 10px 8px 32px;
    color: white;
    font-size: 0.8rem;
    outline: none;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}

.form-input:focus {
    border-color: var(--primary);
}

.form-input:read-only {
    background: rgba(255, 255, 255, 0.02);
    color: #94a3b8;
    cursor: not-allowed;
    border-style: dashed;
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 9px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: 0.3s;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.submit-btn:hover {
    background: var(--primary-light);
}

.submit-btn:active {
    transform: scale(0.98);
}

.alert {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    text-align: center;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 4px;
    vertical-align: middle;
}

.badge-verified {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 0.65rem;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    padding: 0;
    transition: 0.3s;
}

.btn-link:hover {
    color: var(--primary);
}

.btn-link.danger {
    color: #f87171;
}

.btn-link.danger:hover {
    color: #ef4444;
}

.field-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    min-height: 16px;
}

.field-warning {
    color: #f87171;
    font-size: 0.65rem;
    font-weight: 600;
}

.field-note {
    color: var(--text-muted);
    font-size: 0.65rem;
}

.otp-box {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
    text-align: center;
}

.otp-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: white;
}

.otp-box .form-input {
    text-align: center;
    letter-spacing: 4px;
    font-size: 1.1rem;
    padding: 8px;
}

.otp-box .submit-btn {
    margin-top: 10px;
    background: #10b981;
}

.otp-box .submit-btn:hover {
    background: #059669;
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: 0.3s;
}

.back-link:hover {
    color: white;
}

.back-link i {
    font-size: 0.7rem;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .container {
        padding: 10px 10px 100px 10px;
    }

    .container .section-header {
        margin-bottom: 12px;
        padding: 0 2px;
    }

    .section-title {
        font-size: 0.88rem;
        gap: 8px;
    }

    .section-title i {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .section-title-text span {
        font-size: 0.82rem;
    }

    .section-title-text small {
        font-size: 0.55rem;
    }

    .glass-card {
        padding: 10px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .form-group label {
        font-size: 0.68rem;
    }

    .input-group i {
        font-size: 0.7rem;
        left: 9px;
    }

    .form-input {
        padding: 7px 9px 7px 28px;
        font-size: 0.75rem;
        border-radius: 7px;
    }

    .submit-btn {
        padding: 8px;
        font-size: 0.75rem;
        margin-top: 6px;
    }

    .badge {
        font-size: 0.58rem;
        padding: 2px 5px;
    }

    .btn-link {
        font-size: 0.6rem;
    }

    .field-warning,
    .field-note {
        font-size: 0.6rem;
    }

    .otp-box {
        padding: 10px;
        border-radius: 8px;
        margin: 8px 0;
    }

    .otp-box label {
        font-size: 0.68rem;
        margin-bottom: 6px;
    }

    .otp-box .form-input {
        font-size: 1rem;
        letter-spacing: 3px;
        padding: 7px;
    }

    .otp-box .submit-btn {
        margin-top: 8px;
    }

    .back-link {
        font-size: 0.7rem;
        margin-top: 12px;
    }

    .verification-banner {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .verification-banner button {
        width: 100%;
        justify-content: center;
    }
}

/* Desktop/Global Verification Banner Styles */
.verification-banner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    animation: fadeIn 0.4s ease;
}

.verification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verification-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.verification-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Avatar Selector Styles */
.avatar-display-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-preview-container {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    padding: 3px;
    background: rgba(255, 255, 255, 0.05);
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.current-avatar-preview:hover {
    transform: scale(1.05);
    border-color: var(--primary-light);
}

.change-avatar-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border: 3px solid #1e293b;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.change-avatar-badge:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-light);
}

.avatar-selector-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.avatar-selector-content {
    max-width: 600px;
    margin: 0 auto;
    height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.avatar-selector-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avatar-selector-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.avatar-selector-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.avatar-category {
    margin-bottom: 25px;
}

.avatar-category-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-bottom: 12px;
    font-weight: 700;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 12px;
}

.avatar-item {
    aspect-ratio: 1/1;
    border-radius: 12px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
    background: rgba(255, 255, 255, 0.05);
}

.avatar-item:hover {
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-3px);
}

.avatar-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
    background: rgba(220, 38, 38, 0.1);
    position: relative;
}

.avatar-item.active::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 4px;
    right: 4px;
    color: var(--primary);
    background: white;
    border-radius: 50%;
    font-size: 0.8rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-selector {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 600px) {
    .avatar-selector-modal {
        padding: 10px;
    }

    .avatar-selector-content {
        height: 95vh;
    }

    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

.avatar-selector-body::-webkit-scrollbar {
    width: 6px;
}

.avatar-selector-body::-webkit-scrollbar-track {
    background: transparent;
}

.avatar-selector-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media (min-width: 992px) {
    .container {
        max-width: 900px;
    }

    .profile-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: start;
    }
}

/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked+.slider {
    background-color: #34d399;
}

.switch input:checked+.slider:before {
    transform: translateX(20px);
}

/* Responsive Navigation Header for Mobile */
@media (max-width: 480px) {
    nav {
        padding: 0.4rem 0.5rem;
    }

    nav>div {
        gap: 4px !important;
    }

    .logo {
        gap: 4px;
        font-size: 0.75rem;
    }

    .logo i {
        font-size: 0.9rem;
    }

    .nav-user {
        height: 32px;
        padding: 0 4px 0 8px;
        gap: 6px;
        border-radius: 8px;
    }

    .nav-user-info {
        display: flex;
    }

    .nav-user-name {
        font-size: 0.7rem;
    }

    .nav-user-stars {
        font-size: 8px;
        margin-top: 1px;
    }

    .nav-user-stars i {
        font-size: 7px;
    }

    .user-avatar-small {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }

    .dropdown-btn.icon-only,
    .logout-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 0.8rem;
    }

    /* Dashboard mobile optimizations */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .service-card {
        padding: 10px;
        border-radius: 12px;
    }

    .card-top {
        gap: 8px;
        margin-bottom: 8px;
    }

    .card-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .card-icon img {
        border-radius: 8px;
    }

    .card-name {
        font-size: 0.65rem;
    }

    .card-desc {
        font-size: 0.52rem;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }

    .card-btn {
        gap: 6px;
    }

    .platform-stack {
        height: 26px;
        border-radius: 6px;
        padding: 2px 4px;
    }

    .platform-mini-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
        margin-right: 2px;
    }

    .btn-hub-action {
        height: 26px;
        border-radius: 6px;
        font-size: 0.55rem;
        gap: 4px;
    }

    .stats-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-bottom: 18px;
    }

    .profile-card {
        gap: 10px;
        margin-bottom: 15px;
    }

    .avatar-wrapper {
        width: 48px;
        height: 48px;
    }

    .greeting-text-box h1 {
        font-size: 0.95rem;
    }

    .greeting-text-box p {
        font-size: 0.65rem;
    }

    .section-header {
        margin-bottom: 10px;
        gap: 8px;
    }

    .section-header-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .section-header-text h2 {
        font-size: 0.75rem;
    }

    /* Membership page mobile optimizations */
    .membership-container {
        padding: 12px 8px 80px;
    }

    .current-status-card {
        padding: 16px 14px;
        border-radius: 16px;
        margin-bottom: 18px;
    }

    .atm-number {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    .current-level-name {
        font-size: 1.2rem;
    }

    .balance-badge {
        padding: 3px 8px;
        font-size: 0.6rem;
        gap: 6px;
    }

    .member-name {
        font-size: 0.75rem;
    }

    .connected-badges {
        gap: 4px;
        margin-top: 6px;
    }

    .service-badge {
        padding: 2px 6px;
        font-size: 0.48rem;
    }

    .level-path {
        margin: 18px -6px -6px;
        padding: 8px 12px;
        border-radius: 12px;
    }

    .level-path::before {
        left: 20px;
        right: 20px;
    }

    .path-step {
        width: 26px;
        height: 26px;
        font-size: 0.6rem;
    }

    .progress-info-card {
        padding: 12px;
        margin: 10px 0 15px;
        border-radius: 12px;
    }

    .total-stars-val {
        font-size: 0.95rem;
    }

    .progress-label {
        font-size: 0.6rem;
    }

    .progress-footer {
        font-size: 0.58rem;
    }

    .level-card {
        padding: 12px;
        gap: 10px;
        border-radius: 16px;
    }

    .level-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .level-info h3 {
        font-size: 0.85rem;
    }

    .level-info p {
        font-size: 0.58rem;
    }

    .level-card.active::before {
        padding: 2px 8px;
        font-size: 0.45rem;
    }

    /* Store page mobile optimizations */
    .store-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .product-card {
        border-radius: 6px;
    }

    .product-image i {
        font-size: 1.2rem;
    }

    .product-image .fa-star {
        font-size: 1.8rem;
    }

    .product-info {
        padding: 5px;
    }

    .product-name {
        font-size: 0.58rem;
        min-height: 2.4em;
        line-height: 1.2;
    }

    .product-price {
        font-size: 0.62rem;
    }

    .btn-cart {
        height: 20px;
        font-size: 0.52rem;
        border-radius: 4px;
    }

    .image-overlay-badge {
        font-size: 0.5rem !important;
        padding: 1px 4px !important;
    }

    /* Support page mobile optimizations */
    .support-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ticket-card {
        margin-bottom: 8px;
    }

    .ticket-header-bar {
        padding: 6px 10px;
    }

    .ticket-subject {
        font-size: 0.78rem;
    }

    .ticket-body {
        padding: 6px 10px;
    }

    .ticket-message {
        font-size: 0.75rem;
        padding: 8px;
    }

    .reply-item {
        padding: 6px;
        font-size: 0.68rem;
    }

    /* Edit Profile mobile optimizations */
    .avatar-display-wrapper {
        margin-bottom: 15px;
        padding: 8px;
    }

    .avatar-preview-container {
        width: 90px;
        height: 90px;
    }

    .current-avatar-preview {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }

    .change-avatar-badge {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        border-width: 2px;
    }
}