/* ============================================
   EDOCRAFT — Thème Sakura & Nuit Japonaise
   ============================================ */

/* Variables */
:root {
    --bg-primary: #0D0A1A;
    --bg-secondary: #120F24;
    --bg-card: #1A1530;
    --color-rose: #FFB7C5;
    --color-violet: #9B4F96;
    --color-violet-dark: #6B2F6B;
    --color-gold: #D4AF37;
    --color-text: #F0E6F0;
    --color-text-muted: #9B8FAA;
    --color-border: rgba(155, 79, 150, 0.3);
    --font-title: 'Cinzel', serif;
    --font-jp: 'Noto Serif JP', serif;
    --font-body: 'Inter', sans-serif;
    --navbar-height: 70px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--color-text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================
   PÉTALES SAKURA
   ============================================ */

.sakura-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -20px;
    width: 12px;
    height: 12px;
    background: radial-gradient(ellipse at 30% 30%, #FFD6E0, #FFB7C5, #E891A8);
    border-radius: 0 50% 50% 50%;
    opacity: 0;
    animation: petalFall linear infinite;
}

@keyframes petalFall {
    0% {
        transform: translateX(0) translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.6; }
    100% {
        transform: translateX(-300px) translateY(105vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-height);
    background: rgba(13, 10, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-rose);
    letter-spacing: 2px;
}

.logo-sub {
    font-family: var(--font-jp);
    font-size: 1rem;
    color: var(--color-violet);
    opacity: 0.8;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--color-rose);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-rose);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-auth {
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.btn-auth:hover {
    color: var(--color-rose);
    border-color: var(--color-rose);
}

.btn-auth-primary {
    background: linear-gradient(135deg, var(--color-violet-dark), var(--color-violet));
    color: var(--color-text) !important;
    border-color: transparent !important;
}

.btn-auth-primary:hover {
    background: linear-gradient(135deg, var(--color-violet), #B56AB0);
    transform: translateY(-1px);
}

.nav-username {
    font-size: 0.85rem;
    color: var(--color-rose);
    font-weight: 500;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    position: relative;
    z-index: 1;
    padding-top: var(--navbar-height);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 0;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand .logo-text { font-size: 1.3rem; }

.footer-desc {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-title);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-rose);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--color-rose); }

.server-ip {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--color-gold);
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.server-version {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-bottom {
    margin-top: 2rem;
    padding: 1rem 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================
   UTILITAIRES
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--color-rose);
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-jp);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 3rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: var(--color-rose);
    transform: translateY(-2px);
}




/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.35;
    filter: blur(1px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 10, 26, 0.3) 0%,
        rgba(13, 10, 26, 0.5) 50%,
        var(--bg-primary) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
}

.hero-jp {
    font-family: var(--font-jp);
    font-size: 1rem;
    color: var(--color-violet);
    letter-spacing: 6px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    color: var(--color-rose);
    letter-spacing: 8px;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 60px rgba(255, 183, 197, 0.3);
}

.hero-subtitle {
    font-family: var(--font-jp);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-ip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 183, 197, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    margin-bottom: 2rem;
}

.ip-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ip-address {
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: var(--color-gold);
    letter-spacing: 1px;
}

.ip-copy {
    background: rgba(155, 79, 150, 0.2);
    border: 1px solid var(--color-violet);
    color: var(--color-rose);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ip-copy:hover {
    background: rgba(155, 79, 150, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--color-violet-dark), var(--color-violet));
    color: var(--color-text);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 79, 150, 0.4);
    background: linear-gradient(135deg, var(--color-violet), #C070BB);
}

.btn-secondary {
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--color-rose);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-rose);
}

.btn-secondary:hover {
    background: rgba(255, 183, 197, 0.1);
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator span {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--color-rose), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ============================================
   STATS
   ============================================ */

.stats-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(155, 79, 150, 0.08), 0 0 24px rgba(255, 183, 197, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    border-color: var(--color-rose);
    box-shadow: 0 0 20px rgba(255, 183, 197, 0.2), 0 0 40px rgba(155, 79, 150, 0.15);
}

.stat-value {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--color-rose);
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   PRÉSENTATION
   ============================================ */

.presentation-section {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(155, 79, 150, 0.08), 0 0 24px rgba(255, 183, 197, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card.card:hover {
    transform: scale(1.02);
    border-color: var(--color-rose);
    box-shadow: 0 0 24px rgba(255, 183, 197, 0.2), 0 0 48px rgba(155, 79, 150, 0.15);
}

.feature-card--full {
    grid-column: 1 / -1;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
}

.feature-title {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--color-rose);
    letter-spacing: 1px;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   CTA
   ============================================ */

.cta-section {
    padding: 4rem 0 6rem;
}

.cta-card {
    background: linear-gradient(135deg, rgba(107, 47, 107, 0.2), rgba(155, 79, 150, 0.1));
    border: 1px solid var(--color-violet);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-deco {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.cta-title {
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--color-rose);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ============================================
   FADE IN ANIMATION
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .navbar-links { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-container { grid-template-columns: 1fr; }
}

















/* ============================================
   RULES
   ============================================ */

.rules-section {
    padding: 6rem 0;
    min-height: 100vh;
}

.rules-header {
    text-align: center;
    margin-bottom: 4rem;
}

.rules-intro {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.rules-grid-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 66%;
    margin: 1.5rem auto 3rem;
}

.rule-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(155, 79, 150, 0.08), 0 0 24px rgba(255, 183, 197, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.rule-card:hover {
    transform: scale(1.02);
    border-color: var(--color-rose);
    box-shadow: 0 0 24px rgba(255, 183, 197, 0.2), 0 0 48px rgba(155, 79, 150, 0.15);
}

.rule-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.rule-title {
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: var(--color-rose);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.rule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rule-list li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    padding-left: 1rem;
    position: relative;
}

.rule-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--color-violet);
}

.rules-footer {
    text-align: center;
}

.rules-footer-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.rules-footer-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.rules-footer-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .rules-grid { grid-template-columns: 1fr; }
}
















/* ============================================
   SHOP
   ============================================ */

.shop-section {
    padding: 5rem 0;
    min-height: 100vh;
}

.shop-header {
    text-align: center;
    margin-bottom: 3rem;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar */
.shop-sidebar {
    position: sticky;
    top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.shop-nav-item {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.shop-nav-item:hover,
.shop-nav-item.active {
    background: rgba(155, 79, 150, 0.15);
    color: var(--color-rose);
}

.shop-nav-item--sub {
    padding-left: 2rem;
    font-size: 0.85rem;
}

/* User card */
.shop-user-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.shop-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.shop-user-avatar {
    border-radius: 8px;
}

.shop-user-name {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--color-rose);
    margin: 0;
}

.shop-user-balance {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

.shop-user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shop-user-actions a {
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Packages grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.package-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(155, 79, 150, 0.08), 0 0 24px rgba(255, 183, 197, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.package-card:hover {
    transform: scale(1.02);
    border-color: var(--color-rose);
    box-shadow: 0 0 24px rgba(255, 183, 197, 0.2), 0 0 48px rgba(155, 79, 150, 0.15);
}

.package-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.package-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.package-name {
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: var(--color-text);
    margin: 0;
}

.package-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-price-old {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.package-price-current {
    font-size: 1.1rem;
    color: var(--color-rose);
    font-weight: 600;
}

.package-btn {
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: auto;
}

.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-muted);
    padding: 3rem;
}

/* Goal / Top / Recent */
.shop-goal, .shop-top, .shop-recent {
    padding: 1rem;
    margin-bottom: 1rem;
}

.shop-goal-title, .shop-top-title, .shop-recent-title {
    font-family: var(--font-title);
    font-size: 0.85rem;
    color: var(--color-rose);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.shop-progress {
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    height: 6px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.shop-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-violet), var(--color-rose));
    border-radius: 999px;
    transition: width 0.5s ease;
}

.shop-goal-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
    margin: 0;
}

.shop-top-user, .shop-recent-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shop-recent-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.shop-recent-item:last-child {
    border-bottom: none;
}

.shop-recent-item p, .shop-top-user p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text);
}

.shop-recent-item small, .shop-top-user small {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.shop-empty-text {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .packages-grid { grid-template-columns: 1fr; }
}

















/* ============================================
   WIKI
   ============================================ */

.wiki-section {
    padding: 5rem 0;
    min-height: 100vh;
}

.wiki-header {
    text-align: center;
    margin-bottom: 3rem;
}

.wiki-search {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 1.5rem auto 0;
}

.wiki-search-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.wiki-search-input:focus {
    border-color: var(--color-rose);
}

/* Categories grid */
.wiki-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.wiki-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-decoration: none;
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(155, 79, 150, 0.08), 0 0 24px rgba(255, 183, 197, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    gap: 1rem;
}

.wiki-category-card:hover {
    transform: scale(1.02);
    border-color: var(--color-rose);
    box-shadow: 0 0 24px rgba(255, 183, 197, 0.2), 0 0 48px rgba(155, 79, 150, 0.15);
}

.wiki-category-icon {
    font-size: 2.5rem;
    color: var(--color-rose);
}

.wiki-category-name {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 11px;
    text-align: center;
}

/* Wiki page layout */
.wiki-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.wiki-sidebar {
    position: sticky;
    top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wiki-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 0.75rem;
}

.wiki-nav-item {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.wiki-nav-item:hover,
.wiki-nav-item.active {
    background: rgba(155, 79, 150, 0.15);
    color: var(--color-rose);
}

.wiki-back {
    display: inline-block;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.2s ease;
}

.wiki-back:hover {
    color: var(--color-rose);
}

.wiki-page-card {
    border-radius: 16px;
}

.wiki-page-body {
    color: var(--color-text);
    line-height: 1.8;
    font-size: 0.95rem;
}

.wiki-page-body h1, .wiki-page-body h2, .wiki-page-body h3 {
    font-family: var(--font-title);
    color: var(--color-rose);
    margin-bottom: 1rem;
}

.wiki-page-body a {
    color: var(--color-rose);
}

.wiki-page-body code {
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .wiki-categories { grid-template-columns: repeat(2, 1fr); }
    .wiki-layout { grid-template-columns: 1fr; }
}











/* ============================================
   VOTE
   ============================================ */

.vote-section {
    padding: 5rem 0;
    min-height: 100vh;
}

.vote-header {
    text-align: center;
    margin-bottom: 3rem;
}

.vote-card {
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.vote-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.vote-alert {
    background: rgba(155, 79, 150, 0.1);
    border: 1px solid var(--color-violet);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.vote-sites {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.vote-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
}

.vote-empty {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.vote-goal {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.vote-goal-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0.5rem 0 0;
}

.vote-subtitle {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--color-rose);
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.vote-top, .vote-rewards {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.vote-table-wrap {
    overflow-x: auto;
}

.vote-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.vote-table thead tr {
    border-bottom: 1px solid var(--color-border);
}

.vote-table th {
    padding: 0.75rem 1rem;
    color: var(--color-rose);
    font-family: var(--font-title);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-align: left;
}

.vote-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s ease;
}

.vote-table tbody tr:hover {
    background: rgba(155, 79, 150, 0.06);
}

.vote-table td {
    padding: 0.75rem 1rem;
    color: var(--color-text-muted);
}

.vote-rank {
    font-weight: 600;
    color: var(--color-text) !important;
}

.vote-count {
    color: var(--color-rose) !important;
    font-weight: 600;
}

.vote-user-count {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
}








/* ============================================
   AUTH
   ============================================ */

.auth-section {
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-wrapper {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card {
    padding: 2rem;
    border-radius: 20px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.auth-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.auth-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    color: var(--color-text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.auth-input:focus {
    border-color: var(--color-rose);
    box-shadow: 0 0 0 3px rgba(255, 183, 197, 0.08);
}

.auth-input.is-invalid {
    border-color: #ff4d4d;
}

.auth-error {
    font-size: 0.8rem;
    color: #ff4d4d;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.auth-forgot {
    color: var(--color-rose);
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s ease;
}

.auth-forgot:hover {
    opacity: 0.7;
}

.auth-conditions {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.auth-submit {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}













/* ============================================
   PROFILE
   ============================================ */

.profile-section {
    padding: 5rem 0;
    min-height: 100vh;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-card {
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-info {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    border: 2px solid var(--color-border);
}

.profile-role {
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.profile-name {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--color-rose);
    margin-bottom: 0.75rem;
}

.profile-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-meta li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-actions a,
.profile-actions button {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

.btn-danger-outline:hover {
    background: rgba(255, 77, 77, 0.1);
}

.profile-alert {
    background: var(--bg-card);
    border: 1px solid var(--color-violet);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.profile-alert-success {
    color: #4caf50;
    margin-bottom: 0.5rem;
}

.profile-forms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.profile-form-card {
    padding: 1.5rem;
}

.profile-form-title {
    font-family: var(--font-title);
    font-size: 0.9rem;
    color: var(--color-rose);
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .profile-info { flex-direction: column; align-items: center; text-align: center; }
    .profile-actions { justify-content: center; }
    .profile-forms { grid-template-columns: 1fr; }
}








/* ============================================
   CHANGELOG
   ============================================ */

.changelog-section {
    padding: 5rem 0;
    min-height: 100vh;
}

.changelog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.changelog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.changelog-sidebar {
    position: sticky;
    top: 5rem;
}

.changelog-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 0.75rem;
}

.changelog-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.changelog-nav-item:hover,
.changelog-nav-item.active {
    background: rgba(155, 79, 150, 0.15);
    color: var(--color-rose);
}

.changelog-count {
    background: rgba(155, 79, 150, 0.2);
    color: var(--color-rose);
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.changelog-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.changelog-card {
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(155, 79, 150, 0.08), 0 0 24px rgba(255, 183, 197, 0.05);
}

.changelog-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--color-rose);
    margin-bottom: 0.75rem;
}

.changelog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.changelog-badge {
    background: rgba(155, 79, 150, 0.2);
    color: var(--color-rose);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-family: var(--font-title);
    letter-spacing: 0.5px;
}

.changelog-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.changelog-content {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.changelog-content h1, .changelog-content h2, .changelog-content h3 {
    font-family: var(--font-title);
    color: var(--color-text);
    margin: 1rem 0 0.5rem;
}

.changelog-content ul, .changelog-content ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.changelog-content li {
    margin-bottom: 0.3rem;
}

.changelog-content a {
    color: var(--color-rose);
}

.changelog-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 3rem;
}

.changelog-pagination {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .changelog-layout { grid-template-columns: 1fr; }
}










/* ============================================
   MODAL SHOP
   ============================================ */

#itemModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px) scale(0.97);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.modal-overlay.visible .modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--color-rose);
}

.modal-box .form-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.4rem;
}

.modal-box .form-control,
.modal-box .form-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--color-text);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    margin-bottom: 1rem;
}

.modal-box .btn,
.modal-box .btn-primary {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.modal-box h4, .modal-box .h4 {
    font-family: var(--font-title);
    color: var(--color-rose);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.modal-box img {
    border-radius: 12px;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.modal-box del {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.modal-box p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}