/* ==========================
   RESET & FONTS
   ========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Vazirmatn', Tahoma, sans-serif; 
    background: #0a0a0f; /* کاملاً تیره */
    background-attachment: fixed;
    color: #fff; 
    min-height: 100vh; 
    direction: rtl; 
    line-height: 1.7;
}
a { color: #f0b90b; text-decoration: none; transition: color 0.3s; }
a:hover { color: #ffd700; }

/* ==========================
   GLASS AUTH PAGES
   ========================== */
.auth-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    padding: 20px; 
}
.auth-card { 
    background: rgba(255,255,255,0.05); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border-radius: 35px; 
    padding: 45px 35px; 
    width: 100%; 
    max-width: 430px; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.1);
    animation: slideUp 0.6s ease;
    border: 1px solid rgba(255,215,0,0.15);
}
@keyframes slideUp { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.trust-section { 
    display: flex; 
    justify-content: space-around; 
    margin-bottom: 30px; 
    font-size: 15px; 
    color: #f0b90b;
    background: rgba(255,215,0,0.08);
    border-radius: 15px;
    padding: 12px 10px;
}
.stars i { color: #ffd700; margin: 0 2px; }
.auth-card h2 { 
    text-align: center; 
    margin-bottom: 25px; 
    color: #ffd700; 
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.subtitle { text-align: center; color: #ccc; margin-bottom: 20px; font-size: 15px; }
.input-group { position: relative; margin-bottom: 22px; }
.input-group i { 
    position: absolute; 
    right: 18px; 
    top: 16px; 
    color: #aaa; 
    font-size: 18px; 
    transition: color 0.3s;
}
.input-group input { 
    width: 100%; 
    padding: 15px 50px 15px 18px; 
    border-radius: 14px; 
    border: none; 
    background: rgba(255,255,255,0.1); 
    color: #fff; 
    font-size: 16px; 
    transition: all 0.3s;
    border: 1px solid transparent;
}
.input-group input:focus { 
    outline: none; 
    background: rgba(255,255,255,0.18); 
    box-shadow: 0 0 0 3px rgba(255,215,0,0.25);
    border-color: #ffd700;
}
.input-group input:focus + i,
.input-group input:focus ~ i { color: #ffd700; }
.password-group .toggle-password { right: auto; left: 18px; cursor: pointer; }
button { 
    width: 100%; 
    padding: 16px; 
    background: linear-gradient(135deg, #ffb347, #ffcc33);
    color: #1a1a2e; 
    border: none; 
    border-radius: 14px; 
    font-weight: 700; 
    font-size: 17px; 
    cursor: pointer; 
    transition: all 0.3s;
    letter-spacing: 0.5px;
}
button:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 25px rgba(255,180,0,0.3);
    background: linear-gradient(135deg, #ffcc33, #ffb347);
}
.message { 
    padding: 15px 20px; 
    border-radius: 14px; 
    margin-bottom: 20px; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 10px;
    animation: fadeIn 0.4s;
}
.error { background: #e74c3c; color: #fff; }
.success { background: #27ae60; color: #fff; }
.switch-page { text-align: center; margin-top: 20px; font-size: 15px; }
.switch-page a { color: #ffd700; font-weight: bold; }

/* ==========================
   MAIN HEADER
   ========================== */
.main-header { 
    background: rgba(0,0,0,0.55); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 16px 45px; 
    position: sticky; 
    top: 0; 
    z-index: 100;
    border-bottom: 1px solid rgba(255,215,0,0.15);
}
.logo { 
    font-size: 24px; 
    font-weight: 800; 
    color: #ffd700; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}
.logout-btn { 
    background: #ff4d4d; 
    padding: 12px 28px; 
    border-radius: 30px; 
    color: #fff; 
    font-weight: 600;
    transition: 0.3s;
}
.logout-btn:hover { background: #ff1a1a; transform: scale(1.05); }

/* ==========================
   DASHBOARD CONTENT
   ========================== */
.dashboard-content { padding: 40px; max-width: 1250px; margin: auto; }
.balance-card { 
    background: linear-gradient(145deg, rgba(255,215,0,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px; 
    padding: 30px 35px; 
    text-align: center; 
    font-size: 28px; 
    margin-bottom: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 25px; 
    flex-wrap: wrap;
    border: 1px solid rgba(255,215,0,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.balance-card i { font-size: 42px; color: #ffd700; }
.btn { 
    background: linear-gradient(135deg, #ffb347, #ffcc33);
    color: #1a1a2e; 
    padding: 14px 30px; 
    border-radius: 35px; 
    display: inline-block; 
    font-weight: 700; 
    transition: all 0.3s;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(255,180,0,0.2);
}
.btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(255,180,0,0.35);
}

/* Dashboard menu */
.dashboard-menu { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 22px; 
    margin: 35px 0; 
}
.menu-item { 
    background: rgba(255,255,255,0.08); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    padding: 28px 15px; 
    border-radius: 22px; 
    text-align: center; 
    transition: all 0.3s ease; 
    color: #fff; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
    font-size: 16px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
}
.menu-item i { font-size: 2.4em; color: #ffd700; }
.menu-item:hover, .menu-item.active { 
    background: #ffd700; 
    color: #1a1a2e; 
    transform: translateY(-6px); 
    box-shadow: 0 18px 35px rgba(255,215,0,0.25);
    border-color: transparent;
}
.menu-item:hover i, .menu-item.active i { color: #1a1a2e; }

.back-btn { 
    display: inline-block; 
    background: rgba(255,255,255,0.12); 
    color: #ffd700; 
    padding: 12px 28px; 
    border-radius: 30px; 
    margin-bottom: 25px; 
    font-weight: 600; 
    transition: 0.3s;
    border: 1px solid rgba(255,215,0,0.3);
}
.back-btn:hover { background: #ffd700; color: #1a1a2e; }

/* ==========================
   SEARCH BOX
   ========================== */
.search-box {
    position: relative;
    max-width: 420px;
    margin: 0 auto 35px auto;
}
.search-box i {
    position: absolute;
    right: 18px;
    top: 16px;
    color: #aaa;
    font-size: 18px;
}
.search-box input {
    width: 100%;
    padding: 16px 50px 16px 18px;
    border-radius: 16px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    transition: 0.3s;
    border: 1px solid transparent;
}
.search-box input:focus {
    outline: none;
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.2);
    border-color: #ffd700;
}

/* ==========================
   SERVICES & ORDERS
   ========================== */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); 
    gap: 28px; 
}
.service-card { 
    background: rgba(255,255,255,0.07); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px; 
    padding: 30px; 
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.service-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 25px 45px rgba(0,0,0,0.4);
    background: rgba(255,255,255,0.12);
}
.service-card .price { color: #ffd700; font-weight: 700; font-size: 20px; margin: 12px 0; }
.total-price { 
    background: rgba(255,215,0,0.15); 
    padding: 14px; 
    border-radius: 14px; 
    margin: 18px 0; 
    font-weight: 700; 
    color: #ffd700; 
    text-align: center;
    font-size: 18px;
}
.order-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ==========================
   RESPONSIVE TABLES
   ========================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 25px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}
.table-responsive table {
    min-width: 700px;
    width: 100%;
    white-space: nowrap;
}
.orders-table,
.transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    overflow: hidden;
}
.orders-table th, .orders-table td { 
    padding: 16px 14px; 
    text-align: right; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.orders-table th { background: rgba(0,0,0,0.4); color: #ffd700; font-weight: 600; }
.status-badge { 
    padding: 6px 16px; 
    border-radius: 25px; 
    font-size: 13px; 
    font-weight: 600;
}
.status-red { background: #e74c3c; color: #fff; }
.status-yellow { background: #f39c12; color: #000; }
.status-green { background: #2ecc71; color: #fff; }

/* ==========================
   CHARGE & CARDS
   ========================== */
.charge-methods { display: flex; gap: 28px; flex-wrap: wrap; }
.method-card { 
    background: rgba(255,255,255,0.07); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    padding: 32px 25px; 
    border-radius: 24px; 
    flex: 1; 
    min-width: 270px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}
.method-card:hover { background: rgba(255,255,255,0.12); }

.invite-box, .cooperation-content, .channel-box { 
    background: rgba(255,255,255,0.06); 
    backdrop-filter: blur(12px);
    padding: 30px; 
    border-radius: 24px; 
    margin-top: 25px;
    border: 1px solid rgba(255,255,255,0.08);
}
.invite-link { display: flex; gap: 12px; margin: 18px 0; }
.invite-link input { 
    flex: 1; 
    padding: 14px; 
    border-radius: 14px; 
    border: none; 
    background: rgba(255,255,255,0.12); 
    color: #fff;
    font-size: 16px;
}
.video-placeholder, .video-container { 
    background: rgba(0,0,0,0.3); 
    padding: 50px; 
    text-align: center; 
    border-radius: 20px; 
    margin: 25px 0; 
    font-size: 18px;
    overflow: hidden;
}

/* ==========================
   ADMIN PANEL
   ========================== */
.admin-panel { background: #f0f2f5; color: #333; }
.admin-header { 
    background: linear-gradient(135deg, #1a1a2e, #16213e); 
    padding: 18px 45px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: #fff;
}
.admin-header .logout-btn { background: #e74c3c; padding: 10px 25px; border-radius: 30px; }
.admin-container { display: flex; min-height: calc(100vh - 65px); }
.sidebar { 
    background: #1a1a2e; 
    padding: 25px 15px; 
    width: 240px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}
.sidebar a { 
    display: block; 
    color: #ccc; 
    padding: 14px 18px; 
    margin-bottom: 10px; 
    border-radius: 14px; 
    transition: 0.3s; 
    font-weight: 500;
    font-size: 15px;
}
.sidebar a:hover, .sidebar a.active { 
    background: #ffd700; 
    color: #1a1a2e; 
    font-weight: 700;
}
.admin-content { 
    flex: 1; 
    padding: 35px 40px; 
    background: #fff; 
    border-radius: 25px 0 0 0;
    box-shadow: -5px 0 20px rgba(0,0,0,0.03);
}
.admin-content h3 { margin-bottom: 25px; color: #1a1a2e; font-weight: 700; }
.admin-form { 
    background: #f8f9fa; 
    padding: 28px; 
    border-radius: 20px; 
    margin-bottom: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.admin-form .input-group { margin-bottom: 20px; }
.admin-form input, .admin-form select { 
    width: 100%; 
    padding: 14px; 
    border-radius: 14px; 
    border: 1px solid #ddd; 
    color: #333; 
    background: #fff;
    font-size: 15px;
}
.admin-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #fff; 
    border-radius: 18px; 
    overflow: hidden; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.admin-table th { 
    background: #1a1a2e; 
    color: #fff; 
    padding: 16px 14px; 
    font-weight: 600;
}
.admin-table td { 
    padding: 16px 14px; 
    border-bottom: 1px solid #eee;
    color: #333;
}
.admin-table tr:hover td { background: #f8f9fa; }
.btn-small { 
    background: #2c3e50; 
    color: #fff; 
    padding: 8px 17px; 
    border-radius: 10px; 
    font-size: 14px; 
    margin: 2px; 
    border: none; 
    cursor: pointer; 
    transition: 0.3s; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px;
}
.btn-small:hover { background: #1a252f; }
.btn-small.danger { background: #e74c3c; }
.btn-small.danger:hover { background: #c0392b; }
.cancel { background: #95a5a6; color: #fff; }
.stats { display: flex; gap: 25px; margin-bottom: 35px; flex-wrap: wrap; }
.stat-card { 
    background: linear-gradient(135deg, #2c3e50, #3498db); 
    color: #fff; 
    padding: 30px 25px; 
    border-radius: 22px; 
    flex: 1; 
    min-width: 200px;
    text-align: center; 
    font-size: 22px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.stat-card i { font-size: 2.5em; margin-bottom: 12px; }
.user-info { 
    background: #f8f9fa; 
    padding: 25px; 
    border-radius: 20px; 
    margin-top: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.user-info p { margin: 12px 0; font-size: 16px; color: #333; }
.inline-form { display: flex; gap: 12px; align-items: center; }

/* ==========================
   TABS & TRANSACTIONS TABLE
   ========================== */
.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.tab {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    padding: 12px 26px;
    border-radius: 32px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 15px;
    width: auto;
    border: 1px solid rgba(255,255,255,0.2);
}
.tab.active, .tab:hover {
    background: linear-gradient(135deg, #ffb347, #ffcc33);
    color: #1a1a2e;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(255,180,0,0.3);
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    overflow: hidden;
}
.transactions-table th, .transactions-table td {
    padding: 15px 12px;
    text-align: right;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: #fff;
}
.transactions-table th {
    background: rgba(0,0,0,0.4);
    font-weight: 600;
    color: #ffd700;
}
.positive { color: #2ecc71; font-weight: 600; }
.negative { color: #e74c3c; font-weight: 600; }

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 768px) {
    .main-header { padding: 15px 20px; flex-direction: column; gap: 10px; }
    .dashboard-content { padding: 25px 15px; }
    .dashboard-menu { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 15px; }
    .menu-item { padding: 20px 10px; font-size: 14px; }
    .balance-card { flex-direction: column; font-size: 22px; }
    .admin-container { flex-direction: column; }
    .sidebar { width: 100%; display: flex; overflow-x: auto; padding: 15px; }
    .sidebar a { flex: 0 0 auto; margin-left: 8px; }
    .admin-content { border-radius: 0; padding: 25px; }
    .orders-table, .transactions-table, .admin-table { display: block; overflow-x: auto; }

    .table-responsive table th,
    .table-responsive table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    .table-responsive table th {
        font-size: 12px;
    }
}

/* ==========================
   DARK STATIC ENHANCEMENTS (انیمیشن‌ها حذف شدند)
   ========================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,215,0,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240,185,11,0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(15,52,96,0.3) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.auth-card::after,
.balance-card::after,
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.auth-card,
.balance-card,
.service-card {
    position: relative;
    overflow: hidden;
}

.menu-item {
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.4),
        -2px -2px 10px rgba(255, 215, 0, 0.05),
        inset 0 0 20px rgba(255, 215, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-item:hover,
.menu-item.active {
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.4),
        0 0 50px rgba(255, 180, 0, 0.2),
        0 15px 35px rgba(0, 0, 0, 0.5);
}

.logo {
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 180, 0, 0.3),
        0 0 45px rgba(255, 215, 0, 0.15);
}

button,
.btn {
    position: relative;
    box-shadow: 
        0 8px 20px rgba(255, 180, 0, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 -3px 6px rgba(0, 0, 0, 0.2),
        inset 0 3px 6px rgba(255, 255, 255, 0.15);
}

button:hover,
.btn:hover {
    box-shadow: 
        0 15px 35px rgba(255, 180, 0, 0.45),
        0 8px 16px rgba(0, 0, 0, 0.5),
        inset 0 -3px 8px rgba(0, 0, 0, 0.3),
        inset 0 3px 8px rgba(255, 255, 255, 0.2);
}

.balance-card,
.auth-card,
.service-card {
    border-left: 2px solid rgba(255, 215, 0, 0.25);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.status-green {
    position: relative;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

.status-yellow {
    position: relative;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
}

.sidebar {
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.02) 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 0;
}

.main-header,
.auth-container,
.dashboard-content,
.admin-panel {
    position: relative;
    z-index: 1;
}
.amount-btn.active {
    background: linear-gradient(135deg, #ffb347, #ffcc33);
    color: #1a1a2e;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}