/* ============================================
   ZenoHost.xyz — Client Area Styles
   ============================================ */

/* ---------- Auth Pages ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 24px;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition);
}

.auth-form input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.auth-form input::placeholder {
    color: var(--text-muted);
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.auth-footer a {
    color: var(--accent-1);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* ---------- Dashboard Navbar ---------- */
.dash-navbar {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.dash-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.dash-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-user {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-user i {
    font-size: 1.1rem;
    color: var(--accent-1);
}

/* ---------- Dashboard Main ---------- */
.dash-main {
    min-height: calc(100vh - 64px - 60px);
    padding: 32px 0 60px;
    background: var(--bg-primary);
}

/* Welcome */
.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding: 28px 32px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}

.dash-welcome h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.dash-welcome p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Stats */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dash-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.dash-stat-card:hover {
    border-color: var(--border-glow);
}

.dash-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    color: var(--accent-1);
    flex-shrink: 0;
}

.dash-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
}

.dash-stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Sections */
.dash-section {
    margin-bottom: 32px;
}

.dash-section-header {
    margin-bottom: 20px;
}

.dash-section-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-section-header h2 i {
    color: var(--accent-1);
}

/* Server Cards */
.dash-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.dash-server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.dash-server-card:hover {
    border-color: var(--border-glow);
}

.dash-server-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dash-server-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-server-status.online {
    background: var(--accent-4);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.dash-server-status.suspended {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.dash-server-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.dash-server-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dash-server-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 6px 0;
}

.dash-server-detail .label {
    color: var(--text-muted);
}

.dash-server-detail .value {
    font-weight: 600;
}

/* Empty State */
.dash-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.dash-empty i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.dash-empty h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dash-empty p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

/* Quick Links */
.dash-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dash-quick-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
}

.dash-quick-link:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.dash-quick-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    color: var(--accent-1);
}

.dash-quick-link:hover .dash-quick-icon {
    background: var(--gradient-primary);
    color: #fff;
}

/* Dashboard Footer */
.dash-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
}

.dash-footer p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .auth-card {
        padding: 28px 20px;
    }

    .auth-form .form-row {
        grid-template-columns: 1fr;
    }

    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-welcome {
        flex-direction: column;
        text-align: center;
    }

    .dash-welcome h1 {
        font-size: 1.2rem;
    }

    .dash-nav-right {
        gap: 10px;
    }

    .dash-user span:not(i) {
        display: none;
    }
}

@media (max-width: 480px) {
    .dash-stats {
        grid-template-columns: 1fr;
    }

    .dash-quick-links {
        grid-template-columns: 1fr;
    }
}

/* ---------- Order Page ---------- */
.order-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

.order-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
}

.order-form-wrapper h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-form-wrapper h2 i {
    color: #7c3aed;
}

.order-form-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

select.form-input {
    cursor: pointer;
    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 14px center;
    padding-right: 36px;
}

.required {
    color: #ef4444;
    margin-left: 2px;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-success {
    text-align: center;
    padding: 40px 20px;
}

.auth-success i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 16px;
}

.auth-success h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-success p {
    color: #94a3b8;
    font-size: 0.92rem;
}

/* Order Summary Sidebar */
.order-summary {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 100px;
    overflow: hidden;
}

.order-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    border-radius: 16px 16px 0 0;
}

.order-summary h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
}

.order-summary h3 i {
    color: #7c3aed;
    font-size: 1rem;
}

.order-summary-game {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 12px;
    margin-bottom: 20px;
}

.order-summary-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    border-radius: 12px;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
}

.order-summary-game div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-summary-game strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: #e2e8f0;
}

.order-summary-game span {
    font-size: 0.82rem;
    color: #94a3b8;
}

.order-summary-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.order-summary-specs li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.88rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.order-summary-specs li:last-child {
    border-bottom: none;
}

.order-summary-specs li i {
    color: #10b981;
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.order-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    margin-top: 8px;
}

.order-summary-total span {
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 500;
}

.order-summary-total strong {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

.order-summary-total strong small {
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .order-form-wrapper {
        padding: 24px;
    }
}