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

html {
    scroll-behavior: smooth;
}

:root {
    --bg: #050505;
    --card: #0a0a0a;
    --border: #151515;
    --text: #fff;
    --muted: #484848;
    --accent: #10b981;
    --accent2: #34d399;
    --glow: rgba(16, 185, 129, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* Smooth scroll reveal */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-main { animation: fadeUp 0.8s ease-out; }
.float-card { animation: fadeUp 0.8s ease-out backwards; }
.card-terminal { animation-delay: 0.2s; }
.card-status { animation-delay: 0.4s; }
.card-stack { animation-delay: 0.3s; }
.card-exp { animation-delay: 0.5s; }

.page { min-height: 100vh; position: relative; }
.hidden { display: none !important; }
.accent { color: var(--accent); }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Selection color */
::selection {
    background: var(--accent);
    color: #000;
}

/* Focus states */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* =========================================
   SCATTERED DECORATIVE ELEMENTS
   ========================================= */

.decor {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

/* Floating animations for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

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

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

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(5px, -5px); }
    50% { transform: translate(0, -10px); }
    75% { transform: translate(-5px, -5px); }
}

.decor-circle-1 {
    width: 300px;
    height: 300px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    top: -80px;
    right: 10%;
    opacity: 0.08;
    animation: spin 60s linear infinite;
}

.decor-circle-2 {
    width: 150px;
    height: 150px;
    border: 1px solid var(--muted);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    opacity: 0.1;
}

.decor-square-1 {
    width: 60px;
    height: 60px;
    border: 1px solid var(--accent);
    top: 40%;
    right: 8%;
    opacity: 0.12;
    animation: float 8s ease-in-out infinite;
}

.decor-line-1 {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--muted), transparent);
    top: 25%;
    left: 0;
}

.decor-line-2 {
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    bottom: 30%;
    right: 0;
    opacity: 0.3;
}

.decor-dots {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 15%;
    opacity: 0.15;
    background-image: radial-gradient(var(--muted) 1px, transparent 1px);
    background-size: 10px 10px;
}

.decor-cross {
    width: 20px;
    height: 20px;
    top: 60%;
    left: 8%;
    opacity: 0.2;
}

.decor-cross::before,
.decor-cross::after {
    content: '';
    position: absolute;
    background: var(--accent);
}

.decor-cross::before {
    width: 100%;
    height: 1px;
    top: 50%;
}

.decor-cross::after {
    width: 1px;
    height: 100%;
    left: 50%;
}

.decor-ring {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border);
    border-radius: 50%;
    top: 70%;
    right: 25%;
    opacity: 0.15;
    animation: floatSlow 12s ease-in-out infinite;
}

.decor-text-1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    top: 18%;
    right: 12%;
    opacity: 0.2;
    transform: rotate(-5deg);
}

.decor-text-2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    bottom: 25%;
    left: 12%;
    opacity: 0.15;
    transform: rotate(3deg);
}

.decor-text-3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: var(--muted);
    top: 50%;
    left: 3%;
    opacity: 0.08;
}

.decor-arrow {
    width: 40px;
    height: 40px;
    top: 35%;
    right: 20%;
    opacity: 0.1;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.decor-circle-3 {
    width: 80px;
    height: 80px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    top: 65%;
    left: 20%;
    opacity: 0.06;
    animation: drift 15s ease-in-out infinite;
}

.decor-square-2 {
    width: 30px;
    height: 30px;
    border: 1px solid var(--muted);
    bottom: 40%;
    right: 5%;
    transform: rotate(15deg);
    opacity: 0.08;
}

.decor-line-3 {
    width: 100px;
    height: 1px;
    background: var(--accent);
    top: 80%;
    left: 10%;
    opacity: 0.15;
    transform: rotate(-20deg);
}

.decor-dots-2 {
    width: 60px;
    height: 60px;
    top: 45%;
    left: 2%;
    opacity: 0.1;
    background-image: radial-gradient(var(--accent) 1px, transparent 1px);
    background-size: 8px 8px;
}

.decor-cross-2 {
    width: 15px;
    height: 15px;
    bottom: 35%;
    right: 30%;
    opacity: 0.15;
}

.decor-cross-2::before,
.decor-cross-2::after {
    content: '';
    position: absolute;
    background: var(--muted);
}

.decor-cross-2::before {
    width: 100%;
    height: 1px;
    top: 50%;
}

.decor-cross-2::after {
    width: 1px;
    height: 100%;
    left: 50%;
}

.decor-ring-2 {
    width: 120px;
    height: 120px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    bottom: 5%;
    right: 10%;
    opacity: 0.05;
}

.decor-text-4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--muted);
    top: 75%;
    right: 8%;
    opacity: 0.12;
    transform: rotate(8deg);
}

.decor-text-5 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    top: 30%;
    left: 5%;
    opacity: 0.1;
    transform: rotate(-8deg);
}

.decor-text-6 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: var(--muted);
    bottom: 45%;
    left: 8%;
    opacity: 0.06;
}

.decor-gradient {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow), transparent 70%);
    top: 10%;
    right: -10%;
    opacity: 0.3;
    filter: blur(60px);
}

/* Cursor follow glow */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--glow), transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    filter: blur(40px);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.cursor-glow.active {
    opacity: 0.5;
}

/* =========================================
   NAVIGATION - Positioned freely
   ========================================= */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg), transparent);
}

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    text-shadow: 0 0 20px var(--glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-signin {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 20px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-signin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow), transparent);
    transition: left 0.5s ease;
}

.nav-signin:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--glow);
}

.nav-signin:hover::before {
    left: 100%;
}

/* =========================================
   HERO - Asymmetric layout
   ========================================= */

.hero {
    min-height: 100vh;
    padding: 140px 60px 80px;
    position: relative;
    z-index: 1;
}

.hero-main {
    max-width: 500px;
    margin-left: 8%;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
}

.hero-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.title-highlight {
    color: var(--accent);
    position: relative;
    text-shadow: 0 0 40px var(--glow);
}

.title-highlight::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 4px;
    height: 0.35em;
    background: var(--accent);
    opacity: 0.2;
    z-index: -1;
    filter: blur(1px);
}

.hero-sub {
    color: var(--muted);
    font-size: 1rem;
    max-width: 320px;
}

/* Floating Cards - Scattered positions */
.float-card {
    position: absolute;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.float-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px var(--glow);
    transform: translateY(-5px) rotate(0deg) !important;
}

.card-terminal {
    top: 20%;
    right: 12%;
    width: 260px;
    transform: rotate(2deg);
}

.terminal-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.terminal-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.terminal-bar span:nth-child(1) { background: #ff5f56; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #27c93f; }

.terminal-content {
    padding: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.terminal-content .dim { color: var(--muted); }

.terminal-content p:last-child::after {
    content: '█';
    animation: blink 1s step-end infinite;
    color: var(--accent);
    margin-left: 4px;
}

@keyframes blink {
    50% { opacity: 0; }
}

.card-status {
    top: 55%;
    right: 8%;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    transform: rotate(-1deg);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--glow);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--accent), 0 0 20px var(--glow); }
    50% { opacity: 0.6; transform: scale(0.9); box-shadow: 0 0 5px var(--accent); }
}

.card-stack {
    bottom: 25%;
    right: 22%;
    padding: 14px;
    display: flex;
    gap: 8px;
    transform: rotate(3deg);
}

.stack-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.stack-item:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px var(--glow);
}

.card-exp {
    bottom: 35%;
    left: 55%;
    padding: 20px 28px;
    text-align: center;
    transform: rotate(-4deg);
}

.exp-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.exp-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   PROJECTS - Scattered cards
   ========================================= */

.projects {
    padding: 100px 60px;
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 60px;
    margin-left: 10%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.section-label::after {
    content: '';
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.project-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: absolute;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px) rotate(0deg) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 40px var(--glow);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.project-1 {
    top: 0;
    left: 15%;
    width: 340px;
    transform: rotate(-1deg);
}

.project-2 {
    top: 120px;
    right: 18%;
    width: 320px;
    transform: rotate(2deg);
}

.project-3 {
    top: 260px;
    left: 25%;
    width: 300px;
    transform: rotate(-2deg);
}

.project-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    border-radius: 10px;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.2s;
}

.project-card:hover .project-icon {
    background: var(--accent);
    color: #000;
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--muted);
}

.project-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--muted);
    transition: all 0.2s;
}

.project-card:hover .project-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* Project number tags */
.project-decor {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    opacity: 0.4;
}

.decor-tag { top: -20px; left: 14%; }
.decor-tag-2 { top: 100px; right: 16%; }
.decor-tag-3 { top: 240px; left: 24%; }

/* Extra height for scattered cards */
.projects {
    min-height: 500px;
}

/* =========================================
   ABOUT - Offset sections
   ========================================= */

.about {
    padding: 150px 60px 100px;
    position: relative;
    z-index: 1;
}

.about-quote {
    margin-left: 15%;
    margin-bottom: 80px;
}

.quote-mark {
    font-size: 6rem;
    color: var(--accent);
    opacity: 0.4;
    line-height: 0.5;
    display: block;
    text-shadow: 0 0 60px var(--glow);
    font-family: Georgia, serif;
}

.about-quote p {
    font-size: 1.5rem;
    font-weight: 500;
    max-width: 400px;
}

.about-tech {
    position: absolute;
    right: 10%;
    top: 30%;
}

.tech-label,
.contact-label {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 280px;
}

.tech-pill {
    padding: 8px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.tech-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--glow);
}

.about-contact {
    margin-left: 5%;
    margin-top: 60px;
}

.contact-links {
    display: flex;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--accent);
    background: rgba(16, 185, 129, 0.08);
    transform: translateX(4px);
}

.contact-link:hover svg {
    filter: drop-shadow(0 0 6px var(--accent));
}

/* =========================================
   FOOTER - Minimal
   ========================================= */

.footer {
    display: flex;
    justify-content: space-between;
    padding: 30px 60px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-weight: 600;
    text-shadow: 0 0 20px var(--glow);
}

.footer-year {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Cursor glow effect */
.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow), transparent 70%);
    pointer-events: none;
    opacity: 0.4;
    filter: blur(40px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* =========================================
   LOGIN PAGE
   ========================================= */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-decor-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow), transparent 70%);
    top: -200px;
    right: -200px;
    filter: blur(80px);
    opacity: 0.5;
}

.login-decor-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 70%);
    bottom: -100px;
    left: -100px;
    filter: blur(60px);
}

.login-decor-3 {
    width: 200px;
    height: 200px;
    border: 1px solid var(--accent);
    top: 20%;
    left: 10%;
    opacity: 0.1;
    animation: spin 40s linear infinite;
}

.login-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s ease-out;
}

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

.login-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    display: block;
    margin-bottom: 20px;
    text-shadow: 0 0 30px var(--glow);
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--muted);
    font-size: 0.95rem;
}

.discord-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: #5865F2;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 0.85rem;
}

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

.login-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.login-back:hover {
    color: var(--text);
    background: var(--border);
}

.login-features {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.85rem;
}

.login-feature svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* =========================================
   AUTH FORMS (Login/Register)
   ========================================= */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.form-group input {
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input::placeholder {
    color: var(--muted);
    opacity: 0.6;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--muted);
    opacity: 0.8;
}

.form-error {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #f87171;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--muted);
    user-select: none;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.remember-me .checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remember-me .checkmark::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(-45deg) translate(1px, -1px);
    transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    border-color: #000;
}

.remember-me:hover .checkmark {
    border-color: var(--accent);
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-switch {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.auth-switch a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Link button for connections */
.link-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.link-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-disconnect {
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-disconnect:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.connection-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.connection-item.disabled .connection-username {
    font-style: italic;
}

/* =========================================
   DASHBOARD - Sidebar Layout
   ========================================= */

#dashboard {
    display: flex;
    min-height: 100vh;
}

.dash-sidebar {
    width: 260px;
    background: var(--card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.dash-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
    text-shadow: 0 0 20px var(--glow);
}

.dash-brand-text {
    font-size: 0.9rem;
    color: var(--muted);
}

.dash-menu {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.dash-menu-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.dash-menu-item.active {
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
}

.dash-menu-item.active svg {
    filter: drop-shadow(0 0 6px var(--accent));
}

/* Expandable Menu Groups */
.dash-menu-group {
    margin: 2px 0;
}

.dash-menu-group.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dash-menu-parent {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.dash-menu-parent:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.dash-menu-group.expanded .dash-menu-parent {
    color: var(--text);
}

.dash-menu-parent span:first-of-type {
    flex: 1;
}

.menu-arrow {
    transition: transform 0.2s ease;
    opacity: 0.4;
    flex-shrink: 0;
}

.dash-menu-group.expanded .menu-arrow {
    transform: rotate(180deg);
    opacity: 0.7;
}

.menu-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    background: var(--border);
    border-radius: 8px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-menu-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    margin-left: 16px;
    border-left: 1px solid var(--border);
}

.dash-menu-group.expanded .dash-menu-children {
    max-height: 200px;
    margin-top: 4px;
}

.dash-menu-child {
    padding: 10px 16px;
    font-size: 0.85rem;
    border-radius: 0 10px 10px 0;
    margin: 2px 0;
    gap: 10px;
}

.dash-menu-child:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dash-menu-child.active {
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
}

.dash-menu-child svg {
    width: 16px;
    height: 16px;
}

.dash-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 8px;
}

.dash-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.dash-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
}

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

.dash-user-name {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-user-role {
    font-size: 0.75rem;
    color: var(--muted);
}

.dash-logout {
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.dash-logout:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Main Content Area */
.dash-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 50;
}

.dash-page-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.dash-date {
    color: var(--muted);
    font-size: 0.85rem;
}

.dash-content {
    flex: 1;
    padding: 32px 40px;
    max-width: 1200px;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

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

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.welcome-text h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

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

.welcome-art {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.welcome-circle {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
}

.welcome-circle:nth-child(2) {
    width: 60px;
    height: 60px;
    margin-top: 20px;
}

/* Stats Grid */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    color: var(--accent);
}

.stat-icon.storage {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-icon.views {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Dashboard Section */
.dash-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}

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

.section-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.section-badge {
    font-size: 0.75rem;
    color: var(--muted);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 20px;
}

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

.token-display {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--muted);
    word-break: break-all;
}

.btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--accent);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-text:hover {
    opacity: 0.8;
}

/* Recent Gallery */
.recent-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gallery-loading .spinner {
    width: 20px;
    height: 20px;
}

/* Refresh button loading state */
.btn-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-secondary .spin {
    animation: spin 1s linear infinite;
}

/* Queue item copy button feedback */
.queue-item-btn.copy-btn.copied {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
}

/* Upload Tab - New Design */
.upload-page {
    max-width: 700px;
}

.upload-dropzone {
    background: var(--card);
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-dropzone:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.02);
}

.upload-dropzone.dragover {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.08);
    transform: scale(1.01);
}

.dropzone-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.dropzone-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.dropzone-text {
    flex: 1;
}

.dropzone-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dropzone-text p {
    color: var(--muted);
    font-size: 0.9rem;
}

.dropzone-hints {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
}

.hint-item svg {
    opacity: 0.6;
}

/* Upload Queue */
.upload-queue {
    margin-top: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

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

.queue-header h4 {
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-text-small {
    background: none;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-text-small:hover {
    color: var(--accent);
}

.queue-items {
    max-height: 400px;
    overflow-y: auto;
}

/* Queue Item */
.queue-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    animation: slideIn 0.3s ease;
}

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

.queue-item-preview {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
}

.queue-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.queue-item-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.queue-item-status {
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.queue-item-status.uploading {
    color: var(--accent);
}

.queue-item-status.success {
    color: var(--accent);
}

.queue-item-status.error {
    color: #ef4444;
}

.queue-item-progress {
    width: 100%;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.queue-item-progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.queue-item-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.queue-item-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.queue-item-btn.copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.queue-item-url {
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Spinner animation */
@keyframes spinner {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: #000;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Gallery Tab */
.gallery-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.gallery-stats {
    color: var(--muted);
    font-size: 0.9rem;
}

.gallery-search {
    flex: 1;
    max-width: 300px;
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-search .search-icon {
    position: absolute;
    left: 14px;
    color: var(--muted);
    pointer-events: none;
}

.gallery-search .search-input {
    width: 100%;
    padding: 10px 36px 10px 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.gallery-search .search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.gallery-search .search-clear {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    border: none;
    border-radius: 50%;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-search .search-clear:hover {
    background: var(--accent);
    color: #000;
}

.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--muted);
    text-align: center;
    gap: 16px;
}

.gallery-empty svg {
    opacity: 0.3;
}

.gallery-empty p {
    font-size: 0.95rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.9));
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay {
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item-info {
    width: 100%;
    margin-bottom: 8px;
}

.gallery-item-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 4px;
}

.gallery-item-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.gallery-item-actions button {
    flex: 1;
    padding: 8px;
    font-size: 0.75rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
}

.gallery-item-actions .btn-copy {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.gallery-item-actions .btn-copy:hover {
    background: var(--accent);
    color: #000;
}

.gallery-item-actions .btn-copy.copied {
    background: var(--accent);
    color: #000;
}

.gallery-item-actions .btn-delete {
    background: rgba(239,68,68,0.2);
    color: #f87171;
}

.gallery-item-actions .btn-delete:hover {
    background: #ef4444;
    color: #fff;
}

/* Profile Tab */
.profile-container {
    max-width: 900px;
}

.profile-header-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.profile-cover {
    height: 120px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
    position: relative;
}

.profile-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    margin-top: -40px;
    position: relative;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--card);
    object-fit: cover;
    background: var(--bg);
}

.profile-details {
    flex: 1;
}

.profile-details h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

.profile-tag {
    color: var(--muted);
    font-size: 0.9rem;
}

.profile-badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-member {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.profile-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}

.profile-section h3 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.connections-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.connection-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
}

.connection-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.connection-item.connected {
    border-color: rgba(16, 185, 129, 0.3);
}

.connection-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.connection-icon.discord {
    background: rgba(88, 101, 242, 0.15);
    color: #5865F2;
}

.connection-icon.github {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.connection-icon.twitter {
    background: rgba(29, 155, 240, 0.15);
    color: #1d9bf0;
}

.connection-icon.spotify {
    background: rgba(30, 215, 96, 0.15);
    color: #1ed760;
}

.connection-info {
    flex: 1;
}

.connection-name {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
}

.connection-username {
    font-size: 0.8rem;
    color: var(--muted);
}

.connection-status {
    color: var(--accent);
}

.btn-connect {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-connect:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 500;
}

/* Settings Tab */
.settings-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
}

.settings-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    color: var(--accent);
}

.settings-card-header h3 {
    color: var(--text);
    font-size: 1rem;
}

.settings-content {
    padding: 24px;
}

.settings-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.setting-row:last-child { border: none; }

.setting-label {
    color: var(--muted);
}

.setting-value {
    font-weight: 500;
}

.code-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--muted);
}

.settings-card.danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.settings-card.danger .settings-card-header {
    color: #f87171;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #f87171;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

/* Loading & Toasts */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loader {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1001;
}

.toast {
    padding: 12px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

.toast.success { border-left: 3px solid var(--accent); }
.toast.error { border-left: 3px solid #ef4444; }

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

/* =========================================
   CUSTOM MODAL
   ========================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    animation: overlayIn 0.3s ease forwards;
}

@keyframes overlayIn {
    from {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
    to {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
    }
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    animation: overlayOut 0.2s ease forwards;
}

@keyframes overlayOut {
    from {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
        opacity: 1;
    }
    to {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
        opacity: 0;
    }
}

.modal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

@keyframes modalIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-overlay.hidden .modal-card {
    animation: modalOut 0.2s ease forwards;
}

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

.modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    animation: iconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s backwards;
}

@keyframes iconPop {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.modal-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    animation: iconShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0.15s backwards;
}

@keyframes iconShake {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    60% { transform: translateX(-3px) scale(1); }
    70% { transform: translateX(3px); }
    80% { transform: translateX(-2px); }
    90% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.modal-icon.warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    animation: iconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s backwards;
}

@keyframes iconBounce {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(10px);
    }
    60% {
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.modal-message {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
}

.modal-btn-cancel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.modal-btn-confirm {
    background: var(--accent);
    border: none;
    color: #000;
}

.modal-btn-confirm:hover {
    background: var(--accent2);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--glow);
}

.modal-btn-confirm.danger {
    background: #ef4444;
    color: #fff;
}

.modal-btn-confirm.danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

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

@media (max-width: 1024px) {
    .dash-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .recent-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hero { padding: 120px 30px 60px; }
    .hero-main { margin-left: 0; }

    .float-card { display: none; }

    .projects { padding: 60px 30px; min-height: auto; }
    .project-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        margin-bottom: 16px;
        transform: none !important;
    }

    .project-decor { display: none; }
    .section-label { margin-left: 0; }

    .about { padding: 80px 30px; }
    .about-quote { margin-left: 0; }
    .about-tech { position: relative; right: auto; top: auto; margin-bottom: 40px; }
    .tech-items { max-width: 100%; }
    .about-contact { margin-left: 0; }

    .footer { padding: 24px 30px; }
    .nav { padding: 16px 24px; }

    /* Dashboard responsive */
    .dash-sidebar {
        width: 70px;
        padding: 0;
    }

    .dash-brand {
        justify-content: center;
        padding: 20px 10px;
    }

    .dash-brand-text {
        display: none;
    }

    .dash-menu {
        padding: 10px;
    }

    .dash-menu-item {
        justify-content: center;
        padding: 12px;
    }

    .dash-menu-item span {
        display: none;
    }

    .dash-sidebar-user {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }

    .dash-user-info {
        display: none;
    }

    .dash-main {
        margin-left: 70px;
    }

    .dash-content {
        padding: 24px;
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }

    .welcome-art {
        display: none;
    }

    .recent-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-url-box {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.5rem; letter-spacing: -1px; }
    .nav-links a { display: none; }
    .contact-links { flex-wrap: wrap; }

    .decor { display: none; }

    /* Dashboard mobile */
    .dash-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: auto;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid var(--border);
        z-index: 100;
        display: flex;
    }

    .dash-brand {
        display: none;
    }

    .dash-menu {
        flex-direction: row;
        flex: 1;
        padding: 8px;
        gap: 4px;
        justify-content: space-around;
        overflow-x: auto;
    }

    .dash-menu-item {
        flex-direction: column;
        padding: 8px 12px;
        font-size: 0.65rem;
        gap: 4px;
        min-width: auto;
    }

    .dash-menu-item span {
        display: block;
    }

    .dash-menu-item svg {
        width: 20px;
        height: 20px;
    }

    /* Hide expandable menu groups on mobile - show direct items */
    .dash-menu-group {
        display: none;
    }

    .dash-menu-divider {
        display: none;
    }

    .dash-sidebar-user {
        display: none;
    }

    .dash-main {
        margin-left: 0;
        padding-bottom: 80px;
    }

    .dash-header {
        padding: 16px 20px;
    }

    .dash-content {
        padding: 16px;
        padding-bottom: 100px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

    .profile-info {
        flex-direction: column;
        text-align: center;
        margin-top: -50px;
    }

    .profile-badges {
        justify-content: center;
    }

    /* Upload dropzone mobile */
    .dropzone-content {
        flex-direction: column;
        text-align: center;
    }

    .dropzone-hints {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    /* Token display mobile */
    .token-container {
        flex-direction: column;
    }

    .token-display {
        font-size: 0.7rem;
    }

    /* Toast position on mobile */
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 90px;
    }

    .toast {
        width: 100%;
    }
}
