* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00d4ff;
    --secondary: #7c3aed;
    --accent: #ff4d9d;
    --bg: #050816;
    --surface: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --muted: #a7b4c9;
    --line: rgba(255, 255, 255, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 212, 255, 0.25), transparent 25%),
        radial-gradient(circle at bottom right, rgba(255, 77, 157, 0.2), transparent 30%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
    opacity: 0.25;
}

.page-shell {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: center;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.2));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    min-height: 80vh;
}

.hero-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.35), transparent 70%);
    top: -60px;
    right: -40px;
    filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

.hero-content, .hero-card, .info-card, .guild-card, .highlight-card, .timeline-item, .cta {
    position: relative;
    z-index: 1;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.78rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    margin-bottom: 14px;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.hero-text {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 650px;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-secondary {
    border-color: var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge-row span {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
}

.hero-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(5, 8, 22, 0.72);
    border: 1px solid var(--line);
    text-align: center;
    backdrop-filter: blur(12px);
    animation: pulse 4s ease-in-out infinite;
}

.profile-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    font-size: 2.1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.4);
}

.hero-card h2 {
    margin-bottom: 8px;
}

.hero-card p {
    color: var(--muted);
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stats-grid div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
}

.stats-grid strong {
    display: block;
    color: var(--primary);
}

.section {
    padding: 54px 0;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    margin-bottom: 6px;
}

.card-grid, .guild-showcase, .highlights-grid {
    display: grid;
    gap: 18px;
}

.card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card, .guild-card, .highlight-card, .timeline-item, .cta {
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover, .guild-card:hover, .highlight-card:hover, .timeline-item:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
}

.accent-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.16), rgba(255, 77, 157, 0.16));
}

.featured-friends-card {
    border: 1px solid rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.15), 0 20px 40px rgba(0, 212, 255, 0.16);
    transform: translateY(-4px);
}

.featured-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.friends-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.friend-item span {
    font-weight: 600;
}

.friend-item strong {
    color: var(--primary);
}

.guild-showcase {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.large-card {
    min-height: 220px;
}

.guild-card i, .highlight-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.highlights-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.timeline-item span {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

.cta {
    text-align: center;
    margin-top: 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.14), rgba(124, 58, 237, 0.18));
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

@keyframes textGlow {
    from { text-shadow: 0 0 10px rgba(0, 212, 255, 0.2); }
    to { text-shadow: 0 0 24px rgba(0, 212, 255, 0.45); }
}

@media (max-width: 980px) {
    .hero, .guild-showcase, .highlights-grid, .card-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 14px;
    }

    .hero {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SETTINGS SECTION
   ============================================ */

.settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.settings-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.settings-card.danger-zone {
    border-color: var(--danger-color);
    background-color: rgba(239, 68, 68, 0.05);
}

.settings-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-info label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.setting-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.creator-signature {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.8rem;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.creator-signature .signature-line {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.35em;
}

.creator-signature .signature-name {
    font-size: 1.12rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 35%, #fbbf24 70%, #fef3c7 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    text-shadow: 0 0 18px rgba(251, 191, 36, 0.25);
}

.creator-signature:hover .signature-name {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

.login-signature {
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .profile-container {
        grid-template-columns: 1fr;
    }

.settings-container {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .dashboard-grid {
        gap: 1rem;
    }

    .vault-card {
        padding: 1.5rem;
    }
}