@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #00ffcc;
    --secondary-color: #ff007f;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background: var(--bg-dark);
    background-image: radial-gradient(circle at 15% 50%, rgba(0, 255, 204, 0.15), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(255, 0, 127, 0.15), transparent 25%);
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-main);
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Classes */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0099cc);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 15px var(--primary-color);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-success {
    background: var(--success);
    color: white;
}

/* Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Header */
header {
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover { opacity: 0.85; }

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 0 12px rgba(0,255,204,0.3);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    line-height: 1.1;
}

/* Login page logo */
.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.login-logo img {
    height: 90px;
    width: auto;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 0 24px rgba(0,255,204,0.25);
    margin-bottom: 12px;
}

.login-logo span {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0,255,204,0.5);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Navigation & Header Actions */
.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: var(--primary-color);
}
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.balances {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.balance {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.balance .currency-icon {
    font-size: 11px;
    background: rgba(0, 255, 204, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    color: var(--primary-color);
}
.balance.syp-balance {
    color: var(--secondary-color);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 10px;
}
.balance.syp-balance .currency-icon {
    background: rgba(255, 0, 127, 0.2);
    color: var(--secondary-color);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}
.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: 0.3s;
}

.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    .nav-container {
        position: fixed;
        top: 0;
        right: -300px;
        width: 260px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transition: 0.3s ease-in-out;
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
        gap: 30px;
    }
    .nav-container.active {
        right: 0;
    }
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
    }
    .user-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
    }
    .balances {
        flex-direction: column;
        align-items: flex-start;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 15px;
    }
    .balance.syp-balance {
        border-right: none;
        padding-right: 0;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

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

/* Cards */
.service-card {
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 204, 0.2);
    border-color: var(--primary-color);
}

.service-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Package Card */
.package-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}
.package-card.selected {
    border-color: var(--primary-color);
    background: rgba(0, 255, 204, 0.1);
}
.package-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.package-card .price {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 16px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    color: var(--text-muted);
    font-weight: 600;
}

/* Status Badges */
.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}

.status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.status.accepted {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Utilities */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    width: 100%;
    max-width: 500px;
    position: relative;
}
.close-btn {
    position: absolute;
    top: 15px; left: 15px;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-muted);
}
.close-btn:hover { color: white; }
