:root {
    --bg-dark: #000000;
    --card-bg: rgba(18, 18, 18, 0.7);
    --accent: #0078d4;
    --accent-hover: #106ebe;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --glass-border: rgba(255, 255, 255, 0.08);
    --success: #107c10;
    --warning: #ffb900;
    --danger: #d13438;
    --card-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: #000000;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 120, 212, 0.12) 0px, transparent 40%),
        radial-gradient(at 100% 0%, rgba(121, 64, 255, 0.08) 0px, transparent 40%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glassmorphism Refinement */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Price Badge */
.price-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid rgba(0, 120, 212, 0.2);
}

/* Auth Container */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

p.subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Dashboard Layout */
.navbar {
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-content {
    padding: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.status-active { background: rgba(16, 124, 16, 0.15); color: #4ec94e; border: 1px solid rgba(16, 124, 16, 0.3); }
.status-pending { background: rgba(255, 185, 0, 0.15); color: #ffca43; border: 1px solid rgba(255, 185, 0, 0.3); }
.status-expired { background: rgba(209, 52, 56, 0.15); color: #ff5f63; border: 1px solid rgba(209, 52, 56, 0.3); }

.specs-list {
    list-style: none;
    margin-top: 0.5rem;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.specs-list li span:first-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.specs-list li span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* Forms & Inputs */
.input-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input, select {
    width: 100%;
    padding: 0.85rem 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}

button {
    width: 100%;
    padding: 0.85rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.4);
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    width: auto;
    padding: 0.6rem 1.2rem;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--danger);
    color: var(--danger);
}

/* Table */
.payment-history {
    margin-top: 1rem;
    width: 100%;
    border-collapse: collapse;
}

.payment-history th, .payment-history td {
    text-align: left;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.payment-history th {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hidden { display: none !important; }

/* PayPal Buttons */
.paypal-btn-container {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
}

.paypal-btn-container input[type="image"] {
    transition: transform 0.3s;
    border-radius: 8px;
}

.paypal-btn-container input[type="image"]:hover {
    transform: scale(1.05) translateY(-2px);
}

.admin-panel {
    border: 1px solid rgba(0, 120, 212, 0.3);
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}
