/* =========================================================================
   Buzzercode App — Premium Mobile PWA CSS
   Black / Neon Green / Glassmorphism Aesthetic
   ========================================================================= */

:root {
    --bg-dark: #000000;
    --bg-card: #0e0e14;
    --bg-card2: #14141e;
    --text-main: #ffffff;
    --text-muted: #888899;
    --text-dim: #444455;

    --accent-primary: #00ff88;
    --accent-primary-dim: rgba(0, 255, 136, 0.12);
    --accent-primary-glow: rgba(0, 255, 136, 0.35);
    --accent-red: #ff2a5f;
    --accent-blue: #5b8def;
    --accent-blue-dim: rgba(91, 141, 239, 0.12);

    --border-color: rgba(255, 255, 255, 0.07);
    --border-active: rgba(0, 255, 136, 0.3);
    --card-radius: 24px;
    --card-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100svh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   UTILS
   ========================================= */
.mt-12 {
    margin-top: 12px;
}

.mt-16 {
    margin-top: 16px;
}

/* =========================================
   HEADER
   ========================================= */
.app-header {
    padding: 14px 16px 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.logo-green {
    color: var(--accent-primary);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Wallet Pill */
.wallet-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 7px 8px 7px 12px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.wallet-pill:hover {
    border-color: var(--border-active);
}

.wallet-icon {
    font-size: 0.95rem;
    color: var(--accent-primary);
}

.wallet-balance {
    color: var(--text-main);
}

.add-funds-btn {
    background: var(--accent-primary-dim);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--accent-primary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.2s;
}

.add-funds-btn:hover {
    background: var(--accent-primary);
    color: black;
}

/* User Avatar Pill (shown when logged in) */
.user-avatar-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px 12px 4px 4px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.tab.active {
    background: var(--text-main);
    color: var(--bg-dark);
    border-color: var(--text-main);
}

.tab:hover:not(.active) {
    border-color: var(--border-active);
    color: var(--text-main);
}

/* =========================================
   MAIN VIEWPORT + SCREENS
   ========================================= */
.viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    display: flex;
    flex-direction: column;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
}

.screen-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px 100px;
    scrollbar-width: none;
}

.screen-scroll::-webkit-scrollbar {
    display: none;
}

.screen-title-row {
    margin-bottom: 20px;
}

.screen-title-row h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.screen-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* =========================================
   SWIPE FEED (Screen 1)
   ========================================= */
#screen-feed {
    align-items: center;
    justify-content: flex-start;
    padding-top: 16px;
}

.deck-container {
    width: 92%;
    max-width: 380px;
    flex: 1;
    position: relative;
    perspective: 1000px;
    margin: 0 auto;
}

/* Skeleton Loader */
.skeleton-card {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.skeleton-shimmer {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    gap: 10px;
    padding: 20px;
    line-height: 1.6;
}

/* Swipe Cards */
.swipe-card {
    position: absolute;
    inset: 0;
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transform-origin: 50% 110%;
    will-change: transform;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    cursor: grab;
    user-select: none;
    animation: cardEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardEnter {
    from {
        transform: scale(0.92) translateY(20px);
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.swipe-card:active {
    cursor: grabbing;
}

.card-overlay {
    margin-top: auto;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
    padding: 50px 20px 20px;
}

.card-info h2 {
    font-size: 1.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.online-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(0, 255, 136, 0);
    }
}

.card-rate {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 6px;
}

.card-bio {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.card-tag {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* NOPE / LIKE Badges */
.card-badge {
    position: absolute;
    top: 36px;
    padding: 6px 14px;
    border: 4px solid;
    border-radius: 10px;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0;
    z-index: 10;
    letter-spacing: 2px;
}

.badge-nope {
    right: 30px;
    color: var(--accent-red);
    border-color: var(--accent-red);
    transform: rotate(12deg);
    text-shadow: 0 0 20px rgba(255, 42, 95, 0.5);
}

.badge-like {
    left: 30px;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: rotate(-12deg);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Swipe Controls */
.swipe-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px 0 20px;
    flex-shrink: 0;
}

.control-btn {
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--bg-card);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.control-btn:active {
    transform: scale(0.82) !important;
}

.no-btn {
    width: 58px;
    height: 58px;
    color: var(--accent-red);
    border: 1.5px solid rgba(255, 42, 95, 0.2);
}

.no-btn:hover {
    border-color: var(--accent-red);
    box-shadow: 0 8px 24px rgba(255, 42, 95, 0.25);
}

.yes-btn {
    width: 58px;
    height: 58px;
    color: var(--accent-blue);
    border: 1.5px solid rgba(91, 141, 239, 0.2);
}

.yes-btn:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 8px 24px rgba(91, 141, 239, 0.25);
}

.call-btn {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, var(--accent-primary), #00cc6a);
    color: var(--bg-dark);
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.4);
}

.call-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.6);
}

.control-btn .material-icons-round {
    font-size: 28px;
}

.call-btn .material-icons-round {
    font-size: 36px;
}

/* =========================================
   CREATOR DASHBOARD (Screen 2)
   ========================================= */
.dashboard-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.dash-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-active);
    box-shadow: 0 0 20px var(--accent-primary-dim);
}

.dash-hero-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.buzzer-code {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 6px;
}

.creator-badge {
    display: inline-block;
    background: var(--accent-primary-dim);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--accent-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 6px;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
}

.status-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-label-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-heading {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-state {
    font-size: 1.1rem;
    font-weight: 800;
}

.status-online {
    color: var(--accent-primary);
}

.status-offline {
    color: var(--text-muted);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #222;
    border-radius: 34px;
    transition: .3s;
    border: 1px solid #333;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #666;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-primary-dim);
    border-color: var(--accent-primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
    background-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Rate Editor */
.field-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.rate-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    gap: 8px;
    transition: border-color 0.2s;
}

.rate-input-wrapper:focus-within {
    border-color: var(--border-active);
}

.rate-symbol {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

.rate-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    outline: none;
    font-family: 'Outfit', sans-serif;
    width: 100%;
}

.rate-unit {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.primary-btn {
    width: 100%;
    background: var(--text-main);
    color: var(--bg-dark);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
}

.primary-btn:hover {
    background: var(--accent-primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.stat-card small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.stat-icon.green+small+h3 {
    color: var(--accent-primary);
}

.stat-icon.blue+small+h3 {
    color: var(--accent-blue);
}

/* Share Link */
.card-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.share-link-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 10px 10px 16px;
    gap: 10px;
}

.share-link-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: var(--bg-card2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* =========================================
   FAVORITES (Screen 3)
   ========================================= */


.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    min-height: 200px;
}

.fav-card {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    gap: 12px;
    transition: border-color 0.2s;
    animation: cardEnterList 0.3s ease-out;
}

@keyframes cardEnterList {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fav-card:hover {
    border-color: var(--border-active);
}

.fav-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fav-info {
    flex: 1;
    min-width: 0;
}

.fav-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.fav-rate {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.fav-bio {
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-call-btn {
    background: var(--accent-primary-dim);
    border: 1.5px solid rgba(0, 255, 136, 0.25);
    color: var(--accent-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.fav-call-btn:hover,
.fav-call-btn:active {
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
}

/* =========================================
   PROFILE (Screen 4)
   ========================================= */
.profile-auth-prompt {
    text-align: center;
    padding: 48px 24px;
}

.profile-auth-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.profile-auth-prompt h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.profile-auth-prompt p {
    color: var(--text-muted);
    max-width: 300px;
    margin: 0 auto 28px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.profile-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    color: #222;
    border: none;
    padding: 15px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    transition: all 0.2s;
}

.profile-google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.profile-auth-note {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.profile-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
}

.profile-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-active);
}

.profile-user-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.profile-user-email {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 18px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
    text-align: left;
}

.settings-item:hover {
    border-color: var(--border-active);
}

.settings-item .material-icons-round {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.settings-label {
    flex: 1;
}

.settings-chevron {
    color: var(--text-dim) !important;
}

.settings-item--danger {
    color: var(--accent-red);
}

.settings-item--danger .material-icons-round {
    color: var(--accent-red) !important;
}

/* =========================================
   BOTTOM NAVIGATION
   ========================================= */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    background: rgba(10, 10, 16, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 12px 10px max(20px, env(safe-area-inset-bottom));
    z-index: 100;
    flex-shrink: 0;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    padding: 4px 8px;
    font-family: 'Outfit', sans-serif;
    min-width: 56px;
}

.nav-item .material-icons-round {
    font-size: 26px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item span:last-of-type {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.nav-item.active {
    color: var(--text-main);
}

.nav-item.active .material-icons-round {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.nav-badge {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--accent-red);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   PRE-CALL MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 0 0 max(20px, env(safe-area-inset-bottom));
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px 28px 20px 20px;
    width: 100%;
    max-width: 480px;
    padding: 32px 24px 24px;
    text-align: center;
    transform: translateY(40px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-avatar-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    overflow: hidden;
    margin: 0 auto 16px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.modal-avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.modal-rate {
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.modal-warning {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions button {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-confirm {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.btn-confirm:hover {
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.4);
}

/* Add Funds Modal Extras */
.fund-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 8px 0;
}

.fund-btn {
    background: var(--bg-card2);
    border: 1.5px solid var(--border-color);
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.fund-btn:hover,
.fund-btn.selected {
    background: var(--accent-primary-dim);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* =========================================
   MODALS (Registration)
   ========================================= */
.modal--wide {
    width: 95% !important;
    max-width: 480px !important;
}

.form-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    margin-bottom: 15px;
    font-family: inherit;
}

.modal-input:focus {
    border-color: var(--accent-primary);
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2px 2px 2px 20px;
    gap: 0;
}

.search-hash {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-right: 5px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 12px 0;
    outline: none;
    letter-spacing: 2px;
}

.search-box button {
    background: var(--accent-primary);
    color: black;
    border: none;
    border-radius: 12px;
    padding: 0 20px;
    font-weight: 800;
    font-size: 0.9rem;
    height: 48px;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-box button:active {
    transform: scale(0.95);
}

#regCodeResult {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
    min-height: 20px;

    /* =========================================
   PROFILE SETTINGS LIST
   ========================================= */
    .settings-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 24px;
    }

    .settings-item {
        display: flex;
        align-items: center;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        padding: 16px;
        border-radius: 14px;
        color: var(--text-main);
        cursor: pointer;
        transition: all 0.2s;
        font-family: 'Outfit', sans-serif;
        font-size: 1rem;
        font-weight: 600;
    }

    .settings-item:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .settings-item .material-icons-round:first-child {
        margin-right: 12px;
        color: var(--text-muted);
    }

    .settings-label {
        flex: 1;
        text-align: left;
    }

    .settings-chevron {
        color: var(--text-muted);
    }

    .settings-item--danger {
        color: var(--accent-red);
    }

    .settings-item--danger .material-icons-round:first-child {
        color: var(--accent-red);
    }

    .profile-user-card {
        display: flex;
        align-items: center;
        gap: 16px;
        background: var(--bg-card);
        padding: 20px;
        border-radius: 16px;
        border: 1px solid var(--border-color);
        margin-bottom: 24px;
    }

    .profile-user-avatar {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--border-color);
    }

    .profile-user-info h3 {
        font-size: 1.3rem;
        font-weight: 800;
        margin-bottom: 4px;
    }

    .profile-user-email {
        color: var(--text-muted);
        font-size: 0.9rem;
    }
}

/* =========================================
   DASHBOARD SCHEDULE GRID
   ========================================= */
.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.day-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.day-row span {
    width: 40px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.day-row input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
}

.day-row input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* =========================================
   CARD STATUS & SCHEDULE
   ========================================= */
.online-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
}

.online-dot.offline {
    background: #555;
    box-shadow: none;
}

.inline-dot {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}

.card-schedule {
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin: 4px 0 8px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.notify-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.notify-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
}

.notify-btn:disabled {
    opacity: 0.8;
    cursor: default;
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border-color: #00ff88;
}