/* ============================================
   XtreamREAL - Main Stylesheet
   ============================================ */

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #a855f7;
    --accent: #ec4899;
    --dark: #0f0c29;
    --dark-2: #1a1a3e;
    --dark-3: #24243e;
    --dark-4: #302b63;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: rgba(255,255,255,0.08);
    --card-bg: rgba(255,255,255,0.04);
    --card-hover: rgba(255,255,255,0.08);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--secondary), var(--accent));
    --shadow: 0 20px 60px rgba(0,0,0,0.3);
    --radius: 16px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--secondary); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--accent); }

/* Navbar */
.navbar-custom {
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
    transition: all 0.3s;
}
.navbar-custom.scrolled {
    background: rgba(15, 12, 41, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-custom .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #fff;
}
.btn-nav {
    background: var(--gradient);
    color: #fff !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}
.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.4);
    color: #fff !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-4) 50%, var(--dark-3) 100%);
    min-height: 90vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(108,92,231,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(168,85,247,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero h1 .gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary-custom {
    background: var(--gradient);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(108,92,231,0.4);
    color: #fff;
}
.btn-outline-custom {
    color: var(--text);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--border);
    font-size: 1rem;
    transition: all 0.3s;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline-custom:hover {
    border-color: var(--primary);
    color: #fff;
    background: rgba(108,92,231,0.1);
}

/* Stats Bar */
.stats-bar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 4rem;
}
.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}
.stat-item p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}
.section-dark { background: var(--dark-2); }
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Feature Cards */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s;
}
.feature-card:hover {
    background: var(--card-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}
.feature-card:hover::before {
    transform: scaleX(1);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

/* Pricing Cards */
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    height: 100%;
}
.pricing-card.popular {
    border-color: var(--primary);
    background: rgba(108,92,231,0.06);
}
.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    padding: 6px 20px;
    border-radius: 0 0 10px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}
.pricing-card .plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.pricing-card .plan-type {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
}
.pricing-card .price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-card .spec-list {
    text-align: left;
    margin: 1.5rem 0;
    list-style: none;
    padding: 0;
}
.pricing-card .spec-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}
.pricing-card .spec-list li .label { color: var(--text-muted); }
.pricing-card .spec-list li .value { font-weight: 600; }
.pricing-card .feature-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.pricing-card .feature-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.pricing-card .feature-list li::before {
    content: '\2713';
    color: #10b981;
    margin-right: 8px;
    font-weight: 700;
}

/* Blog Cards */
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}
.blog-card .blog-img {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.blog-card .blog-body { padding: 1.5rem; }
.blog-card .blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.blog-card .blog-meta .badge {
    background: rgba(108,92,231,0.15);
    color: var(--secondary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}
.blog-card h5 { font-weight: 700; margin-bottom: 0.5rem; }
.blog-card h5 a { color: var(--text); }
.blog-card h5 a:hover { color: var(--secondary); }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Footer */
.footer {
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}
.footer h6 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #fff;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--secondary); }
.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Dashboard Layout */
.dashboard-wrapper { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    background: var(--dark-2);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s;
}
.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    font-weight: 800;
    font-size: 1.3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-nav { padding: 1rem 0; }
.sidebar-nav .nav-section {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 1rem 1.5rem 0.5rem;
}
.sidebar-nav .nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar-nav .nav-item a:hover {
    color: #fff;
    background: rgba(255,255,255,0.03);
}
.sidebar-nav .nav-item a.active {
    color: #fff;
    background: rgba(108,92,231,0.1);
    border-left-color: var(--primary);
}
.sidebar-nav .nav-item a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
}
.top-bar {
    background: rgba(15,12,41,0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}
.content-area { padding: 2rem; }

/* Dashboard Cards */
.dash-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s;
}
.dash-card:hover {
    background: var(--card-hover);
}
.dash-stat {
    font-size: 2rem;
    font-weight: 800;
}
.dash-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Server Status */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-active { background: rgba(16,185,129,0.15); color: #10b981; }
.status-active::before { background: #10b981; }
.status-provisioning { background: rgba(245,158,11,0.15); color: #f59e0b; }
.status-provisioning::before { background: #f59e0b; animation: pulse 1.5s infinite; }
.status-installing { background: rgba(59,130,246,0.15); color: #3b82f6; }
.status-installing::before { background: #3b82f6; animation: pulse 1.5s infinite; }
.status-stopped { background: rgba(107,114,128,0.15); color: #6b7280; }
.status-stopped::before { background: #6b7280; }
.status-suspended { background: rgba(239,68,68,0.15); color: #ef4444; }
.status-suspended::before { background: #ef4444; }
.status-error { background: rgba(239,68,68,0.15); color: #ef4444; }
.status-error::before { background: #ef4444; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Tables */
.table-custom {
    width: 100%;
    border-collapse: collapse;
}
.table-custom th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.table-custom td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.table-custom tbody tr:hover {
    background: var(--card-hover);
}

/* Forms */
.form-control-dark {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}
.form-control-dark:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
    outline: none;
}
.form-control-dark::placeholder { color: var(--text-muted); }
.form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }

select.form-control-dark {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
textarea.form-control-dark { resize: vertical; min-height: 120px; }

/* Progress Bar */
.progress-custom {
    background: var(--border);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}
.progress-custom .bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    transition: width 1s ease;
}

/* Alert */
.alert-custom {
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid;
}
.alert-success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: #10b981; }
.alert-danger { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); color: #ef4444; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.2); color: #f59e0b; }
.alert-info { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.2); color: #3b82f6; }

/* Utilities */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}
.glow-line {
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Blog Single */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.9;
}
.blog-content h2, .blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.blog-content p { margin-bottom: 1.2rem; }
.blog-content code {
    background: rgba(108,92,231,0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}
.blog-content pre {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.blog-content img { max-width: 100%; border-radius: var(--radius-sm); }
.blog-content ul, .blog-content ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: 0.3rem; }

/* Logo SVG */
.logo-svg { height: 36px; width: auto; }

/* Install Progress Animation */
.install-step { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; }
.install-step .step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.install-step.completed .step-dot { background: rgba(16,185,129,0.15); color: #10b981; }
.install-step.active .step-dot { background: var(--gradient); color: #fff; animation: pulse 1.5s infinite; }
.install-step.pending .step-dot { background: var(--border); color: var(--text-muted); }

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .section { padding: 60px 0; }
    .content-area { padding: 1rem; }
}
