/* =========================================================
   AREWAOTP DASHBOARD — PROFESSIONAL REDESIGN
========================================================= */

/* ---------------------------------------------------------
   1. DESIGN SYSTEM & VARIABLES
--------------------------------------------------------- */
:root {
    --primary: #14b8a6;
    --primary-dark: #0d9488;
    --primary-deep: #0f766e;
    --primary-soft: rgba(20, 184, 166, 0.1);
    --primary-glow: rgba(20, 184, 166, 0.25);

    --off-white: #f8fafc;
    --white: #ffffff;
    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --light-text: #94a3b8;

    --border: #e2e8f0;
    --border-light: rgba(226, 232, 240, 0.7);

    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.1);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.1);

    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -7px rgba(15, 23, 42, 0.08);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
--------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    overflow-x: hidden;
    padding-bottom: 110px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

/* ---------------------------------------------------------
   3. BACKGROUND DECORATIONS
--------------------------------------------------------- */
.background-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.background-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.circle-one {
    width: 380px;
    height: 380px;
    background: rgba(20, 184, 166, 0.08);
    top: -150px;
    right: -100px;
}

.circle-two {
    width: 320px;
    height: 320px;
    background: rgba(59, 130, 246, 0.06);
    bottom: -100px;
    left: -100px;
}

/* ---------------------------------------------------------
   4. HEADER & NAVBAR
--------------------------------------------------------- */
.app-header {
    padding: 16px 0 8px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-inner {
    width: min(1180px, 92%);
    margin: auto;
    min-height: 64px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--primary-soft);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    color: var(--dark);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-name span {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-action {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--dark);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.header-action:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--primary-glow);
}

.header-action:active {
    transform: translateY(0);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    border-radius: var(--radius-full);
    color: var(--white);
    background: var(--danger);
    font-size: 0.65rem;
    font-weight: 800;
}

/* ---------------------------------------------------------
   5. WELCOME SECTION
--------------------------------------------------------- */
.welcome-section {
    width: min(1120px, 92%);
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-small {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.wave {
    display: inline-block;
    animation: waveAnimation 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes waveAnimation {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(14deg); }
    75% { transform: rotate(-8deg); }
}

.welcome-name {
    margin-top: 2px;
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.user-avatar {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 6px 16px var(--primary-glow);
}

/* ---------------------------------------------------------
   6. MAIN DASHBOARD CONTAINER
--------------------------------------------------------- */
.dashboard-container {
    width: min(1120px, 92%);
    margin: auto;
}

/* ---------------------------------------------------------
   7. PREMIUM BALANCE CARD
--------------------------------------------------------- */
.balance-card {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    padding: 28px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
    box-shadow: 0 20px 40px -10px rgba(13, 148, 136, 0.4);
    isolation: isolate;
}

.balance-content {
    position: relative;
    z-index: 3;
}

.balance-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.balance-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.currency {
    font-size: 1.6rem;
    font-weight: 700;
    opacity: 0.9;
}

.balance-amount {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -1.5px;
}

.balance-eye {
    margin-left: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.balance-eye:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    transform: scale(1.05);
}

/* Professional Fund Wallet Button */
.fund-wallet-button {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    color: var(--dark);
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.fund-wallet-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
    background: #ffffff;
}

.fund-wallet-button:active {
    transform: translateY(-1px);
}

.fund-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--white);
    background: var(--primary);
    font-size: 0.75rem;
}

/* Wallet Decorative Art */
.wallet-decoration {
    position: absolute;
    right: 5%;
    top: 50%;
    width: 130px;
    height: 105px;
    transform: translateY(-50%) rotate(-8deg);
    opacity: 0.9;
    pointer-events: none;
}

.wallet-card {
    position: absolute;
    right: 0;
    bottom: 7px;
    width: 100px;
    height: 72px;
    border-radius: 14px;
    background: linear-gradient(145deg, #f59e0b, #d97706);
    box-shadow: 0 14px 25px rgba(0, 0, 0, 0.25);
}

.wallet-card::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 9px;
    background: linear-gradient(145deg, #334155, #0f172a);
}

.wallet-strap {
    position: absolute;
    z-index: 3;
    left: -8px;
    top: 20px;
    width: 38px;
    height: 28px;
    border-radius: 8px;
    background: #475569;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.wallet-button {
    position: absolute;
    z-index: 5;
    right: 16px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.balance-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    bottom: -140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(20px);
}

/* ---------------------------------------------------------
   8. QUICK ACTIONS GRID
--------------------------------------------------------- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
}

.quick-action:hover {
    color: var(--dark);
    transform: translateY(-3px);
}

.quick-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    font-size: 1.35rem;
    transition: var(--transition);
}

.quick-action:hover .quick-icon {
    box-shadow: var(--shadow);
    border-color: rgba(20, 184, 166, 0.3);
}

.store-icon { color: #16a34a; background: rgba(22, 163, 74, 0.08); }
.market-icon { color: #2563eb; background: rgba(37, 99, 235, 0.08); }
.number-icon { color: #9333ea; background: rgba(147, 51, 234, 0.08); }
.boost-icon { color: #dc2626; background: rgba(220, 38, 38, 0.08); }

/* ---------------------------------------------------------
   9. CARDS & SECTIONS
--------------------------------------------------------- */
.services-card,
.activity-card {
    padding: 24px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.activity-card {
    margin-top: 20px;
}

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

.section-kicker {
    margin-bottom: 3px;
    color: var(--primary);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 800;
}

.section-heading h2 {
    color: var(--dark);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-deep);
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary);
    transform: translateX(2px);
}

/* ---------------------------------------------------------
   10. SERVICES GRID
--------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.service-item {
    min-height: 120px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-4px);
    background: var(--white);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: var(--shadow);
    color: var(--dark);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    transition: var(--transition);
}

.airtime { color: #10b981; background: #ecfdf5; }
.data { color: #3b82f6; background: #eff6ff; }
.cable { color: #8b5cf6; background: #f5f3ff; }
.electricity { color: #f59e0b; background: #fffbeb; }
.virtual-number { color: #ec4899; background: #fdf2f8; }
.social { color: #ef4444; background: #fef2f2; }
.proxy { color: #0ea5e9; background: #f0f9ff; }
.more { color: #6366f1; background: #eef2ff; }

/* ---------------------------------------------------------
   11. ACCOUNT OVERVIEW GRID
--------------------------------------------------------- */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.overview-item:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: var(--shadow);
}

.overview-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    color: var(--primary-deep);
    background: var(--primary-soft);
    font-size: 1.1rem;
}

.overview-item div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.overview-item strong {
    color: var(--dark);
    font-size: 1.15rem;
    font-weight: 800;
}

.overview-item span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ---------------------------------------------------------
   12. RECENT ORDERS LIST & BADGES
--------------------------------------------------------- */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.order-item:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: var(--shadow);
}

.order-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    color: var(--primary-deep);
    background: var(--primary-soft);
    font-size: 1rem;
}

.order-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-info strong {
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-info span {
    color: var(--muted);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.order-right strong {
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 800;
}

/* Redesigned Status Badges with Clear Legibility */
.order-status {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.order-status.active,
.order-status.completed,
.order-status.successful {
    color: #047857;
    background: #d1fae5;
}

.order-status.pending {
    color: #b45309;
    background: #fef3c7;
}

.order-status.cancelled,
.order-status.expired,
.order-status.failed {
    color: #b91c1c;
    background: #fee2e2;
}

/* ---------------------------------------------------------
   13. EMPTY ACTIVITY STATE & CTA BUTTON
--------------------------------------------------------- */
.empty-activity {
    padding: 36px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.empty-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.empty-activity h3 {
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 800;
}

.empty-activity p {
    max-width: 320px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.empty-action {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 6px 18px var(--primary-glow);
    transition: var(--transition);
}

.empty-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.empty-action:active {
    transform: translateY(0);
}

/* ---------------------------------------------------------
   14. BOTTOM NAVIGATION & FLOATING ACTION BUTTON
--------------------------------------------------------- */
.bottom-navigation {
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(650px, 100%);
    height: 76px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bottom-item {
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--light-text);
    font-size: 0.72rem;
    font-weight: 700;
    transition: var(--transition);
}

.bottom-item i {
    font-size: 1.25rem;
}

.bottom-item.active {
    color: var(--primary-deep);
}

.bottom-item:hover {
    color: var(--primary);
}

/* Floating Center Fund Button Wrapper */
.fund-button-wrapper {
    position: relative;
    height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.fund-button {
    position: absolute;
    top: -24px;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid #f1f5f9;
    border-radius: var(--radius-full);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    box-shadow: 0 10px 25px var(--primary-glow);
    font-size: 1.3rem;
    transition: var(--transition);
}

.fund-button-wrapper:hover .fund-button {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 30px var(--primary-glow);
}

.fund-button-wrapper:active .fund-button {
    transform: translateY(0) scale(0.98);
}

.fund-label {
    margin-top: 36px;
}

.dashboard-bottom-space {
    height: 30px;
}

/* ---------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
--------------------------------------------------------- */
@media (min-width: 800px) {
    .bottom-navigation {
        border-radius: var(--radius-lg);
        bottom: 16px;
        height: 72px;
        border: 1px solid var(--border-light);
    }
}

@media (max-width: 600px) {
    .header-inner,
    .dashboard-container,
    .welcome-section {
        width: calc(100% - 24px);
    }

    .balance-card {
        min-height: 185px;
        padding: 20px;
    }

    .wallet-decoration {
        right: -2%;
        transform: translateY(-50%) scale(0.75) rotate(-8deg);
    }

    .services-card,
    .activity-card {
        padding: 18px 14px;
    }
}

@media (max-width: 480px) {
    .quick-icon {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }

    .overview-grid {
        gap: 10px;
    }

    .overview-item {
        padding: 12px;
        gap: 10px;
    }

    .overview-icon {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .overview-item strong {
        font-size: 1rem;
    }

    .welcome-name {
        font-size: 1.25rem;
    }

    .balance-amount {
        font-size: 2rem;
    }
}

@media (max-width: 360px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        gap: 8px;
    }

    .service-item {
        min-height: 105px;
        padding: 10px 6px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ---------------------------------------------------------
   16. DARK MODE PARITY
--------------------------------------------------------- */
body.dark-mode {
    --off-white: #090d16;
    --white: #111827;
    --dark: #f8fafc;
    --text: #cbd5e1;
    --muted: #818cf8;
    --light-text: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.05);

    background: #090d16;
}

body.dark-mode .header-inner,
body.dark-mode .services-card,
body.dark-mode .activity-card,
body.dark-mode .ads-container {
    background: rgba(17, 24, 39, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .header-action,
body.dark-mode .service-item,
body.dark-mode .overview-item,
body.dark-mode .order-item,
body.dark-mode .quick-icon {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

body.dark-mode .bottom-navigation {
    background: rgba(17, 24, 39, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .fund-button {
    border-color: #090d16;
}