:root {
    --primary: #7170ff;
    --primary-hover: #828fff;
    --primary-bg: #5e6ad2;
    
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-bg-hover: rgba(0, 0, 0, 0.35);
    --glass-bg-active: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-blur: 24px;
    --glass-saturate: 180%;
    
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                    0 0 0 1px rgba(255, 255, 255, 0.05),
                    inset 0 1px 1px rgba(255, 255, 255, 0.1),
                    inset 0 -1px 1px rgba(0, 0, 0, 0.05);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12),
                          0 0 0 1px rgba(255, 255, 255, 0.08),
                          inset 0 1px 1px rgba(255, 255, 255, 0.15),
                          inset 0 -1px 1px rgba(0, 0, 0, 0.08);
    --glass-shadow-active: 0 16px 48px rgba(0, 0, 0, 0.16),
                           0 0 0 1px rgba(255, 255, 255, 0.1),
                           inset 0 1px 1px rgba(255, 255, 255, 0.2),
                           inset 0 -1px 1px rgba(0, 0, 0, 0.1);
    
    --glass-border-gradient: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    
    --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    --glass-outer-glow: 0 0 20px rgba(113, 112, 255, 0.1);
    
    --bg-primary: #08090a;
    --bg-secondary: #0f1011;
    --bg-tertiary: #191a1b;
    --bg-elevated: #28282c;
    
    --text-primary: #f7f8f8;
    --text-secondary: #d0d6e0;
    --text-tertiary: #8a8f98;
    --text-muted: #62666d;
    
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-standard: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Berkeley Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    
    --glow-color: rgba(113, 112, 255, 0.4);
    --glow-spread: 0 0 20px var(--glow-color), 0 0 40px rgba(113, 112, 255, 0.2);
    
    --ripple-color: rgba(255, 255, 255, 0.3);
    --ripple-duration: 0.6s;
}

.light {
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-bg-hover: rgba(255, 255, 255, 0.35);
    --glass-bg-active: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-border-hover: rgba(255, 255, 255, 0.6);
    
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                    0 0 0 1px rgba(255, 255, 255, 0.5),
                    inset 0 1px 1px rgba(255, 255, 255, 0.8),
                    inset 0 -1px 1px rgba(0, 0, 0, 0.05);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12),
                          0 0 0 1px rgba(255, 255, 255, 0.6),
                          inset 0 1px 1px rgba(255, 255, 255, 0.9),
                          inset 0 -1px 1px rgba(0, 0, 0, 0.08);
    --glass-shadow-active: 0 16px 48px rgba(0, 0, 0, 0.16),
                           0 0 0 1px rgba(255, 255, 255, 0.7),
                           inset 0 1px 1px rgba(255, 255, 255, 1),
                           inset 0 -1px 1px rgba(0, 0, 0, 0.1);
    
    --glass-border-gradient: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.5) 100%
    );
    
    --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --glass-outer-glow: 0 0 15px rgba(113, 112, 255, 0.08);
    
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --bg-elevated: #ffffff;
    
    --text-primary: #171717;
    --text-secondary: #4d4d4d;
    --text-tertiary: #666666;
    --text-muted: #808080;
    
    --border-subtle: rgba(0, 0, 0, 0.05);
    --border-standard: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.12);
    
    --glow-color: rgba(113, 112, 255, 0.3);
    --glow-spread: 0 0 15px var(--glow-color), 0 0 30px rgba(113, 112, 255, 0.15);
    
    --ripple-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    background-image: url('https://cdn.blym.top/img/img-1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -moz-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--glass-border-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.glass:hover::before {
    opacity: 1;
}

.glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover), var(--glass-outer-glow);
    transform: translateY(-2px);
}

.glass.active {
    background: var(--glass-bg-active);
    box-shadow: var(--glass-shadow-active);
    transform: translateY(0);
}

nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    -moz-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    max-width: 900px;
    width: calc(100% - 32px);
    transition: all var(--transition-normal);
    animation: navSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.light nav {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.02),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

nav:hover::before {
    opacity: 0.8;
}

nav:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 20px rgba(113, 112, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateX(-50%) translateY(-2px);
}

.light nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(113, 112, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

nav.scrolled {
    top: 12px;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.light nav.scrolled {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
        backdrop-filter: blur(0px) saturate(100%);
        -webkit-backdrop-filter: blur(0px) saturate(100%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
        -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    }
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    max-width: 100%;
    padding: 0 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.nav-brand:hover {
    transform: scale(1.02);
}

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

.nav-brand span {
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-brand img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-brand:hover img {
    transform: scale(1.15);
    box-shadow: var(--glow-spread);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 140px;
    max-width: 200px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 8px;
    gap: 4px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -moz-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    z-index: 1001;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

.nav-links.mobile-open::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--glass-border-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        backdrop-filter: blur(0px) saturate(100%);
        -webkit-backdrop-filter: blur(0px) saturate(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
        -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    }
}

.nav-links.mobile-open .nav-link {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: var(--radius-md);
    text-align: center;
    width: 100%;
    justify-content: center;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.nav-links.mobile-open .nav-link:hover {
    background-color: var(--bg-tertiary);
    transform: translateX(4px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}



.nav-link {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 12px 16px;
        min-height: 48px;
    }
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    transform: translateX(-50%);
    transition: width var(--transition-fast);
    border-radius: 1px;
}

.nav-link:hover::before {
    width: 60%;
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(113, 112, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--transition-normal), height var(--transition-normal);
}

.nav-link:hover::after {
    width: 100px;
    height: 100px;
}

.nav-link:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        padding: 14px 24px;
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--ripple-color) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--ripple-duration) ease-out, height var(--ripple-duration) ease-out;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-bg), var(--primary));
    background-size: 200% 200%;
    color: white;
    animation: gradientShift 3s ease infinite;
    box-shadow: 
        0 4px 16px rgba(113, 112, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(113, 112, 255, 0.35),
        0 0 40px rgba(113, 112, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(113, 112, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-secondary);
    position: relative;
}

.btn-ghost::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width var(--transition-fast);
}

.btn-ghost:hover::after {
    width: 80%;
}

.btn-ghost:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-2px);
}

.icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
    .icon-btn {
        min-width: 48px;
        min-height: 48px;
    }
}

.icon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.icon-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(113, 112, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--transition-normal), height var(--transition-normal);
}

.icon-btn:hover::after {
    width: 60px;
    height: 60px;
}

.icon-btn:hover {
    background: var(--glass-bg-hover);
    color: var(--primary);
    border-color: rgba(113, 112, 255, 0.3);
    transform: rotate(6deg) scale(1.08);
    box-shadow: 
        0 4px 16px rgba(113, 112, 255, 0.2),
        0 0 20px rgba(113, 112, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.icon-btn:active {
    background: var(--glass-bg-active);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(0deg) scale(0.95);
    box-shadow: 
        0 2px 8px rgba(113, 112, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.icon-btn:focus {
    outline: none;
}

.icon-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.mobile-menu-btn {
    display: none;
}

.mobile-menu-btn .icon {
    transition: transform var(--transition-fast);
}

.mobile-menu-btn:hover .icon {
    transform: rotate(90deg);
}

.mobile-menu-btn.active {
    background: var(--glass-bg-active);
    border-color: rgba(113, 112, 255, 0.4);
    color: var(--primary);
}

.mobile-menu-btn.active .icon {
    transform: rotate(90deg);
}

@media (hover: none) and (pointer: coarse) {
    .icon-btn:hover {
        transform: none;
        background: var(--glass-bg);
        color: var(--text-secondary);
        border-color: var(--glass-border);
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .icon-btn:hover::after {
        width: 0;
        height: 0;
    }
    
    .icon-btn:active {
        background: var(--glass-bg-active);
        color: var(--primary);
        border-color: rgba(113, 112, 255, 0.4);
        transform: scale(0.95);
        box-shadow: 
            0 2px 8px rgba(113, 112, 255, 0.2),
            0 0 15px rgba(113, 112, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    
    .mobile-menu-btn:hover .icon {
        transform: none;
    }
    
    .mobile-menu-btn:active .icon {
        transform: scale(0.9);
    }
    
    .mobile-menu-btn.active {
        transform: none;
    }
    
    .mobile-menu-btn.active .icon {
        transform: rotate(90deg);
    }
}

main {
    padding-top: 80px;
}

section {
    padding: 80px 0;
}

.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
    padding-left: 0;
    background: linear-gradient(
        135deg,
        rgba(113, 112, 255, 0.03) 0%,
        transparent 50%,
        rgba(113, 112, 255, 0.02) 100%
    );
}

.light .hero {
    background: linear-gradient(
        135deg,
        rgba(113, 112, 255, 0.02) 0%,
        transparent 50%,
        rgba(113, 112, 255, 0.01) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
    margin: 0;
    box-sizing: border-box;
    transform: translateX(-8%);
}

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1.584px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -moz-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--glass-border-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover), var(--glass-outer-glow);
    transform: translateY(-4px);
}

.card:active {
    background: var(--glass-bg-active);
    box-shadow: var(--glass-shadow-active);
    transform: translateY(-2px);
}

@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        background: var(--glass-bg);
        border-color: var(--glass-border);
        box-shadow: var(--glass-shadow);
    }
    
    .card:active {
        transform: scale(0.98);
        background: var(--glass-bg-active);
    }
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -1.056px;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    background-color: var(--bg-tertiary);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.tag {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
    .tag {
        padding: 8px 16px;
        min-height: 36px;
    }
}

.tag:hover {
    transform: translateY(-2px);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(113, 112, 255, 0.3);
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.project-card:hover .project-title {
    color: var(--primary);
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-shrink: 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

@media (hover: none) and (pointer: coarse) {
    .project-link {
        padding: 12px 16px;
        min-height: 48px;
    }
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-link:hover::after {
    width: 100%;
}

.project-link:hover {
    color: var(--primary-hover);
}

.friend-link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.friend-link-card:hover .friend-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--glow-spread);
}

.friend-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

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

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

.friend-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.friend-link-card:hover .friend-name {
    color: var(--primary);
}

.friend-description {
    font-size: 14px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.friend-url {
    font-size: 12px;
    color: var(--primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

.empty-state i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
    grid-column: 1 / -1;
}

.loading-state i {
    font-size: 24px;
    margin-bottom: 12px;
}

.apply-card {
    background: linear-gradient(135deg, var(--glass-bg), var(--glass-bg-hover));
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.apply-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(113, 112, 255, 0.03), transparent);
    animation: shimmer 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

.apply-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.apply-text p {
    font-size: 14px;
    color: var(--text-secondary);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
    .footer-link {
        padding: 8px 12px;
        min-height: 48px;
    }
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link:hover::before {
    width: 100%;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    -moz-backdrop-filter: blur(25px) saturate(180%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.light .modal-overlay {
    background: rgba(255, 255, 255, 0.15);
}

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

.modal {
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(30px) saturate(var(--glass-saturate));
    -moz-backdrop-filter: blur(30px) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-normal);
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.05);
    position: relative;
}

.light .modal {
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.03);
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: var(--glass-border-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.modal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

.light .modal::after {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
}

.modal::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.modal::-webkit-scrollbar-track {
    display: none !important;
}

.modal::-webkit-scrollbar-thumb {
    display: none !important;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
        backdrop-filter: blur(0px) saturate(100%);
        -webkit-backdrop-filter: blur(0px) saturate(100%);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        backdrop-filter: blur(30px) saturate(var(--glass-saturate));
        -webkit-backdrop-filter: blur(30px) saturate(var(--glass-saturate));
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 28px 0;
    position: relative;
    z-index: 2;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.modal-title i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(113, 112, 255, 0.4));
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.modal-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.modal-close:hover::before {
    width: 50px;
    height: 50px;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.05);
    background: var(--glass-bg-hover);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    box-shadow: 
        0 4px 16px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-close:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

.modal-body {
    padding: 24px 28px;
    position: relative;
    z-index: 2;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.01em;
}

.form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.form-input:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--glass-bg-hover);
    box-shadow: 
        0 0 0 3px rgba(113, 112, 255, 0.15),
        0 4px 16px rgba(113, 112, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

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

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

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.captcha-section {
    margin-top: 24px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.captcha-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.captcha-title i {
    color: var(--primary);
    filter: drop-shadow(0 0 6px rgba(113, 112, 255, 0.4));
}

.captcha-title .required {
    color: #ef4444;
    margin-left: 2px;
}

.captcha-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 1px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all var(--transition-fast);
}

.light .captcha-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.captcha-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.light .captcha-item:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

.captcha-item.hidden {
    display: none;
}

.captcha-item {
    animation: fadeSlideIn 0.3s ease forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.captcha-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.captcha-indicator {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.captcha-indicator.pending {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.captcha-indicator.verifying {
    color: var(--primary);
    background: rgba(113, 112, 255, 0.1);
}

.captcha-indicator.success {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.captcha-indicator.failed {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.longpress-btn {
    width: 100%;
    padding: 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.longpress-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.longpress-btn:hover {
    border-color: var(--primary);
    background: var(--glass-bg-hover);
    box-shadow: 
        0 4px 16px rgba(113, 112, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.longpress-btn.pressing {
    border-color: var(--primary);
    background: rgba(113, 112, 255, 0.08);
    box-shadow: 
        0 0 20px rgba(113, 112, 255, 0.2),
        0 0 40px rgba(113, 112, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.longpress-btn.verified {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    box-shadow: 
        0 0 20px rgba(16, 185, 129, 0.2),
        0 0 40px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.longpress-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.longpress-btn .btn-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.25));
    transition: width 0.1s linear;
}

.longpress-btn.pressing .btn-progress {
    transition: width 3s linear;
    width: 100%;
}

.captcha-progress {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.light .captcha-progress {
    background: rgba(0, 0, 0, 0.02);
}

.modal-footer {
    padding: 0 28px 28px;
    position: relative;
    z-index: 2;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-bg), var(--primary));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(113, 112, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn:hover:not(:disabled)::after {
    left: 100%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(113, 112, 255, 0.35),
        0 0 40px rgba(113, 112, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(113, 112, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(113, 112, 255, 0.15);
}

.submit-btn:focus-visible:not(:disabled) {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.toast {
    position: fixed;
    top: 84px;
    right: 24px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    z-index: 3000;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.toast.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.theme-transition {
    transition: background-color var(--transition-normal), 
                color var(--transition-normal), 
                border-color var(--transition-normal),
                box-shadow var(--transition-normal);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
    }
    50% {
        box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary);
    }
}

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

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes flipIn {
    from {
        transform: perspective(400px) rotateY(90deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes morphBackground {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes parallaxFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(113, 112, 255, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(113, 112, 255, 0.04) 0%, transparent 50%);
    animation: parallaxFloat 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(113, 112, 255, 0.08), transparent);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

.hero-title {
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-subtitle {
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-actions {
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-actions .btn {
    position: relative;
    overflow: hidden;
    padding: 12px 24px;
    font-size: 14px;
}

.hero-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions .btn:hover::before {
    width: 300px;
    height: 300px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.from-left {
    transform: translateX(-50px);
}

.fade-in.from-left.visible {
    transform: translateX(0);
}

.fade-in.from-right {
    transform: translateX(50px);
}

.fade-in.from-right.visible {
    transform: translateX(0);
}

.fade-in.scale-in {
    transform: scale(0.9);
}

.fade-in.scale-in.visible {
    transform: scale(1);
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-ghost:active {
    background: var(--glass-bg-active);
    color: var(--primary);
    transform: translateY(0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(113, 112, 255, 0.3), var(--glow-spread);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(113, 112, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax-bg {
    will-change: transform;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #a855f7, var(--primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.glow-effect {
    animation: glow 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pulse-effect {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.float-effect {
    animation: float 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: ripple 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        top: 12px;
        width: calc(100% - 24px);
    }
    
    nav .container {
        height: 44px;
        padding: 0 12px;
    }
    
    main {
        padding-top: 68px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        min-height: calc(100vh - 68px);
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 40px;
        text-align: left;
    }
    
    .hero-subtitle {
        font-size: 18px;
        text-align: left;
    }
    
    .hero-actions {
        justify-content: flex-start;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .apply-card {
        flex-direction: column;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .nav-brand span {
        display: none;
    }
    
    .nav-actions .btn-ghost span {
        display: none;
    }
    
    nav {
        top: 8px;
        width: calc(100% - 16px);
    }
    
    nav .container {
        height: 40px;
        padding: 0 10px;
    }
    
    main {
        padding-top: 56px;
    }
    
    .hero {
        min-height: calc(100vh - 56px);
    }
    
    .hero-content {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 32px;
        text-align: left;
    }
    
    .hero-subtitle {
        font-size: 16px;
        text-align: left;
    }
    
    .hero-actions {
        justify-content: flex-start;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .modal {
        max-height: 95vh;
        margin: 10px;
        border-radius: var(--radius-lg);
    }
    
    .modal-header {
        padding: 20px 20px 0;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 0 20px 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .captcha-section {
        padding: 16px;
        margin-top: 16px;
    }
    
    .captcha-item {
        padding: 12px;
    }
    
    .toast {
        right: 16px;
        left: 16px;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .modal {
        margin: 8px;
        max-height: 96vh;
    }
    
    .modal-header {
        padding: 16px 16px 0;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 0 16px 16px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .form-input {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .captcha-section {
        padding: 12px;
        margin-top: 12px;
    }
    
    .captcha-item {
        padding: 10px;
    }
    nav {
        top: 8px;
        width: calc(100% - 16px);
    }
    
    nav .container {
        height: 38px;
        padding: 0 8px;
    }
    
    .nav-brand img {
        width: 24px;
        height: 24px;
    }
    
    .nav-brand {
        font-size: 14px;
        gap: 8px;
    }
    
    main {
        padding-top: 54px;
    }
    
    .hero {
        min-height: calc(100vh - 54px);
    }
    
    .hero-content {
        padding: 0 8px;
        transform: translateX(0);
    }
    
    .hero-title {
        font-size: 28px;
        text-align: left;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        justify-content: flex-start;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    
    .hero-content {
        padding: 0 20px;
        transform: translateX(-6%);
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 48px;
    }
    
    .hero-content {
        padding: 0 32px;
        transform: translateX(-10%);
    }
}

@media (min-width: 1400px) {
    .hero-content {
        padding: 0 40px;
        transform: translateX(-12%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

.icon.fa-spin {
    animation: iconSpin 1s linear infinite;
}

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

[data-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media print {
    nav,
    .modal-overlay,
    .toast {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
