/* ============================================
   NEUMORPHISM DESIGN SYSTEM
   All-in-One Premium App - apk.kaly4cid.pro
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== LIGHT THEME (Default) ===== */
:root,
[data-theme="light"] {
    --nm-bg: #e0e5ec;
    --nm-bg-alt: #d1d9e6;
    --nm-surface: #e0e5ec;
    --nm-shadow-light: #ffffff;
    --nm-shadow-dark: #a3b1c6;
    --nm-shadow-inset-light: #ffffff;
    --nm-shadow-inset-dark: #b8c6d8;

    --nm-text-primary: #2d3436;
    --nm-text-secondary: #636e72;
    --nm-text-muted: #95a5a6;

    --nm-primary: #7c3aed;
    --nm-primary-light: #a78bfa;
    --nm-primary-dark: #5b21b6;
    --nm-primary-rgb: 124, 58, 237;
    --nm-primary-glow: rgba(124, 58, 237, 0.3);

    --nm-accent: #06d6a0;
    --nm-accent-rgb: 6, 214, 160;
    --nm-danger: #ef4444;
    --nm-warning: #f59e0b;
    --nm-success: #22c55e;
    --nm-info: #3b82f6;

    --nm-gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --nm-gradient-accent: linear-gradient(135deg, #06d6a0 0%, #00b4d8 100%);
    --nm-gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --nm-gradient-surface: linear-gradient(145deg, #e6ebf2, #d4d9e0);

    --nm-card-shadow: 8px 8px 16px #b8c6d8, -8px -8px 16px #ffffff;
    --nm-card-shadow-sm: 4px 4px 8px #b8c6d8, -4px -4px 8px #ffffff;
    --nm-card-shadow-lg: 12px 12px 24px #b8c6d8, -12px -12px 24px #ffffff;
    --nm-inset-shadow: inset 4px 4px 8px #b8c6d8, inset -4px -4px 8px #ffffff;
    --nm-inset-shadow-sm: inset 2px 2px 5px #b8c6d8, inset -2px -2px 5px #ffffff;

    --nm-btn-shadow: 5px 5px 10px #b8c6d8, -5px -5px 10px #ffffff;
    --nm-btn-shadow-hover: 3px 3px 6px #b8c6d8, -3px -3px 6px #ffffff;
    --nm-btn-shadow-active: inset 3px 3px 6px #b8c6d8, inset -3px -3px 6px #ffffff;

    --nm-nav-bg: #e0e5ec;
    --nm-nav-border: rgba(163, 177, 198, 0.3);
    --nm-navbar-shadow: 0 -4px 16px rgba(163, 177, 198, 0.4);

    --nm-input-bg: rgba(224, 229, 236, 0.7);
    --nm-input-border: transparent;
    --nm-input-focus-border: var(--nm-primary);

    --nm-overlay: rgba(224, 229, 236, 0.85);
    --nm-modal-bg: rgba(224, 229, 236, 0.9);

    --nm-divider: rgba(163, 177, 198, 0.4);
    --nm-badge-bg: rgba(124, 58, 237, 0.12);
    --nm-badge-text: #7c3aed;

    --nm-scrollbar-track: #d1d9e6;
    --nm-scrollbar-thumb: #a3b1c6;

    --nm-skeleton: linear-gradient(90deg, #d1d9e6 25%, #dce3ed 50%, #d1d9e6 75%);
    --nm-radius: 16px;
    --nm-radius-sm: 10px;
    --nm-radius-lg: 24px;
    --nm-radius-full: 50px;
    --nm-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Glassmorphism */
    --nm-glass-bg: rgba(224, 229, 236, 0.6);
    --nm-glass-border: rgba(255, 255, 255, 0.5);
    --nm-glass-blur: 16px;

    /* Background orbs */
    --nm-orb1: rgba(124, 58, 237, 0.15);
    --nm-orb2: rgba(6, 214, 160, 0.12);
    --nm-orb3: rgba(245, 158, 11, 0.10);
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
    --nm-bg: #1a1a2e;
    --nm-bg-alt: #16213e;
    --nm-surface: #1a1a2e;
    --nm-shadow-light: #222240;
    --nm-shadow-dark: #12121e;
    --nm-shadow-inset-light: #222240;
    --nm-shadow-inset-dark: #12121e;

    --nm-text-primary: #e8e8f0;
    --nm-text-secondary: #a0a0b8;
    --nm-text-muted: #6b6b80;

    --nm-primary: #a78bfa;
    --nm-primary-light: #c4b5fd;
    --nm-primary-dark: #7c3aed;
    --nm-primary-rgb: 167, 139, 250;
    --nm-primary-glow: rgba(167, 139, 250, 0.35);

    --nm-gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --nm-gradient-surface: linear-gradient(145deg, #1e1e36, #161628);

    --nm-card-shadow: 8px 8px 16px #12121e, -8px -8px 16px #222240;
    --nm-card-shadow-sm: 4px 4px 8px #12121e, -4px -4px 8px #222240;
    --nm-card-shadow-lg: 12px 12px 24px #12121e, -12px -12px 24px #222240;
    --nm-inset-shadow: inset 4px 4px 8px #12121e, inset -4px -4px 8px #222240;
    --nm-inset-shadow-sm: inset 2px 2px 5px #12121e, inset -2px -2px 5px #222240;

    --nm-btn-shadow: 5px 5px 10px #12121e, -5px -5px 10px #222240;
    --nm-btn-shadow-hover: 3px 3px 6px #12121e, -3px -3px 6px #222240;
    --nm-btn-shadow-active: inset 3px 3px 6px #12121e, inset -3px -3px 6px #222240;

    --nm-nav-bg: #1a1a2e;
    --nm-nav-border: rgba(34, 34, 64, 0.5);
    --nm-navbar-shadow: 0 -4px 16px rgba(18, 18, 30, 0.6);

    --nm-input-bg: rgba(26, 26, 46, 0.7);
    --nm-input-border: transparent;

    --nm-overlay: rgba(26, 26, 46, 0.9);
    --nm-modal-bg: rgba(26, 26, 46, 0.9);

    --nm-divider: rgba(34, 34, 64, 0.6);
    --nm-badge-bg: rgba(167, 139, 250, 0.15);
    --nm-badge-text: #a78bfa;

    --nm-scrollbar-track: #16213e;
    --nm-scrollbar-thumb: #2a2a4a;

    --nm-skeleton: linear-gradient(90deg, #1e1e36 25%, #252545 50%, #1e1e36 75%);

    /* Glassmorphism */
    --nm-glass-bg: rgba(26, 26, 46, 0.55);
    --nm-glass-border: rgba(255, 255, 255, 0.08);
    --nm-glass-blur: 20px;

    /* Background orbs */
    --nm-orb1: rgba(124, 58, 237, 0.2);
    --nm-orb2: rgba(6, 214, 160, 0.12);
    --nm-orb3: rgba(59, 130, 246, 0.15);
}

/* ===== BASE STYLES ===== */
html {
    height: 100%;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--nm-bg);
    color: var(--nm-text-primary);
    min-height: 100%;
    line-height: 1.6;
    transition: background var(--nm-transition), color var(--nm-transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* ===== ANIMATED BACKGROUND ORBS ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(600px circle at 20% 30%, var(--nm-orb1) 0%, transparent 60%),
        radial-gradient(500px circle at 80% 70%, var(--nm-orb2) 0%, transparent 60%),
        radial-gradient(450px circle at 50% 90%, var(--nm-orb3) 0%, transparent 60%),
        var(--nm-bg);
    animation: nmOrbDrift 20s ease-in-out infinite alternate;
    transition: background 0.6s ease;
}

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

    25% {
        background-position: 30% 10%, 70% 80%, 60% 60%;
    }

    50% {
        background-position: 60% 40%, 40% 50%, 20% 70%;
    }

    75% {
        background-position: 80% 60%, 20% 30%, 70% 40%;
    }

    100% {
        background-position: 100% 80%, 0% 20%, 40% 10%;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--nm-scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--nm-scrollbar-thumb);
    border-radius: 3px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--nm-text-primary);
}

.text-gradient {
    background: var(--nm-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-secondary {
    color: var(--nm-text-secondary);
}

.text-muted {
    color: var(--nm-text-muted);
}

/* ===== NEUMORPHIC CARDS ===== */
.nm-card {
    background: var(--nm-glass-bg);
    backdrop-filter: blur(var(--nm-glass-blur));
    -webkit-backdrop-filter: blur(var(--nm-glass-blur));
    border: 1px solid var(--nm-glass-border);
    border-radius: var(--nm-radius);
    box-shadow: var(--nm-card-shadow);
    padding: 24px;
    transition: all var(--nm-transition);
}

.nm-card:hover {
    box-shadow: var(--nm-card-shadow-lg);
    transform: translateY(-2px);
}

.nm-card-sm {
    background: var(--nm-surface);
    border-radius: var(--nm-radius-sm);
    box-shadow: var(--nm-card-shadow-sm);
    padding: 16px;
    transition: all var(--nm-transition);
}

.nm-card-flat {
    background: var(--nm-gradient-surface);
    border-radius: var(--nm-radius);
    padding: 24px;
    border: 1px solid var(--nm-divider);
}

.nm-card-inset {
    background: var(--nm-surface);
    border-radius: var(--nm-radius);
    box-shadow: var(--nm-inset-shadow);
    padding: 24px;
}

/* ===== NEUMORPHIC BUTTONS ===== */
.nm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--nm-radius-full);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--nm-transition);
    background: var(--nm-surface);
    color: var(--nm-text-primary);
    box-shadow: var(--nm-btn-shadow);
    text-decoration: none;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.nm-btn:hover {
    box-shadow: var(--nm-btn-shadow-hover);
    transform: translateY(-1px);
}

.nm-btn:active {
    box-shadow: var(--nm-btn-shadow-active);
    transform: translateY(0);
}

.nm-btn-primary {
    background: var(--nm-gradient-primary);
    color: #ffffff;
    box-shadow: 5px 5px 15px rgba(var(--nm-primary-rgb), 0.3), -3px -3px 10px var(--nm-shadow-light);
}

.nm-btn-primary:hover {
    box-shadow: 3px 3px 10px rgba(var(--nm-primary-rgb), 0.4), -2px -2px 6px var(--nm-shadow-light);
}

.nm-btn-primary:active {
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.nm-btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--nm-radius);
    font-size: 1.2rem;
}

.nm-btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ===== NEUMORPHIC INPUTS ===== */
.nm-input-group {
    margin-bottom: 20px;
}

.nm-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nm-text-secondary);
    margin-bottom: 8px;
}

.nm-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid transparent;
    border-radius: var(--nm-radius);
    background: var(--nm-input-bg);
    box-shadow: var(--nm-inset-shadow-sm);
    color: var(--nm-text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all var(--nm-transition);
}

.nm-input:focus {
    border-color: var(--nm-primary);
    box-shadow: var(--nm-inset-shadow-sm), 0 0 0 3px var(--nm-primary-glow);
}

.nm-input::placeholder {
    color: var(--nm-text-muted);
}

.nm-textarea {
    resize: vertical;
    min-height: 100px;
}

.nm-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ===== BOTTOM NAVBAR ===== */
.nm-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--nm-glass-bg);
    backdrop-filter: blur(var(--nm-glass-blur));
    -webkit-backdrop-filter: blur(var(--nm-glass-blur));
    box-shadow: var(--nm-navbar-shadow);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--nm-glass-border);
    transition: all var(--nm-transition);
}

.nm-navbar-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px;
}

.nm-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--nm-radius);
    color: var(--nm-text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--nm-transition);
    background: none;
    border: none;
    position: relative;
}

.nm-nav-item i {
    font-size: 1.3rem;
    transition: all var(--nm-transition);
}

.nm-nav-item.active {
    color: var(--nm-primary);
    background: var(--nm-surface);
    box-shadow: var(--nm-inset-shadow-sm);
}

.nm-nav-item.active i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px var(--nm-primary-glow));
}

.nm-nav-item:not(.active):hover {
    color: var(--nm-text-secondary);
}

/* ===== BADGES ===== */
.nm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--nm-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--nm-badge-bg);
    color: var(--nm-badge-text);
}

.nm-badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.nm-badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.nm-badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.nm-badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* ===== MODALS ===== */
.nm-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--nm-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nm-modal {
    background: var(--nm-modal-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--nm-glass-border);
    border-radius: var(--nm-radius-lg);
    box-shadow: var(--nm-card-shadow-lg);
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.nm-modal-overlay.active .nm-modal {
    transform: scale(1) translateY(0);
}

.nm-modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nm-modal-header h3 {
    font-size: 1.2rem;
}

.nm-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--nm-radius-sm);
    background: var(--nm-surface);
    box-shadow: var(--nm-card-shadow-sm);
    color: var(--nm-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--nm-transition);
}

.nm-modal-close:hover {
    color: var(--nm-danger);
    box-shadow: var(--nm-btn-shadow-hover);
}

.nm-modal-body {
    padding: 24px;
}

.nm-modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ===== TOAST NOTIFICATIONS ===== */
.nm-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.nm-toast {
    padding: 14px 20px;
    border-radius: var(--nm-radius);
    background: var(--nm-surface);
    box-shadow: var(--nm-card-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: nmToastIn 0.4s ease forwards;
    color: var(--nm-text-primary);
}

.nm-toast.removing {
    animation: nmToastOut 0.3s ease forwards;
}

.nm-toast i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nm-toast-success i {
    color: var(--nm-success);
}

.nm-toast-error i {
    color: var(--nm-danger);
}

.nm-toast-warning i {
    color: var(--nm-warning);
}

.nm-toast-info i {
    color: var(--nm-info);
}

@keyframes nmToastIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes nmToastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
}

/* ===== SPLASH SCREEN ===== */
.nm-splash {
    position: fixed;
    inset: 0;
    background: var(--nm-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 32px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.nm-splash.fade-out {
    opacity: 0;
    visibility: hidden;
}

.nm-splash-logo {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--nm-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    animation: nmPulse 2s ease-in-out infinite;
}

.nm-splash-loader {
    width: 200px;
    height: 6px;
    border-radius: 3px;
    background: var(--nm-surface);
    box-shadow: var(--nm-inset-shadow-sm);
    overflow: hidden;
}

.nm-splash-loader-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: var(--nm-gradient-primary);
    animation: nmLoadBar 2s ease-in-out forwards;
}

.nm-splash-tagline {
    font-size: 0.9rem;
    color: var(--nm-text-secondary);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Splash particles */
.nm-splash-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.nm-splash-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nm-primary);
    opacity: 0.2;
    animation: nmParticleFloat 6s infinite;
}

.nm-splash-particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.nm-splash-particle:nth-child(2) {
    left: 80%;
    top: 15%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.nm-splash-particle:nth-child(3) {
    left: 50%;
    top: 70%;
    animation-delay: 2s;
    animation-duration: 4s;
}

.nm-splash-particle:nth-child(4) {
    left: 25%;
    top: 85%;
    animation-delay: 0.5s;
    animation-duration: 6s;
}

.nm-splash-particle:nth-child(5) {
    left: 70%;
    top: 60%;
    animation-delay: 1.5s;
    animation-duration: 5.5s;
}

@keyframes nmParticleFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 0.5;
    }
}

@keyframes nmLoadBar {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes nmPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== APP GRID ===== */
.nm-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 0;
}

.nm-app-card {
    background: var(--nm-glass-bg);
    backdrop-filter: blur(var(--nm-glass-blur));
    -webkit-backdrop-filter: blur(var(--nm-glass-blur));
    border: 1px solid var(--nm-glass-border);
    border-radius: var(--nm-radius);
    box-shadow: var(--nm-card-shadow);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--nm-transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nm-app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--nm-gradient-primary);
    opacity: 0;
    transition: opacity var(--nm-transition);
}

.nm-app-card:hover {
    box-shadow: var(--nm-card-shadow-lg);
    transform: translateY(-4px);
}

.nm-app-card:hover::before {
    opacity: 1;
}

.nm-app-card:active {
    box-shadow: var(--nm-inset-shadow);
    transform: translateY(0);
}

.nm-app-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--nm-radius);
    box-shadow: var(--nm-card-shadow-sm);
    object-fit: cover;
    background: var(--nm-gradient-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nm-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--nm-radius);
}

.nm-app-icon i {
    font-size: 1.8rem;
    color: var(--nm-primary);
}

.nm-app-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--nm-text-primary);
    line-height: 1.3;
}

.nm-app-category {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--nm-primary);
    background: var(--nm-badge-bg);
    padding: 3px 10px;
    border-radius: var(--nm-radius-full);
}

.nm-app-status {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nm-success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.nm-app-status.inactive {
    background: var(--nm-text-muted);
    box-shadow: none;
}

/* ===== ACCOUNT LIST ===== */
.nm-account-item {
    background: var(--nm-surface);
    border-radius: var(--nm-radius);
    box-shadow: var(--nm-card-shadow-sm);
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: all var(--nm-transition);
}

.nm-account-item:hover {
    box-shadow: var(--nm-card-shadow);
}

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

.nm-account-email {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--nm-text-primary);
}

.nm-account-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--nm-divider);
    font-size: 0.85rem;
}

.nm-account-field:last-child {
    border-bottom: none;
}

.nm-account-field-label {
    color: var(--nm-text-secondary);
    font-weight: 500;
}

.nm-account-field-value {
    color: var(--nm-text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nm-copy-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: var(--nm-surface);
    box-shadow: var(--nm-card-shadow-sm);
    color: var(--nm-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all var(--nm-transition);
}

.nm-copy-btn:hover {
    color: var(--nm-primary);
    box-shadow: var(--nm-btn-shadow-hover);
}

.nm-copy-btn.copied {
    color: var(--nm-success);
}

/* ===== PROFILE SECTION ===== */
.nm-profile-header {
    text-align: center;
    padding: 32px 20px;
}

.nm-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: var(--nm-card-shadow);
    margin: 0 auto 16px;
    overflow: hidden;
    background: var(--nm-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nm-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nm-profile-avatar i {
    font-size: 2.5rem;
    color: #ffffff;
}

.nm-profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.nm-profile-email {
    font-size: 0.9rem;
    color: var(--nm-text-secondary);
}

.nm-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 20px;
}

.nm-stat-card {
    background: var(--nm-glass-bg);
    backdrop-filter: blur(var(--nm-glass-blur));
    -webkit-backdrop-filter: blur(var(--nm-glass-blur));
    border: 1px solid var(--nm-glass-border);
    border-radius: var(--nm-radius);
    box-shadow: var(--nm-card-shadow-sm);
    padding: 20px 16px;
    text-align: center;
}

.nm-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--nm-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nm-stat-label {
    font-size: 0.7rem;
    color: var(--nm-text-muted);
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SETTINGS ===== */
.nm-setting-group {
    margin-bottom: 24px;
}

.nm-setting-group-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nm-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.nm-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--nm-glass-bg);
    backdrop-filter: blur(var(--nm-glass-blur));
    -webkit-backdrop-filter: blur(var(--nm-glass-blur));
    border: 1px solid var(--nm-glass-border);
    border-radius: var(--nm-radius);
    box-shadow: var(--nm-card-shadow-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all var(--nm-transition);
}

.nm-setting-item:hover {
    box-shadow: var(--nm-card-shadow);
}

.nm-setting-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nm-setting-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--nm-radius-sm);
    background: var(--nm-gradient-surface);
    box-shadow: var(--nm-card-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--nm-primary);
}

.nm-setting-label {
    font-size: 0.95rem;
    font-weight: 500;
}

.nm-setting-desc {
    font-size: 0.75rem;
    color: var(--nm-text-muted);
    margin-top: 2px;
}

/* Neumorphic Toggle Switch */
.nm-toggle {
    position: relative;
    width: 56px;
    height: 30px;
    cursor: pointer;
}

.nm-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.nm-toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: var(--nm-radius-full);
    background: var(--nm-surface);
    box-shadow: var(--nm-inset-shadow-sm);
    transition: all var(--nm-transition);
}

.nm-toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    background: var(--nm-surface);
    box-shadow: var(--nm-card-shadow-sm);
    transition: all var(--nm-transition);
}

.nm-toggle input:checked+.nm-toggle-slider {
    background: var(--nm-primary);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nm-toggle input:checked+.nm-toggle-slider::before {
    transform: translateX(26px);
    background: #ffffff;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

/* ===== SEARCH BAR ===== */
.nm-search {
    position: relative;
}

.nm-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nm-text-muted);
    font-size: 0.95rem;
}

.nm-search input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 1px solid var(--nm-glass-border);
    border-radius: var(--nm-radius-full);
    background: var(--nm-glass-bg);
    backdrop-filter: blur(var(--nm-glass-blur));
    -webkit-backdrop-filter: blur(var(--nm-glass-blur));
    box-shadow: var(--nm-inset-shadow-sm);
    color: var(--nm-text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all var(--nm-transition);
}

.nm-search input:focus {
    border-color: var(--nm-primary);
    box-shadow: var(--nm-inset-shadow-sm), 0 0 0 3px var(--nm-primary-glow);
}

.nm-search input::placeholder {
    color: var(--nm-text-muted);
}

/* ===== CATEGORY CHIPS ===== */
.nm-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px;
}

.nm-chips::-webkit-scrollbar {
    display: none;
}

.nm-chip {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: var(--nm-radius-full);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--nm-transition);
    background: var(--nm-surface);
    box-shadow: var(--nm-card-shadow-sm);
    color: var(--nm-text-secondary);
}

.nm-chip.active {
    background: var(--nm-gradient-primary);
    color: #ffffff;
    box-shadow: 3px 3px 8px rgba(var(--nm-primary-rgb), 0.3);
}

.nm-chip:not(.active):hover {
    box-shadow: var(--nm-btn-shadow-hover);
    color: var(--nm-text-primary);
}

/* ===== SKELETON LOADING ===== */
.nm-skeleton {
    background: var(--nm-surface);
    border-radius: var(--nm-radius);
    box-shadow: var(--nm-card-shadow-sm);
    position: relative;
    overflow: hidden;
}

.nm-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--nm-skeleton);
    background-size: 200% 100%;
    animation: nmShimmer 1.5s infinite linear;
}

@keyframes nmShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== EMPTY STATE ===== */
.nm-empty {
    text-align: center;
    padding: 48px 20px;
}

.nm-empty i {
    font-size: 3rem;
    color: var(--nm-text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.nm-empty h3 {
    font-size: 1.1rem;
    color: var(--nm-text-secondary);
    margin-bottom: 8px;
}

.nm-empty p {
    font-size: 0.85rem;
    color: var(--nm-text-muted);
}

/* ===== SECTION HEADER ===== */
.nm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
}

.nm-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nm-section-title i {
    color: var(--nm-primary);
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}

.nm-divider {
    height: 1px;
    background: var(--nm-divider);
    margin: 20px 0;
}

.nm-page-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px;
    padding-bottom: 100px;
    min-height: 100vh;
}

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

.nm-header-title {
    font-size: 1.5rem;
    font-weight: 800;
}

/* ===== ANIMATIONS ===== */
.nm-fade-in {
    animation: nmFadeIn 0.5s ease forwards;
}

@keyframes nmFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nm-stagger>* {
    opacity: 0;
    animation: nmFadeIn 0.4s ease forwards;
}

.nm-stagger>*:nth-child(1) {
    animation-delay: 0.05s;
}

.nm-stagger>*:nth-child(2) {
    animation-delay: 0.1s;
}

.nm-stagger>*:nth-child(3) {
    animation-delay: 0.15s;
}

.nm-stagger>*:nth-child(4) {
    animation-delay: 0.2s;
}

.nm-stagger>*:nth-child(5) {
    animation-delay: 0.25s;
}

.nm-stagger>*:nth-child(6) {
    animation-delay: 0.3s;
}

.nm-stagger>*:nth-child(7) {
    animation-delay: 0.35s;
}

.nm-stagger>*:nth-child(8) {
    animation-delay: 0.4s;
}

.nm-stagger>*:nth-child(9) {
    animation-delay: 0.45s;
}

.nm-stagger>*:nth-child(10) {
    animation-delay: 0.5s;
}

.nm-stagger>*:nth-child(11) {
    animation-delay: 0.55s;
}

.nm-stagger>*:nth-child(12) {
    animation-delay: 0.6s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .nm-app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .nm-app-card {
        padding: 20px 12px;
    }

    .nm-app-icon {
        width: 52px;
        height: 52px;
    }

    .nm-stats-grid {
        gap: 10px;
    }

    .nm-stat-card {
        padding: 16px 12px;
    }

    .nm-stat-number {
        font-size: 1.2rem;
    }

    .nm-card {
        padding: 20px 16px;
    }

    .nm-toast-container {
        left: 16px;
        right: 16px;
        max-width: none;
    }

    .nm-modal {
        max-width: none;
        margin: 0 10px;
        border-radius: var(--nm-radius);
    }
}

@media (min-width: 768px) {
    .nm-app-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}