:root {
    --primary-color: #B87448;
    --primary-color-hover: #A05E35;
    --dark-surface: #0a0a0a;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --discord: #5865F2;
    --discord-hover: #4752C4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000000;
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* EXACT HEADER MATCH */
.header {
    background-color: #000000;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(63, 169, 245, 0.15);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
}
.header-logo { height: 55px; }
.logo-container { display: flex; align-items: center; }

.nav-links {
    display: flex;
    gap: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
}
.nav-links a {
    padding: 12px 18px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    background-color: var(--primary-color);
    color: #fff;
}
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}
.btn {
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: none;
}
.header-actions .btn {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 12px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: var(--primary-color-hover); color: #fff; }
.btn-discord {
    background-color: var(--discord);
    color: #fff;
    gap: 10px;
}
.btn-discord:hover { background-color: var(--discord-hover); }
.btn-ip { background-color: var(--primary-color); color: #fff; }
.btn-ip:hover { background-color: var(--primary-color-hover); }

/* HERO */
.hero {
    position: relative;
    height: 400px; /* Shorter for store */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 1)), 
                url('https://hyvix.net/assets/img/banner.png') center 25%/cover no-repeat;
    margin-bottom: -40px; /* Pull content up slightly */
}
.hero-content { text-align: center; z-index: 10; padding: 0 20px; }
.hero-logo {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 2px 4px 0px rgba(0,0,0,0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: linear-gradient(to bottom, #ffffff, #D6976F, #B87448);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1.1rem; font-weight: 600; color: #e5e7eb; }


/* --- ORIGIN REALMS STYLE STORE LAYOUT --- */
.store-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    position: relative;
    z-index: 20;
    align-items: flex-start;
}
.sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 140px;
}
.main-content {
    flex: 1;
}

/* SIDEBAR MODULES (Bubbly / Premium look) */
.module {
    background: #111111;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}
.module-header {
    background: rgba(0,0,0,0.3);
    padding: 18px 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.module-body { padding: 20px; }

/* CATEGORY MENU */
.category-list { list-style: none; padding: 10px; margin: 0; }
.category-list li { margin-bottom: 5px; }
.category-list a {
    display: block;
    padding: 12px 18px;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-list a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(5px);
}
.category-list a.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(184, 116, 72, 0.4);
}

/* BASKET */
.basket-module { text-align: center; }
.basket-info { margin-bottom: 15px; font-size: 1.1rem; font-weight: 700; color: #fff; }
.basket-btn { width: 100%; display: block; text-align: center; padding: 14px; font-size: 1.1rem; border-radius: 10px; }

/* PANELS / MAIN CONTENT */
.panel {
    background: #111111;
    border-radius: 16px;
    padding: 35px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}
.panel-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}
.panel-content { font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); }

/* OR STYLE PACKAGES GRID */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.package-card {
    background: #111111;
    border: 2px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
}
.package-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(184, 116, 72, 0.2);
}
.package-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: radial-gradient(circle at center, rgba(184, 116, 72, 0.15) 0%, rgba(0,0,0,0.8) 100%);
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.package-body { 
    padding: 25px 20px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
}
.package-name { 
    font-size: 1.5rem; 
    font-weight: 800; 
    margin-bottom: 10px; 
    color: #fff; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.package-price { 
    font-size: 1.4rem; 
    font-weight: 700; 
    color: var(--primary-color); 
    margin-bottom: 20px; 
    background: rgba(184, 116, 72, 0.1);
    padding: 5px 15px;
    border-radius: 8px;
    display: inline-block;
}
.package-action { width: 100%; margin-top: auto; }
.package-action .btn { 
    width: 100%; 
    padding: 14px; 
    font-size: 1.1rem; 
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* EXACT FOOTER MATCH */
.site-footer {
    margin: 60px auto 60px auto;
    width: 100%;
    position: relative;
    background: transparent;
}
.sf-top {
    background-color: var(--primary-color);
    padding: 25px 40px 25px 160px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sf-bottom {
    background-color: #A05E35;
    padding: 25px 40px 25px 160px;
    border-radius: 0 0 12px 12px;
    color: #fff;
}
.sf-mascot {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 110px;
    height: 110px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    z-index: 10;
}
.sf-ip-group { display: flex; gap: 10px; }
.sf-btn {
    background-color: rgba(0, 0, 0, 0.15);
    color: rgba(255,255,255,0.95);
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
}
.sf-btn:hover { background-color: rgba(0, 0, 0, 0.3); }
.sf-count {
    background-color: rgba(0, 0, 0, 0.1);
    color: rgba(255,255,255,0.9);
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
}
.sf-socials { display: flex; gap: 15px; align-items: center; }
.sf-socials a { color: rgba(255,255,255,0.7); transition: color 0.2s; display: flex; }
.sf-socials a:hover { color: #fff; transform: scale(1.1); }
.sf-text { font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; color: #fff; }
.sf-subtext { font-size: 0.95rem; color: rgba(255,255,255,0.8); }

@media(max-width: 900px) {
    .header-inner { flex-direction: row; height: auto; padding: 15px 0; justify-content: space-between; }
    .nav-links { gap: 15px; font-size: 14px; }
    .header-actions { display: none; }
    
    .store-layout { flex-direction: column; }
    .sidebar { width: 100%; position: static; }
    
    .sf-top, .sf-bottom { padding: 30px 20px; text-align: center; }
    .sf-top { border-radius: 12px 12px 0 0; flex-direction: column; gap: 25px; }
    .sf-bottom { border-radius: 0 0 12px 12px; }
    .sf-mascot { display: none; }
    .sf-ip-group { flex-direction: column; width: 100%; align-items: center; gap: 15px; }
}
@media(max-width: 600px) {
    .nav-links { font-size: 13px; gap: 5px; }
    .nav-links a { padding: 8px 10px; }
    .header-logo { height: 40px; }
    
    .sf-btn, .sf-count { width: 100%; }
    .sf-socials { flex-wrap: wrap; justify-content: center; }
}

/* ====== CLEAN ORIGIN REALMS REDESIGN ====== */

/* Body adjustments */
body.store-body {
    background-color: #0f1013; /* Darker smooth bg */
    color: #e0e0e0;
}

/* Horizontal Nav */
.store-nav-wrapper {
    background: rgba(26, 28, 35, 0.95);
    border-bottom: 2px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 40px;
}

.store-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 60px;
}

.store-nav-categories {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.store-nav-categories a {
    color: #aaa;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 20px 10px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.store-nav-categories a:hover, .store-nav-categories a.active {
    color: #fff;
    border-bottom: 3px solid var(--primary-color);
}

.store-nav-right {
    display: flex;
    align-items: center;
}

.cart-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}

.cart-pill:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Clean Main Layout */
.store-main-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Clean Sections */
.clean-section {
    background: #1a1c23;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.clean-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 100%);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.clean-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.clean-body {
    padding: 30px;
}

.clean-text {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #bbb;
    margin-bottom: 20px;
}

.clean-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.clean-subtitle {
    margin: 30px 0 20px;
    font-size: 1.3rem;
    color: #fff;
}

/* Big Category Grid */
.clean-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.clean-category-card {
    position: relative;
    background: #23252d;
    border-radius: 12px;
    height: 140px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid transparent;
}

.clean-category-card:hover {
    transform: translateY(-5px);
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.clean-category-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(235,160,82,0.1) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.clean-category-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.clean-category-content h4 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
}

.btn-clean {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s;
}

.clean-category-card:hover .btn-clean {
    background: var(--primary-color);
    color: #111;
}

/* Goal Bar */
.clean-goal-box {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 10px;
}
.clean-goal-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #fff;
    font-size: 0.95rem;
}
.clean-progress-bar {
    height: 12px;
    background: rgba(0,0,0,0.5);
    border-radius: 6px;
    overflow: hidden;
}
.clean-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 6px;
}

/* Clean Packages */
.clean-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.clean-package-card {
    background: #23252d;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy pop */
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.clean-package-card:hover {
    transform: translateY(-8px);
    border: 2px solid var(--primary-color);
    box-shadow: 0 15px 35px rgba(235,160,82,0.15);
}

.clean-sale-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(231,76,60,0.4);
    z-index: 10;
}

.clean-package-image-wrapper {
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.clean-package-image {
    max-height: 100%;
    max-width: 100%;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));
    transition: transform 0.3s;
}

.clean-package-card:hover .clean-package-image {
    transform: scale(1.1);
}

.clean-package-placeholder {
    width: 80px;
    height: 80px;
    background: #333;
    border-radius: 50%;
}

.clean-package-content {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.clean-package-title {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
}

.clean-package-price {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 900;
    margin-bottom: auto;
}

.clean-package-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Hero */
.store-hero {
    position: relative;
    background: url('https://hyvix.net/assets/img/hero-bg.jpg') center/cover no-repeat;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.store-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,16,19,0.3) 0%, #0f1013 100%);
}

.store-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.store-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.store-subtitle {
    font-size: 1.1rem;
    color: #ffd6b3;
    font-weight: 600;
    margin-top: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Modals / Package Info standard overrides mapping to clean */
.clean-package-actions .btn {
    border-radius: 25px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border: none;
    padding: 10px 20px;
}
.clean-package-actions .btn-primary {
    background: var(--primary-color);
    color: #111;
    box-shadow: 0 4px 10px rgba(235,160,82,0.3);
}
.clean-package-actions .btn-primary:hover {
    background: #ffb86c;
    transform: scale(1.05);
}

.clean-package-actions .btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.clean-package-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}
