/* فونت فارسی */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

/* Slider Section */
.slider-section {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Login Section */
.login-section {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 10px;
}

.logo p {
    color: #6c757d;
    font-size: 14px;
}

.login-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* Register Page Styles */
.register-container {
    max-width: 1200px;
    grid-template-columns: 1fr;
    min-height: auto;
}

.register-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.register-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.register-header p {
    font-size: 16px;
    opacity: 0.9;
}

.service-types {
    padding: 40px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.service-card h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 10px;
}

.service-card p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-register {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.back-link {
    text-align: center;
    padding: 20px;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.back-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Service specific colors */
.service-card.adsl .service-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.service-card.wireless .service-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.service-card.tdlte .service-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.service-card.fdlte .service-icon {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.service-card.ftth .service-icon {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

/* Fiber optic light animation */
.fiber-light {
    animation: fiberPulse 1.5s ease-in-out infinite;
}

.fiber-glow {
    animation: fiberGlow 1s ease-in-out infinite;
}

@keyframes fiberPulse {
    0%, 100% {
        opacity: 0.4;
        stroke-width: 1;
    }
    50% {
        opacity: 1;
        stroke-width: 2.5;
    }
}

@keyframes fiberGlow {
    0%, 100% {
        opacity: 0.5;
        r: 1.5;
        filter: drop-shadow(0 0 2px #ff3333);
    }
    50% {
        opacity: 1;
        r: 2.5;
        filter: drop-shadow(0 0 8px #ff3333) drop-shadow(0 0 15px #ff3333);
    }
}

.service-card.phone .service-icon {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

/* Dashboard & Panel Styles */
body.dashboard,
body.panel {
    background: #f5f7fa;
    padding: 0;
    display: block;
}

.dashboard-wrapper,
.panel-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-header h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 12px;
    opacity: 0.8;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    gap: 15px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    border-right: 4px solid white;
}

.sidebar-menu svg {
    width: 20px;
    height: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-right: 260px;
    transition: all 0.3s;
}

/* Top Bar */
.top-bar {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar h1 {
    font-size: 24px;
    color: #333;
}

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

.user-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 600;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.btn-logout {
    padding: 10px 20px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

.btn-logout:hover {
    background: #ee3344;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* Dashboard Content */
.dashboard-content,
.page-content {
    padding: 30px;
}

/* Stats Cards */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card h3 {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.stat-info {
    font-size: 12px;
    color: #6c757d;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-top: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.action-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.action-card p {
    font-size: 13px;
    color: #6c757d;
}

/* Action Colors */
.action-card.renew .action-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.action-card.traffic .action-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.action-card.jetgam .action-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: #333;
}

/* Renew Page Styles */
.info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-box h2 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.info-box li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.95;
}

.info-box li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 12px;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.filter-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-item label {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-values {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6c757d;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
}

.btn-reset-filter {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

.btn-reset-filter:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* Plans Section */
.plans-section {
    margin-bottom: 40px;
}

.plans-section h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Compact Plans (Suggested & Favorites) */
.plans-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.plan-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.plan-card.compact {
    padding: 15px;
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.plan-header {
    margin-bottom: 15px;
}

.plan-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.plan-card.compact .plan-title {
    font-size: 14px;
    margin-bottom: 8px;
}

.plan-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    flex: 1;
}

.plan-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
}

.plan-detail svg {
    width: 16px;
    height: 16px;
    color: #667eea;
    flex-shrink: 0;
}

.plan-pricing {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.plan-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.price-current {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.price-current.no-discount {
    font-size: 22px;
}

.price-currency {
    font-size: 14px;
    color: #6c757d;
}

.btn-select-plan {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

.btn-select-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Category Section */
.category-section {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-right: 4px solid #667eea;
}

.category-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.category-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 5px;
}

.category-info p {
    font-size: 13px;
    color: #6c757d;
}

.favorite-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #ffd700;
    width: 24px;
    height: 24px;
}

.plan-card.compact .favorite-icon {
    width: 20px;
    height: 20px;
    top: 12px;
    right: 12px;
}

/* Balance Add Page Styles */
.balance-add-section {
    max-width: 1400px;
    margin: 0 auto;
}

.balance-add-header {
    text-align: center;
    margin-bottom: 30px;
}

.balance-add-header .section-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.balance-add-header .section-subtitle {
    font-size: 16px;
    color: #6c757d;
}

.balance-add-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.balance-add-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: center;
}

.balance-add-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.balance-add-image img {
    width: 100%;
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.balance-add-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-with-addon {
    display: flex;
    align-items: stretch;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.input-with-addon:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-with-addon .form-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-size: 16px;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

.input-with-addon .form-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.input-addon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.quick-amounts p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 600;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.amount-btn {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

.amount-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.amount-btn:active {
    transform: translateY(0);
}

.balance-add-form .info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
    border: 2px solid #90caf9;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: start;
    margin: 0;
}

.balance-add-form .info-box svg {
    flex-shrink: 0;
    color: #667eea;
    margin-top: 2px;
}

.balance-add-form .info-box div {
    flex: 1;
}

.balance-add-form .info-box p {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.6;
}

.balance-add-form .info-box p:last-child {
    margin-bottom: 0;
}

.balance-add-form .info-box strong {
    color: #667eea;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Recent Transactions Table */
.recent-transactions {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.recent-transactions h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.transactions-table-wrapper {
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.transactions-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.transactions-table th {
    padding: 15px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.transactions-table tbody tr {
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.transactions-table tbody tr:hover {
    background: #f8f9fa;
}

.transactions-table td {
    padding: 15px;
    text-align: right;
    font-size: 14px;
    color: #333;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.failed {
    background: #f8d7da;
    color: #721c24;
}

.status-badge svg {
    width: 14px;
    height: 14px;
}

.amount-positive {
    color: #28a745;
    font-weight: 600;
}

.amount-failed {
    color: #dc3545;
    font-weight: 600;
}

/* Responsive for Balance Add Page */
@media (max-width: 1200px) {
    .balance-add-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .balance-add-card {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 25px;
    }

    .balance-add-image img {
        max-width: 150px;
    }

    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .recent-transactions {
        padding: 20px 15px;
    }

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

@media (max-width: 480px) {
    .balance-add-header .section-title {
        font-size: 22px;
    }

    .amount-buttons {
        grid-template-columns: 1fr;
    }

    .transactions-table {
        font-size: 12px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 10px 8px;
    }

    .status-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .slider-section {
        min-height: 250px;
        order: -1;
    }

    .login-section {
        padding: 40px 30px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .service-types {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .register-header h1 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 30px 20px;
    }

    .links {
        flex-direction: column;
        align-items: center;
    }

    .register-header {
        padding: 30px 15px 20px;
    }

    .service-card {
        padding: 25px 20px;
    }

    /* Dashboard Responsive */
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .top-bar {
        padding: 15px 20px;
    }

    .top-bar h1 {
        font-size: 18px;
    }

    .user-name span {
        display: none;
    }

    .dashboard-content,
    .page-content {
        padding: 20px 15px;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    /* Renew Page Responsive */
    .info-box ul {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .plans-grid,
    .plans-grid.compact {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
    }
}
