@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&family=Outfit:wght@400;700;900&display=swap');

:root {
    --primary: #00ff88;
    --primary-glow: rgba(0, 255, 136, 0.4);
    --primary-dark: #00cc6a;
    --bg-dark: #050806;
    --bg-panel: #0a0f0c;
    --bg-card: #111a14;
    --bg-card-hover: #18261e;
    --text-main: #ffffff;
    --text-muted: #8a9a92;
    --border-color: rgba(0, 255, 136, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 8, 6, 0.80); /* --bg-dark with 80% opacity */
    z-index: -1;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

/* Sidebar */
.sidebar {
    width: 80px;
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar .logo {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 40px;
    box-shadow: 0 0 15px var(--primary-glow);
    text-decoration: none;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.sidebar-menu a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    color: var(--primary);
    background: linear-gradient(90deg, rgba(0,255,136,0.1) 0%, transparent 100%);
}

.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 3px;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.sidebar-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.discord-btn {
    color: #5865F2;
    font-size: 24px;
    transition: transform 0.3s ease;
}
.discord-btn:hover {
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    margin-left: 80px;
    flex: 1;
    padding: 40px 60px;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.topbar .url-display {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.user-profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.hero-text {
    max-width: 600px;
}

.badge {
    display: inline-block;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 80px;
    line-height: 0.9;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 .outline {
    color: var(--primary);
}
.hero h1 .filled {
    color: var(--text-main);
    text-shadow: 0 0 20px var(--primary-glow);
}

.hero p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-box h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 5px;
}

.stat-box span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Connect Box */
.connect-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    width: 400px;
    position: relative;
    overflow: hidden;
}

.connect-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.cb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 800;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--primary);
}

.cb-image {
    width: 100%;
    height: 150px;
    background: url('https://rust.facepunch.com/images/bg.jpg') center/cover;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.cb-image h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
}

.cb-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 80%;
    background: linear-gradient(to top, var(--bg-card), transparent);
    border-radius: 0 0 8px 8px;
}

.cb-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cb-action .ip-text {
    font-size: 14px;
    color: var(--text-muted);
}

.cb-action .ip {
    color: var(--text-main);
    font-weight: bold;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.05);
}

.cb-footer {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Pages General */
.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
}

.page-title span {
    color: var(--primary);
}
.page-title span.filled {
    color: var(--text-main);
}

/* Store Cards */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 270px);
    gap: 25px;
    justify-content: start;
}

.store-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.store-card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.store-card-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
}

.store-img {
    height: 180px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.store-price {
    padding: 20px;
    font-size: 32px;
    font-family: var(--font-heading);
    font-weight: 900;
}

.store-price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.store-features {
    padding: 0 20px 20px;
    flex: 1;
}

.store-features p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.store-features ul {
    list-style: none;
}

.store-features li {
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

.store-actions {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.store-actions a {
    flex: 1;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-inspect {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}
.btn-inspect:hover {
    background: rgba(255,255,255,0.1);
}

.btn-buy {
    background: var(--primary);
    color: #000;
}
.btn-buy:hover {
    background: var(--primary-dark);
}

/* Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.rule-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
}

.rule-box h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rule-box ul {
    list-style: none;
}
.rule-box li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}
.rule-box li.yes::before { content: '✓'; color: var(--primary); position: absolute; left: 0; }
.rule-box li.no::before { content: '✕'; color: #ff3333; position: absolute; left: 0; }

/* Servers List */
.server-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.server-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s ease;
}
.server-item:hover {
    background: var(--bg-card-hover);
}

.si-left {
    display: flex;
    gap: 20px;
    align-items: center;
}
.si-img {
    width: 120px;
    height: 70px;
    background: url('https://rust.facepunch.com/images/bg.jpg') center/cover;
    border-radius: 4px;
}
.si-info h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 5px;
}
.si-tags span {
    font-size: 11px;
    background: rgba(255,255,255,0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
}
.si-right {
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: right;
}
.si-players {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
}
.si-status {
    color: var(--primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.si-ping {
    color: var(--primary);
    font-weight: bold;
}
/ *   G l o b a l   M o d a l   S t y l e s   * / 
 . m o d a l - o v e r l a y   { 
         p o s i t i o n :   f i x e d ; 
         t o p :   0 ;   l e f t :   0 ;   w i d t h :   1 0 0 % ;   h e i g h t :   1 0 0 % ; 
         b a c k g r o u n d :   r g b a ( 0 , 0 , 0 , 0 . 8 5 ) ; 
         b a c k d r o p - f i l t e r :   b l u r ( 5 p x ) ; 
         z - i n d e x :   1 0 0 0 ; 
         d i s p l a y :   n o n e ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
 } 
 . m o d a l - c o n t e n t   { 
         b a c k g r o u n d :   v a r ( - - b g - d a r k ) ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ; 
         w i d t h :   1 0 0 % ; 
         m a x - w i d t h :   8 0 0 p x ; 
         b o r d e r - r a d i u s :   1 2 p x ; 
         o v e r f l o w :   h i d d e n ; 
         p o s i t i o n :   r e l a t i v e ; 
 } 
 . m o d a l - h e a d e r - i m g   { 
         h e i g h t :   2 5 0 p x ; 
         b a c k g r o u n d :   u r l ( ' h t t p s : / / r u s t . f a c e p u n c h . c o m / i m a g e s / b g . j p g ' )   c e n t e r / c o v e r ; 
         p o s i t i o n :   r e l a t i v e ; 
 } 
 . m o d a l - c l o s e   { 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   1 5 p x ;   r i g h t :   1 5 p x ; 
         b a c k g r o u n d :   r g b a ( 0 , 0 , 0 , 0 . 5 ) ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ; 
         c o l o r :   # f f f ; 
         w i d t h :   3 5 p x ;   h e i g h t :   3 5 p x ; 
         b o r d e r - r a d i u s :   5 p x ; 
         c u r s o r :   p o i n t e r ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         t r a n s i t i o n :   0 . 3 s ; 
         z - i n d e x :   1 0 ; 
 } 
 . m o d a l - c l o s e : h o v e r   { 
         b a c k g r o u n d :   v a r ( - - p r i m a r y ) ; 
         c o l o r :   # 0 0 0 ; 
 } 
 . m o d a l - b o d y   { 
         p a d d i n g :   3 0 p x ; 
 } 
 . m o d a l - t i t l e   { 
         f o n t - f a m i l y :   v a r ( - - f o n t - h e a d i n g ) ; 
         f o n t - s i z e :   2 2 p x ; 
         m a r g i n - b o t t o m :   2 0 p x ; 
 }  
 