/* ============ CSS Variables ============ */
:root {
    --primary: #4f5bff;
    --primary-dark: #3b46e0;
    --primary-light: #eef0ff;
    --secondary: #7c6cff;
    --accent: #6b78ff;
    --success: #00b368;
    --warning: #f59e0b;
    --danger: #f43f5e;
    --price: #f5222d;

    --bg-dark: #f7f8fc;
    --bg-card: #ffffff;
    --bg-card-hover: #fbfcff;
    --bg-input: #f4f6fb;

    --text-primary: #1a1d29;
    --text-secondary: #5b6172;
    --text-muted: #9aa0b0;

    --border-color: #eceef4;
    --border-radius: 12px;
    --border-radius-lg: 20px;

    --shadow: 0 6px 24px rgba(31, 41, 84, 0.06);
    --shadow-lg: 0 18px 50px rgba(31, 41, 84, 0.12);

    --transition: all 0.3s ease;
    --font-main: 'Noto Sans SC', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============ Reset & Base ============ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============ Background Effects ============ */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(79, 91, 255, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 10%, rgba(124, 108, 255, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 100%, rgba(107, 120, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ============ Container ============ */
.container {
    max-width: 1660px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============ Header / Navbar ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(236, 238, 244, 0.8);
    padding: 12px 0;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(31, 41, 84, 0.06);
    border-bottom-color: transparent;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.logo-icon {
    position: relative;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 6px 14px rgba(79, 91, 255, 0.28);
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
    pointer-events: none;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--primary);
    background: transparent;
}

.nav-links a:hover::after {
    width: 22px;
}

.nav-links a.active {
    color: var(--primary);
    background: transparent;
    font-weight: 600;
}

.nav-links a.active::after {
    width: 22px;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-auth .btn-sm {
    padding: 8px 18px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 6px 18px rgba(79, 91, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(79, 91, 255, 0.35);
    color: white;
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #ff3333;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============ Hero Section ============ */
.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    background-image: url('/static/img/yunfuwuqi-1-1_132ae95.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 640px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 28px;
    transition: var(--transition);
}

.hero-tag:hover {
    background: #e2e6ff;
    color: var(--primary-dark);
    transform: translateX(4px);
}

.hero-tag-arrow {
    font-size: 1.2rem;
    line-height: 1;
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 0 36px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 4px 8px;
    transition: var(--transition);
}

.hero-link:hover {
    color: var(--primary);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.hero-feature h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.hero-feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    max-width: none;
}

@media (max-width: 1024px) {
    .hero-content { max-width: 100%; }
}

@media (max-width: 768px) {
    .hero-content { text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-features { max-width: 720px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .hero { padding: 40px 0 30px; }
    .hero h1 { font-size: 2.4rem; }
    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============ Section ============ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ============ Filter Panel ============ */
.filter-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px 28px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.filter-row + .filter-row {
    border-top: 1px dashed var(--border-color);
}

.filter-label {
    flex-shrink: 0;
    width: 56px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-chip {
    padding: 8px 18px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-chip:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.filter-chip.active {
    color: var(--primary);
    background: var(--primary-light);
    border-color: rgba(79, 91, 255, 0.35);
    box-shadow: 0 2px 6px rgba(79, 91, 255, 0.08);
}

@media (max-width: 640px) {
    .filter-panel { padding: 16px; }
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .filter-label { width: auto; }
}

/* ============ Section Tabs ============ */
.section-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.section-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.section-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.section-tab:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.section-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(79, 91, 255, 0.32);
}

.section-tab .tab-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .section-tabs {
        width: 100%;
        justify-content: space-between;
        border-radius: var(--border-radius);
    }
    .section-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

/* ============ Server Cards ============ */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.server-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(31, 41, 84, 0.05);
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.server-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 91, 255, 0.35);
    box-shadow: 0 20px 40px rgba(31, 41, 84, 0.12);
}

.server-card:hover::before { opacity: 1; }

.server-card-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 14px 6px 18px;
    background: linear-gradient(135deg, #ff6b6b, #f43f5e);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom-left-radius: 12px;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.28);
}

.server-card-body {
    padding: 28px 24px 24px;
}

.server-card-title {
    margin-bottom: 16px;
}

.server-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.35;
}

.server-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.server-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.server-tag {
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1.5;
}

.tag-discount {
    background: linear-gradient(135deg, #fff1f0, #ffece8);
    color: #f5222d;
    border: 1px solid #ffccc7;
}

.tag-limit {
    background: #f4f6fb;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.tag-hot {
    background: linear-gradient(135deg, #fff7e6, #ffe7ba);
    color: #d46b08;
    border: 1px solid #ffd591;
}

.server-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
    padding: 18px 0;
    margin-bottom: 18px;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
}

.spec-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.server-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
}

.server-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: var(--price);
    line-height: 1;
}

.price-currency {
    font-size: 1.1rem;
    font-weight: 700;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--price);
    line-height: 1;
}

.price-original {
    margin-left: 6px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-period {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.server-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.btn-block {
    flex: 1;
    padding: 12px 18px;
    font-size: 0.95rem;
}

.btn-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary);
}

.server-stock-tip {
    margin-top: 14px;
    padding: 6px 12px;
    background: #fff7e6;
    color: #d46b08;
    font-size: 0.78rem;
    border-radius: 6px;
    text-align: center;
    border: 1px dashed #ffd591;
}

/* ============ Features Section ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============ Forms ============ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 91, 255, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
}

/* ============ Auth Pages ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-secondary);
}

/* ============ Server Detail Page ============ */
.server-detail {
    padding: 40px 0;
}

.server-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.server-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.server-detail-price {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    min-width: 250px;
}

.server-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.specs-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.specs-table-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.specs-table-row:last-child {
    border-bottom: none;
}

.specs-table-label {
    width: 150px;
    padding: 18px 20px;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-weight: 500;
}

.specs-table-value {
    flex: 1;
    padding: 18px 20px;
    font-weight: 600;
}

.order-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.order-form h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.order-summary {
    background: var(--bg-input);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 25px 0;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.order-summary-row:last-child {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.2rem;
}

/* ============ Orders Page ============ */
.orders-table {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.orders-table th,
.orders-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.orders-table th {
    background: var(--bg-input);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.orders-table tr:hover td {
    background: var(--bg-card-hover);
}

/* ============ Status Badges ============ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.status-paid {
    background: rgba(79, 91, 255, 0.12);
    color: var(--primary);
}

.status-active {
    background: rgba(0, 200, 83, 0.2);
    color: var(--success);
}

.status-expired {
    background: rgba(107, 114, 128, 0.2);
    color: var(--text-muted);
}

.status-cancelled {
    background: rgba(255, 82, 82, 0.2);
    color: var(--danger);
}

/* ============ Footer ============ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 15px;
    line-height: 1.8;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============ Toast Notifications ============ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    min-width: 300px;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-info {
    border-left: 4px solid var(--primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============ Loading ============ */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ Empty State ============ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* ============ Modal ============ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 29, 41, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .server-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .order-form {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding-top: 20px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-auth {
        display: none;
    }
    
    .nav-auth.active {
        display: flex;
        width: 100%;
        justify-content: center;
        padding-top: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .servers-grid {
        grid-template-columns: 1fr;
    }
    
    .server-specs {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: none;
    }
    
    /* Mobile table scroll */
    .table-responsive {
        overflow-x: auto;
    }
    
    .orders-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .server-card {
        padding: 20px;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
}

/* ============ Utilities ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-price { color: var(--price); font-weight: 800; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.d-none { display: none; }
.d-flex { display: flex; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }

.w-100 { width: 100%; }

/* ============ Payment Type Options ============ */
.pay-type-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pay-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.pay-type-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.pay-type-option.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.pay-type-option input {
    display: none;
}

.pay-type-icon {
    font-size: 1.2rem;
}

.pay-type-option span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============ Payment Result Page ============ */
.payment-result {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.payment-result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.payment-result-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.payment-result-icon.success {
    color: var(--success);
}

.payment-result-icon.pending {
    color: var(--warning);
}

.payment-result-icon.error {
    color: var(--danger);
}

.payment-result h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.payment-result p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ============ Status Badge Extended ============ */
.status-badge.status-active {
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
}

.status-badge.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.status-badge.status-paid {
    background: rgba(79, 91, 255, 0.12);
    color: #4f5bff;
}

.status-badge.status-expired {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
}

.status-badge.status-cancelled {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

/* ============ Mobile Optimizations ============ */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-auth {
        display: none;
    }
    
    .nav-auth.active,
    .nav-links.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .modal {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}