/* ============================================
   ЭВОЛЮЦИЯ — Premium Business Club Mini App
   Design System: Dark Blue + Gold
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0B1A30;
    --bg-secondary: #0F2240;
    --bg-card: rgba(15, 34, 64, 0.6);
    --bg-card-hover: rgba(20, 45, 85, 0.8);
    --gold: #D4AF37;
    --gold-light: #F0D060;
    --gold-dark: #B8952E;
    --gold-gradient: linear-gradient(135deg, #F0D060 0%, #D4AF37 50%, #B8952E 100%);
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    --gold-glow-strong: 0 0 40px rgba(212, 175, 55, 0.5);
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #6B7A8D;
    --border-color: rgba(212, 175, 55, 0.15);
    --border-glow: rgba(212, 175, 55, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);
    --nav-height: 72px;
    --header-height: 56px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100%;
    width: 100%;
    position: fixed; /* Stops elastic scrolling & bouncing which also causes lag */
    top: 0;
    left: 0;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

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

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

/* --- Particle Canvas --- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */

.login-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    overflow-y: auto;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.login-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.03);
}

#loginCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.login-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 24px 20px 40px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
    animation: goldPulse 3s infinite;
}

.login-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.login-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

.login-card {
    padding: 28px 24px;
}

.login-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.login-error {
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 13px;
    color: #ff6b6b;
    margin-bottom: 16px;
    display: none;
    animation: slideUp 0.2s ease;
}

.login-error.visible {
    display: block;
}

.login-field {
    margin-bottom: 14px;
}

.login-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.login-field input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.login-field input:focus {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.04);
}

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

.pwd-wrap {
    position: relative;
}

.pwd-wrap input {
    padding-right: 48px;
}

.pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.pwd-toggle:hover {
    opacity: 1;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #0B1A30;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.login-btn:hover {
    opacity: 0.9;
}

.login-btn:active {
    transform: scale(0.98);
}

.login-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.tg-btn {
    width: 100%;
    padding: 13px;
    background: rgba(39, 170, 225, 0.1);
    border: 1px solid rgba(39, 170, 225, 0.3);
    border-radius: var(--radius-md);
    color: #7ecff5;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, border-color 0.2s;
}

.tg-btn:hover {
    background: rgba(39, 170, 225, 0.18);
    border-color: rgba(39, 170, 225, 0.5);
}

.login-demo {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.login-demo p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-align: center;
}

.demo-accounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.demo-accounts span {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 11px;
    color: var(--gold);
    cursor: pointer;
    transition: background 0.15s;
    font-family: monospace;
}

.demo-accounts span:hover {
    background: rgba(212, 175, 55, 0.15);
}

/* Logout button on profile screen */
.logout-row {
    margin-top: 20px;
}

.logout-row button {
    width: 100%;
    padding: 13px;
    background: rgba(255, 68, 68, 0.07);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: var(--radius-md);
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.logout-row button:hover {
    background: rgba(255, 68, 68, 0.15);
}


/* --- App Container --- */
.app {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    height: 100%;
    margin: 0 auto;
    display: none;
    /* скрыт до авторизации */
    flex-direction: column;
    overflow: hidden;
}

.app.app--visible {
    display: flex;
}

/* Кнопка выхода */
.logout-row {
    padding: 24px 20px 40px;
    display: flex;
    justify-content: center;
}

.logout-row button {
    background: rgba(255, 80, 80, 0.12);
    color: #ff6b6b;
    border: 1px solid rgba(255, 80, 80, 0.3);
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 320px;
}

.logout-row button:hover {
    background: rgba(255, 80, 80, 0.22);
    border-color: rgba(255, 80, 80, 0.5);
    transform: translateY(-1px);
}

/* --- Screen System --- */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-bottom: var(--nav-height);
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
    transition: opacity var(--transition-medium), transform var(--transition-medium);
    overflow: hidden;
    will-change: transform, opacity;
}

.screen.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.screen.slide-left {
    transform: translateX(-30px);
}


.screen-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 32px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.screen-content::-webkit-scrollbar {
    display: none;
}

/* --- Glass Card --- */
.glass-card {
    background: var(--bg-card);
    /* CSS blur filters removed for critical mobile rendering performance */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-gold);
}

/* --- Animate In --- */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

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

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

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

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

@keyframes goldPulse {
    0%,
    100% {
        opacity: 0.85;
        transform: scale(0.98);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ============================================
   HOME SCREEN
   ============================================ */

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 20px;
}

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

.logo-icon svg {
    width: 40px;
    height: 40px;
    animation: float 3s ease-in-out infinite;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    position: relative;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.icon-btn:hover {
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #FF4444;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
    animation: pulse 2s infinite;
}

/* Welcome Card */
.welcome-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(15, 34, 64, 0.6));
}

.avatar-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gold-gradient);
    animation: goldPulse 3s infinite;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--gold);
}

.welcome-greeting {
    font-size: 13px;
    color: var(--text-secondary);
}

.welcome-text h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 2px 0 6px;
}

.welcome-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4ADE80;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 16px 12px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Section Titles */
.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.action-card {
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.action-card:active {
    transform: scale(0.95);
}

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all var(--transition-fast);
}

.action-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.action-card:hover .action-icon {
    box-shadow: var(--gold-glow);
    border-color: var(--gold);
}

/* Event Cards */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    cursor: pointer;
}

.event-card:active {
    transform: scale(0.98);
}

.event-date-badge {
    min-width: 52px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-day {
    font-size: 22px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.event-month {
    font-size: 10px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
}

.event-info {
    flex: 1;
    min-width: 0;
}

.event-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.event-attendees {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attendee-stack {
    display: flex;
}

.attendee-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: hsl(var(--hue, 200), 50%, 30%);
    border: 2px solid var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    margin-left: -6px;
}

.attendee-mini:first-child {
    margin-left: 0;
}

.attendee-mini.more {
    background: var(--bg-secondary);
    color: var(--gold);
    font-size: 9px;
}

.event-attendees span {
    font-size: 11px;
    color: var(--text-muted);
}

.event-arrow {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 300;
}

/* New Members Scroll */
.new-members-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.new-members-scroll::-webkit-scrollbar {
    display: none;
}

.member-mini-card {
    min-width: 110px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-align: center;
}

.member-mini-card:active {
    transform: scale(0.95);
}

.member-mini-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--hue, 200), 50%, 25%), hsl(var(--hue, 200), 60%, 15%));
    border: 2px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-light);
}

.member-mini-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.member-mini-role {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ============================================
   SCREEN HEADERS
   ============================================ */

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

.screen-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.screen-header.with-back {
    justify-content: space-between;
}

.header-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.back-btn svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.back-btn:hover {
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
}

/* ============================================
   MEMBERS SCREEN
   ============================================ */

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.search-box svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
}

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

/* Tags Filter */
.tags-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
}

.tags-filter::-webkit-scrollbar {
    display: none;
}

.tag-pill {
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    scroll-snap-align: start;
    flex-shrink: 0;
}

.tag-pill.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.tag-pill:hover {
    border-color: var(--border-glow);
}

/* Members List */
.members-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    cursor: pointer;
    animation: fadeIn 0.3s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.05s);
    opacity: 0;
}

.member-card:active {
    transform: scale(0.98);
}

.member-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--hue, 200), 50%, 25%), hsl(var(--hue, 200), 60%, 15%));
    border: 2px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-light);
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.member-info .member-role {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.member-tags-mini {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.member-tags-mini .tag-mini {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-xl);
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.member-card-arrow {
    font-size: 18px;
    color: var(--text-muted);
}

/* ============================================
   MEMBER DETAIL
   ============================================ */

.member-detail {
    text-align: center;
    padding-top: 8px;
}

.detail-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 16px;
    padding: 3px;
    background: var(--gold-gradient);
    animation: goldPulse 3s infinite;
}

.detail-avatar .avatar-placeholder {
    font-size: 28px;
}

.member-detail h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.member-detail .detail-role {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.member-detail .detail-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.detail-tags {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.detail-tags .tag {
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.detail-sections {
    text-align: left;
}

.detail-section {
    padding: 16px;
    margin-bottom: 10px;
}

.detail-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.detail-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.detail-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    background: var(--gold-gradient);
    color: var(--bg-primary);
    margin-top: 16px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-gold);
}

.detail-action-btn:hover {
    box-shadow: var(--gold-glow-strong);
    transform: translateY(-1px);
}

.detail-action-btn:active {
    transform: scale(0.98);
}

/* ============================================
   EVENTS SCREEN
   ============================================ */

.month-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.month-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gold);
    transition: all var(--transition-fast);
}

.month-nav:hover {
    background: rgba(212, 175, 55, 0.1);
}

.current-month {
    font-size: 16px;
    font-weight: 600;
}

/* Calendar Mini */
.calendar-mini {
    padding: 12px;
    margin-bottom: 20px;
}

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

.calendar-header span {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 4px;
}

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

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    color: var(--text-secondary);
}

.cal-day:hover {
    background: rgba(212, 175, 55, 0.1);
}

.cal-day.today {
    color: var(--gold);
    font-weight: 700;
}

.cal-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

.cal-day.selected {
    background: var(--gold-gradient);
    color: var(--bg-primary);
    font-weight: 700;
}

.cal-day.selected::after {
    background: var(--bg-primary);
}

.cal-day.other-month {
    color: var(--text-muted);
    opacity: 0.3;
}

/* Events Full List */
.events-full-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-full-card {
    padding: 16px;
    cursor: pointer;
}

.event-full-card:active {
    transform: scale(0.98);
}

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

.event-type-badge {
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-type-badge.online {
    background: rgba(74, 222, 128, 0.15);
    color: #4ADE80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.event-type-badge.offline {
    background: rgba(96, 165, 250, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.event-full-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.event-full-card .event-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.event-full-card .event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Event Detail */
.event-detail {
    padding-top: 8px;
}

.event-detail-hero {
    padding: 24px 16px;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(15, 34, 64, 0.6));
}

.event-detail-hero h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.event-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.event-detail-section {
    padding: 16px;
    margin-bottom: 10px;
}

.event-detail-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.event-detail-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.event-attendees-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.event-attendee-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-xl);
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--border-color);
    font-size: 12px;
}

.event-attendee-chip .chip-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--hue, 200), 50%, 25%), hsl(var(--hue, 200), 60%, 15%));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--gold-light);
}

.register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    background: var(--gold-gradient);
    color: var(--bg-primary);
    margin-top: 16px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-gold);
}

.register-btn:hover {
    box-shadow: var(--gold-glow-strong);
    transform: translateY(-1px);
}

.register-btn:active {
    transform: scale(0.98);
}

.register-btn.registered {
    background: rgba(74, 222, 128, 0.15);
    color: #4ADE80;
    border: 1px solid rgba(74, 222, 128, 0.2);
    box-shadow: none;
}

/* ============================================
   KNOWLEDGE SCREEN
   ============================================ */

.knowledge-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
}

.knowledge-categories::-webkit-scrollbar {
    display: none;
}

.category-card {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    scroll-snap-align: start;
    flex-shrink: 0;
}

.category-card.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-color: var(--gold);
    color: var(--gold);
}

.cat-icon {
    font-size: 16px;
}

/* Knowledge List */
.knowledge-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.knowledge-card {
    padding: 16px;
    cursor: pointer;
    animation: fadeIn 0.3s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.05s);
    opacity: 0;
}

.knowledge-card:active {
    transform: scale(0.98);
}

.knowledge-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.knowledge-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.knowledge-icon.video {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.knowledge-icon.article {
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.knowledge-icon.template {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.knowledge-icon.checklist {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.knowledge-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.knowledge-card .knowledge-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.knowledge-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.knowledge-card-footer .downloads {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   KNOWLEDGE DETAIL
   ============================================ */

.knowledge-detail {
    padding-top: 8px;
}

.knowledge-detail-hero {
    padding: 24px 16px;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(15, 34, 64, 0.6));
}

.knowledge-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.knowledge-detail-icon.video {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.knowledge-detail-icon.article {
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.knowledge-detail-icon.template {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.knowledge-detail-icon.checklist {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.knowledge-detail-hero h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.knowledge-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.knowledge-topics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.08);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.topic-item:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.15);
}

.topic-num {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

/* ============================================
   PROFILE SCREEN
   ============================================ */

.profile-hero {
    text-align: center;
    padding: 28px 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(15, 34, 64, 0.6));
}

.profile-avatar-large {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.avatar-ring-large {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gold-gradient);
    animation: goldPulse 3s infinite;
}

.avatar-placeholder.large {
    font-size: 28px;
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

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

.profile-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.profile-company {
    font-size: 13px;
    color: var(--text-muted);
}

/* Profile Sections */
.profile-section {
    padding: 16px;
    margin-bottom: 10px;
}

#profileBlocksContainer .profile-section,
#otherProfileBlocksContainer .profile-section {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
}

.edit-link {
    font-size: 13px;
    color: var(--gold);
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.edit-link:hover {
    opacity: 0.7;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all var(--transition-fast);
}

.tag:hover {
    box-shadow: var(--shadow-gold);
}

.add-tag {
    background: transparent;
    border-style: dashed;
    color: var(--text-muted);
    cursor: pointer;
}

.add-tag:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.section-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--border-color);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.social-link:hover {
    border-color: var(--border-glow);
}

.social-icon {
    font-size: 18px;
}

/* Subscription */
.subscription-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(15, 34, 64, 0.6)) !important;
}

.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sub-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.sub-status.active {
    color: #4ADE80;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.sub-plan {
    font-size: 13px;
    color: var(--text-secondary);
}

.link-btn {
    font-size: 13px;
    color: var(--gold);
    text-align: left;
    margin-top: 4px;
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.link-btn:hover {
    opacity: 0.7;
}

/* Activity Stats */
.activity-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    text-align: center;
}

.activity-item {
    padding: 12px 0;
}

.activity-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 4px;
}

.activity-label {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Toggle */
.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-secondary);
}

.toggle {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.toggle.on {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

.toggle-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-muted);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all var(--transition-fast);
}

.toggle.on .toggle-dot {
    left: 22px;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Logout */
.logout-btn {
    width: 100%;
    padding: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #FF6B6B;
    margin-bottom: 24px;
    transition: all var(--transition-fast);
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.1) !important;
    border-color: rgba(255, 107, 107, 0.3);
}

/* ============================================
   BOTTOM NAV
   ============================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(11, 26, 48, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    transition: all var(--transition-fast);
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-item.active {
    color: var(--gold);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--gold-gradient);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nav-item:active {
    transform: scale(0.9);
}

/* ============================================
   NOTIFICATION PANEL
   ============================================ */

.notification-panel {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100%;
    z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.notification-panel.open {
    opacity: 1;
    pointer-events: auto;
}

.notification-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-height: 80%;
    background: var(--bg-secondary);
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    transform: translateY(-100%);
    transition: transform var(--transition-medium);
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-top: none;
}

.notification-panel.open .notification-panel-content {
    transform: translateY(0);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.notification-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.close-panel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

.close-panel-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.notification-list {
    padding: 8px 12px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition-fast);
    border-radius: var(--radius-md);
}

.notification-item:hover {
    background: rgba(212, 175, 55, 0.03);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: rgba(212, 175, 55, 0.05);
}

.notif-icon {
    font-size: 24px;
    flex-shrink: 0;
}

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

.notif-content strong {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 0;
}

/* ============================================
   UTILITIES
   ============================================ */

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 400px) {
    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }

    .stats-row {
        gap: 6px;
    }

    .stat-number {
        font-size: 24px;
    }
}

@media (min-width: 481px) {
    body {
        display: flex;
        justify-content: center;
        background: #050D18;
    }

    .app {
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        box-shadow: 0 0 60px rgba(212, 175, 55, 0.05);
    }
}

/* ============================================
   MODALS & FORMS
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(10px);
    transition: transform 0.2s;
    position: relative;
    box-shadow: var(--shadow-card);
}

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

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

.modal h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    outline: none;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast {
    position: fixed;
    bottom: calc(var(--nav-height) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(180deg, rgba(30, 35, 50, 0.9) 0%, rgba(15, 18, 25, 0.95) 100%);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
    font-family: inherit;
    font-weight: 600;
    text-align: center;
    width: 95%;
    max-width: 450px;
    word-break: break-word;
    white-space: normal;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.15) 0%, rgba(15, 18, 25, 0.95) 100%);
    border-color: rgba(74, 222, 128, 0.5);
    color: #4ADE80;
}

.toast.error {
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.15) 0%, rgba(15, 18, 25, 0.95) 100%);
    border-color: rgba(255, 107, 107, 0.5);
    color: #FF6B6B;
}

.toast.info {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, rgba(15, 18, 25, 0.95) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--gold);
}

/* ============================================
   RIPPLE EFFECT
   ============================================ */

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* WOW Profile Sections */
.profile-section.glass-card {
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
    background: linear-gradient(180deg, rgba(30, 35, 50, 0.4) 0%, rgba(15, 18, 25, 0.6) 100%) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    position: relative;
    overflow: hidden;
    padding: 24px !important;
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-section.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.08) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}

.profile-section.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    opacity: 0.5;
}

.section-header span {
    color: var(--gold) !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-link {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    transition: all 0.2s;
}

.edit-link:hover {
    background: var(--gold) !important;
    color: #000 !important;
    transform: scale(1.05);
}

.subscription-card .section-header {
    margin-bottom: 16px;
}

.subscription-card .sub-status.active {
    background: rgba(74, 222, 128, 0.1) !important;
    border: 1px solid rgba(74, 222, 128, 0.3) !important;
    color: #4ADE80 !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    display: inline-flex;
    align-items: center;
}
/* Stylish Tabs (Segmented Control) */
.tabs-container {
    margin-bottom: 20px;
}
.tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: rgba(30,35,50,0.6);
    border-radius: 16px;
    border: 1px solid rgba(212,175,55,0.1);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
    display: none;
}
.tab {
    flex: 1;
    text-align: center;
    padding: 10px 18px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.tab:hover {
    color: var(--gold);
    background: rgba(212,175,55,0.05);
}
.tab.active {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}
