html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #0b0e14;
    --secondary-color: #161b25;
    --accent-color: #e74c3c;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --card-bg: #1c222e;
    --hover-color: #2c3545;
    
    /* Modern UI Colors */
    --sidebar-bg: #0f1219;
    --sidebar-item-active: rgba(231, 76, 60, 0.1);
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(28, 34, 46, 0.7);
    --shadow-soft: 0 8px 24px rgba(0,0,0,0.2);
}

/* Language Selector */
.lang-select {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 5px;
    margin-right: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-select:hover {
    color: var(--text-color);
    border-color: var(--accent-color);
}

.lang-select option {
    background: var(--secondary-color);
    color: var(--text-color);
}

/* Animations */

/* Modern Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--primary-color);
}

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.sidebar-brand {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-color);
}

.sidebar-menu {
    list-style: none;
    padding: 0 1rem;
    margin: 0;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: var(--sidebar-item-active);
    color: var(--accent-color);
}

.sidebar-menu a i {
    width: 24px;
    margin-right: 10px;
    font-size: 1.1rem;
    text-align: center;
}

.main-content {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
    background: radial-gradient(circle at top left, #1a1f2b 0%, var(--primary-color) 40%);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

.welcome-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Modern Cards */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.overview-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(231, 76, 60, 0.3);
}

.overview-card h2 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-link:hover {
    color: var(--accent-color);
}

.btn-link i {
    margin-left: 8px;
    transition: margin 0.3s;
}

.btn-link:hover i {
    margin-left: 12px;
}

/* Modern Buttons */
.btn-manage {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-manage:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Store Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 2rem;
}

.plan-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.plan-card:hover {
    transform: translateY(-7px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-soft);
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 1rem 0;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    min-height: 40px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    width: 100%;
    text-align: left;
}

.plan-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.btn-order {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-order:hover {
    background: #c0392b;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Dashboard Service Cards (Specific) */
.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.service-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-pending {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.service-details {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.service-details p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.service-actions {
    display: flex;
    gap: 10px;
}

/* Profile Section */
.profile-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    border: 1px solid var(--border-color);
}

.info-group {
    margin-bottom: 1.5rem;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.empty-state {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    animation: fadeIn 0.5s ease-out;
}

.login-bg {
    background-image: linear-gradient(rgba(11, 14, 20, 0.9), rgba(11, 14, 20, 0.9)), url('../icons/a_3d5184da9fc819d5aff8e490744c5a22_1.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.navbar {
    background-color: rgba(11, 14, 20, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2a2a2a;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i { color: var(--accent-color); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-color);
}

.btn-login {
    background-color: var(--accent-color);
    color: #000;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: scale(1.05);
}

.hero {
    padding: 100px 0;
    background: radial-gradient(circle at top right, #1f2736 0%, var(--primary-color) 60%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-color);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--text-color);
    color: #000;
}

.btn-primary:hover {
    background-color: #ddd;
}

.btn-secondary {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.2);
}

.trusted {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trusted i { color: #ffb30e; }

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.services-section {
    padding: 80px 0;
}

.category-section {
    margin-bottom: 60px;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 30px;
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
    /* Dashboard specific override if needed, but this is for landing */
}

/* Status Page Styles */
.status-section {
    padding: 4rem 0;
}
.status-card {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.status-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
}
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.status-online {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.status-offline {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}
.node-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.node-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.usage-bar {
    background: rgba(255,255,255,0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}
.usage-fill {
    background: var(--accent-color);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}
.usage-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 2px;
    margin-top: 10px;
}
.system-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.system-stat:last-child {
    border-bottom: none;
}

/* Dashboard Category Title */
.main-content .category-title {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-left: none;
    padding-left: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--accent-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 15px;
}

.service-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.service-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-specs {
    background-color: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #ccc;
}

.service-specs div {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-btn {
    width: 100%;
    padding: 15px;
    background: var(--text-color);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
    display: block;
    box-sizing: border-box;
    text-decoration: none;
}

.select-btn:hover {
    background: var(--accent-color);
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 5% auto; 
    width: 500px;
    max-width: 90%;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 { margin: 0; font-size: 1.5rem; }

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover { color: #fff; }

.modal-body {
    padding: 30px;
}

.service-summary {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.form-group { margin-bottom: 20px; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ccc;
}

input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    background: #0b0e14;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    transition: border 0.3s;
}

input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.pay-btn {
    background: #ffc439;
    color: #000;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

.pay-btn:hover { background: #e6b233; }

.secure-notice {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
}

footer {
    background: #0b0e14;
    border-top: 1px solid #222;
    padding: 40px 0;
    text-align: center;
    color: #666;
    margin-top: 50px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.category-card, .service-card {
    opacity: 0; 
    animation: fadeInUp 0.6s ease-out forwards;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text { padding-right: 0; margin-bottom: 40px; }
    .hero-btns { justify-content: center; }
    .trusted { justify-content: center; }
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    
    /* Dashboard Mobile */
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
    }
    .sidebar-brand {
        justify-content: center;
    }
    .main-content {
        padding: 1.5rem;
    }
}

.hero-text img {
    width: 50px;
    height: auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.category-card {
    background-color: var(--card-bg);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 40px;
    transition: transform 0.3s, border-color 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.category-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.category-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.section-header h1 {
    font-size: 2.5rem;
    margin: 0;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent-color);
}
