:root {
    --primary: #6B4EE6;
    --primary-gradient: linear-gradient(135deg, #9b7cf6 0%, #6045e2 100%);
    --text-dark: #2a2559;
    --text-muted: #8b87a4;
    --bg-light: #f4f2fb;
    --border-color: #e5e2f0;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.8;
}
.shape-1 { width: 400px; height: 400px; background-color: #e6dfff; top: -100px; right: -100px; }
.shape-2 { width: 500px; height: 500px; background-color: #e3deff; bottom: -150px; left: -150px; }
.shape-3 { width: 300px; height: 300px; background-color: #f0ebff; top: 40%; left: 10%; }

/* ===== صفحه ورود (توسط ماژول login ساخته می‌شود) ===== */
.login-container {
    position: relative;
    z-index: 10;
    background-color: var(--white);
    width: 400px;
    max-width: 94%;
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(107, 78, 230, 0.08);
    padding: 40px 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-container .icon-header {
    margin-bottom: 15px;
    width: 110px;
    height: 110px;
}

.login-container .title {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
    cursor: pointer;
}

.login-container .subtitle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.login-container .subtitle-line {
    width: 30px;
    height: 1px;
    background-color: var(--border-color);
    position: relative;
}
.login-container .subtitle-line::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #c8c4df;
    border-radius: 50%;
    top: -1.5px;
}
.login-container .subtitle-line.right::after { left: 0; }
.login-container .subtitle-line.left::after { right: 0; }

.login-container .subtitle {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.login-container .form-group {
    width: 100%;
    position: relative;
    margin-bottom: 15px;
}

.login-container .form-control {
    width: 100%;
    padding: 16px 45px 16px 45px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    font-size: 14px;
    color: var(--text-dark);
    background-color: #fcfbff;
    transition: all 0.3s ease;
    outline: none;
}
.login-container .form-control::placeholder { color: #b5b2c9; }
.login-container .form-control:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(107, 78, 230, 0.1);
}

.login-container .input-icon-right {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a4a0c0;
    font-size: 18px;
}

.login-container .input-icon-left {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a4a0c0;
    font-size: 18px;
    cursor: pointer;
}

.login-container .options-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 25px;
    font-size: 13px;
}

.login-container .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.login-container .custom-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #fcfbff;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container .custom-checkbox:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.login-container .custom-checkbox:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 10px;
}

.login-container .forgot-password {
    color: #9b7cf6;
    text-decoration: none;
    transition: color 0.3s;
}
.login-container .forgot-password:hover { color: var(--primary); }

.login-container .btn {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.login-container .btn:active { transform: scale(0.98); }

.login-container .btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(107, 78, 230, 0.25);
    margin-bottom: 25px;
}
.login-container .btn-primary:hover { box-shadow: 0 10px 25px rgba(107, 78, 230, 0.35); }

.login-container .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-container .error-message {
    color: #e74c3c;
    background: #fde8e8;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    display: none;
}
.login-container .error-message.show { display: block; }

.login-container .success-message {
    color: #27ae60;
    background: #e8f8f0;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    display: none;
}
.login-container .success-message.show { display: block; }

.login-container .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
    margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.login-container .footer-illustration {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.login-container .footer-text {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
}

/* ===== استایل‌های داشبورد ===== */
.app-container {
    display: none;
    width: 100%;

    background: linear-gradient(180deg, #faf9ff 0%, #f3f3f9 100%);
    position: relative;
 
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0 auto;
}

.app-container.active {
    display: block;
}

.app-container .scrollable-content {
    height: calc(100vh - 140px);
    overflow-y: auto;
    padding-bottom: 10px;
}

.app-container .scrollable-content::-webkit-scrollbar {
    width: 3px;
}
.app-container .scrollable-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.app-container .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px 15px;
    flex-shrink: 0;
}
.app-container .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.app-container .profile-icon {
    width: 48px;
    height: 48px;
    background-color: #f0ecff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b5ce7;
    font-size: 1.5rem;
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(107, 92, 231, 0.1);
}
.app-container .user-info h1 {
    font-size: 1.1rem;
    color: #1c1c28;
    margin-bottom: 2px;
}
.app-container .user-info p {
    font-size: 0.75rem;
    color: #7b7b8a;
}
.app-container .header-left {
    display: flex;
    gap: 10px;
}
.app-container .icon-btn {
    width: 38px;
    height: 38px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c1c28;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    font-size: 1.1rem;
    cursor: pointer;
}

.app-container .balance-card {
    background: white;
    border-radius: 24px;
    margin: 10px 20px 25px;
    box-shadow: 0 8px 24px rgba(107, 92, 231, 0.06);
    text-align: center;
    overflow: hidden;
}
.app-container .balance-section {
    padding: 24px 20px;
}
.app-container .balance-title {
    font-size: 1rem;
    color: #1c1c28;
    font-weight: 700;
    margin-bottom: 12px;
}
.app-container .balance-amount {
    font-size: 1.7rem;
    color: #1a1a2e;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    direction: ltr;
}
.app-container .balance-currency {
    font-size: 1rem;
    color: #1c1c28;
    font-weight: 400;
    direction: rtl;
}
.app-container .balance-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #eee, transparent);
    margin: 0;
}
.app-container .balance-section.alt {
    background-color: #fcfbfe;
}

.app-container .stats-container {
    display: flex;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 25px;
}
.app-container .stat-card {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 18px 10px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.app-container .circular-progress {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: conic-gradient(#7c72f1 var(--p), #ecebfc 0deg);
}
.app-container .circular-progress::before {
    content: "";
    position: absolute;
    inset: 7px;
    background-color: white;
    border-radius: 50%;
}
.app-container .progress-value {
    position: relative;
    font-size: 1.15rem;
    font-weight: 900;
    color: #1c1c28;
}
.app-container .stat-text {
    font-size: 0.7rem;
    color: #2b2b36;
    line-height: 1.5;
    font-weight: 700;
}

.app-container .security-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 20px 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eeeafd, #f8f7ff);
    border-radius: 20px;
}
.app-container .security-banner i {
    font-size: 2.2rem;
    color: #7c72f1;
}
.app-container .security-info h3 {
    font-size: 0.9rem;
    color: #1c1c28;
    margin-bottom: 4px;
}
.app-container .security-info p {
    font-size: 0.7rem;
    color: #7b7b8a;
    line-height: 1.6;
}

.app-container .content-area {
    padding: 0 20px 20px;
}

.app-container .cert-list-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.app-container .cert-list-container .list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.app-container .cert-list-container .list-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1c1c28;
}

.app-container .cert-list-container .btn-new {
    padding: 8px 18px;
    border-radius: 12px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-container .search-box {
    display: flex;
    align-items: center;
    background: #f8f7fc;
    border-radius: 12px;
    padding: 8px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.app-container .search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 78, 230, 0.08);
}

.app-container .search-box i {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 10px;
}

.app-container .search-box input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-dark);
    padding: 4px 0;
}

.app-container .search-box input::placeholder {
    color: #b5b2c9;
}

.app-container .cert-item {
    background: #f8f7fc;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.app-container .cert-item:last-child {
    margin-bottom: 0;
}

.app-container .cert-item .cert-info {
    flex: 1;
}

.app-container .cert-item .cert-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.app-container .cert-item .cert-title .bank-name {
    color: var(--primary);
}

.app-container .cert-item .cert-meta {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.app-container .cert-item .cert-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-container .cert-item .cert-meta i {
    font-size: 0.65rem;
}

.app-container .cert-item .print-count {
    font-size: 0.65rem;
    color: var(--text-muted);
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.app-container .cert-item .btn-print {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #e3f0ff;
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.app-container .cert-item .btn-print:hover {
    background: #d0e4ff;
}

.app-container .cert-item .btn-print.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.app-container .empty-state {
    text-align: center;
    padding: 30px 10px;
    color: #7b7b8a;
}

.app-container .empty-state i {
    font-size: 32px;
    opacity: 0.4;
    margin-bottom: 10px;
}

.app-container .settings-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.app-container .settings-container .settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
    flex-wrap: wrap;
}
.app-container .settings-container .settings-item:last-child {
    border-bottom: none;
}
.app-container .settings-container .settings-item .info h4 {
    font-size: 14px;
    color: #1c1c28;
}
.app-container .settings-container .settings-item .info p {
    font-size: 12px;
    color: #7b7b8a;
}
.app-container .settings-container .settings-item input[type="text"],
.app-container .settings-container .settings-item input[type="number"] {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    min-width: 160px;
}
.app-container .settings-container .settings-item input:focus {
    border-color: var(--primary);
}
.app-container .settings-container .btn-save {
    padding: 10px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: var(--primary-gradient);
    color: white;
    margin-top: 12px;
}
.app-container .settings-container .toggle-switch {
    width: 40px;
    height: 22px;
    background: #ddd;
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}
.app-container .settings-container .toggle-switch.active {
    background: var(--primary);
}
.app-container .settings-container .toggle-switch::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 3px;
    right: 3px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.app-container .settings-container .toggle-switch.active::after {
    transform: translateX(-18px);
}

.app-container .upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: white;
}
.app-container .upload-zone:hover {
    border-color: var(--primary);
    background: #f8f6ff;
}
.app-container .upload-zone i {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.app-container .upload-zone p {
    color: var(--text-muted);
    font-size: 13px;
}
.app-container .upload-status {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    display: none;
}
.app-container .upload-status.success {
    display: block;
    background: #e8f8f0;
    color: #27ae60;
}

.app-container .bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border-radius: 30px 30px 0 0;
    display: flex;
    justify-content: space-around;
    padding: 15px 10px 22px;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.05);
    flex-shrink: 0;
    z-index: 10;
}
.app-container .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #a8a8ba;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    position: relative;
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
}
.app-container .nav-item i {
    font-size: 1.3rem;
}
.app-container .nav-item.active {
    color: #6b5ce7;
}
.app-container .nav-item.active::after {
    content: "";
    position: absolute;
    bottom: -12px;
    width: 24px;
    height: 4px;
    background-color: #6b5ce7;
    border-radius: 4px;
}
.app-container .nav-item.admin-item {
    color: #d97706;
}
.app-container .nav-item.admin-item.active {
    color: #d97706;
}
.app-container .nav-item.admin-item.active::after {
    background-color: #d97706;
}

/* ===== مودال فول‌اسکرین ===== */
.modal-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #faf9ff;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    flex-direction: column;
}
.modal-fullscreen.active {
    display: flex;
}
.modal-fullscreen .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    flex-shrink: 0;
}
.modal-fullscreen .modal-header h2 {
    font-size: 20px;
    color: var(--text-dark);
}
.modal-fullscreen .modal-header .close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 8px;
}
.modal-fullscreen .modal-header .close-modal:hover {
    color: #e74c3c;
}
.modal-fullscreen .certificate-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.modal-fullscreen .cert-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
}
.modal-fullscreen .cert-form .form-group {
    margin-bottom: 14px;
}
.modal-fullscreen .cert-form .form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-size: 13px;
}
.modal-fullscreen .cert-form .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    background: #fcfbff;
    transition: all 0.3s;
    outline: none;
}
.modal-fullscreen .cert-form .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 78, 230, 0.08);
}
.modal-fullscreen .cert-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.modal-fullscreen .cert-form .form-actions .btn {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-fullscreen .cert-form .form-actions .btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 78, 230, 0.2);
}
.modal-fullscreen .cert-form .form-actions .btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
}

.guarantee-others-certificate {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 2;
}

.guarantee-others-certificate .box {
    border: 2px double #333;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
}

.guarantee-others-certificate .box:last-child {
    margin-bottom: 0;
}

.guarantee-others-certificate .header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.guarantee-others-certificate .header-right {
    font-size: 11px;
    line-height: 1.6;
    color: #333;
}

.guarantee-others-certificate .logo-placeholder {
    width: 40px;
    height: 40px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.guarantee-others-certificate .logo-placeholder svg {
    width: 40px;
    height: 40px;
}

.guarantee-others-certificate .header-center {
    font-size: 18px;
    font-weight: 700;
    color: #1c1c28;
}

.guarantee-others-certificate .header-left {
    font-size: 12px;
    text-align: left;
    color: #555;
}

.guarantee-others-certificate .subject-lines {
    font-size: 13px;
    margin-bottom: 10px;
    color: #333;
}

.guarantee-others-certificate .body-text {
    font-size: 13px;
    line-height: 2.2;
    color: #333;
    margin-bottom: 10px;
    text-align: justify;
}

.guarantee-others-certificate .body-text .highlight {
    font-weight: 700;
    color: var(--primary);
}

.guarantee-others-certificate .signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.guarantee-others-certificate .sig-cell {
    flex: 1;
    text-align: center;
    font-size: 12px;
    line-height: 2;
    color: #333;
}

.guarantee-others-certificate .sig-cell:first-child {
    text-align: right;
}

.guarantee-others-certificate .sig-cell:last-child {
    text-align: left;
}

.guarantee-others-certificate .barcode {
    width: 100%;
    height: 30px;
    margin-top: 8px;
}

.modal-fullscreen .cert-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 5px;
    flex-shrink: 0;
}
.modal-fullscreen .cert-actions .btn {
    padding: 12px 30px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
}
.modal-fullscreen .cert-actions .btn-primary {
    background: var(--primary-gradient);
    color: white;
}
.modal-fullscreen .cert-actions .btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-fullscreen .cert-form { display: block; }
.modal-fullscreen #certificateDisplay { display: none; }

@media print {
    .modal-fullscreen .modal-header,
    .modal-fullscreen .cert-form,
    .modal-fullscreen .cert-actions {
        display: none !important;
    }
    .modal-fullscreen .certificate-wrapper {
        padding: 10px !important;
    }
    .guarantee-others-certificate {
        border: none !important;
        padding: 10px !important;
    }
    .guarantee-others-certificate .box {
        border: 2px double #333 !important;
        padding: 15px !important;
    }
    .app-container .bottom-nav,
    .app-container .header,
    .app-container .balance-card,
    .app-container .stats-container,
    .app-container .security-banner,
    .app-container .content-area {
        display: none !important;
    }
    body { background: white !important; }
    .bg-shape { display: none !important; }
    .app-container { padding-bottom: 0 !important; }
}

@media (max-width: 480px) {
    .login-container { padding: 30px 20px 20px; }
    .app-container .stats-container { gap: 8px; }
    .app-container .stat-card { padding: 14px 6px; }
    .app-container .circular-progress { width: 60px; height: 60px; }
    .app-container .progress-value { font-size: 1rem; }
    .app-container .balance-amount { font-size: 1.4rem; }
    .modal-fullscreen { padding: 12px; }
    .modal-fullscreen .certificate-wrapper { padding: 8px; }
    .guarantee-others-certificate { padding: 10px; }
    .guarantee-others-certificate .box { padding: 10px; }
    .guarantee-others-certificate .header { flex-direction: column; align-items: center; text-align: center; }
    .guarantee-others-certificate .header-left { text-align: center; }
    .guarantee-others-certificate .signatures { flex-direction: column; gap: 8px; }
    .guarantee-others-certificate .sig-cell { text-align: center !important; }
    .modal-fullscreen .cert-form .form-actions { flex-direction: column; }
    .app-container .bottom-nav .nav-item { font-size: 0.6rem; }
    .app-container .bottom-nav .nav-item i { font-size: 1.1rem; }
    .app-container .cert-item { padding: 12px; flex-wrap: wrap; gap: 8px; }
    .app-container .cert-item .cert-meta { flex-wrap: wrap; gap: 6px; }
}

.hidden { display: none !important; }
/* ===== تنظیمات ادمین ===== */
.settings-container .settings-item input[type="file"] {
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    background: #fcfbff;
}

.settings-container .logo-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fcfbff;
    margin-top: 8px;
}

.settings-container .logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.settings-container .logo-preview .placeholder {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.settings-container .form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-container .form-row .settings-item {
    flex: 1;
    min-width: 200px;
}
/* ===== بخش پرسنل ===== */
.personnel-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.personnel-container .upload-section {
    border: 2px dashed var(--border-color);
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: #fcfbff;
    margin-bottom: 20px;
}

.personnel-container .upload-section:hover {
    border-color: var(--primary);
    background: #f8f6ff;
}

.personnel-container .upload-section i {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.personnel-container .upload-section p {
    color: var(--text-muted);
    font-size: 13px;
}

.personnel-container .upload-section .file-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== نوار پیشرفت ===== */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
    display: none;
}

.progress-bar-container.active {
    display: block;
}

.progress-bar-container .progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.progress-info .percentage {
    font-weight: 700;
    color: var(--primary);
}

/* ===== جدول پرسنل ===== */
.personnel-container .table-wrapper {
    overflow-x: auto;
    margin-top: 16px;
}

.personnel-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 600px;
}

.personnel-container table th {
    background: #f8f7fc;
    padding: 12px 14px;
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 5;
}

.personnel-container table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.personnel-container table tr:hover td {
    background: #faf9ff;
}

.personnel-container table tr.blocked td {
    opacity: 0.5;
    background: #fef5f5;
}

.personnel-container .btn-sm {
    padding: 4px 10px;
    border-radius: 8px;
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.personnel-container .btn-sm.view {
    background: #e3f0ff;
    color: #3b82f6;
}

.personnel-container .btn-sm.view:hover {
    background: #d0e4ff;
}

.personnel-container .btn-sm.edit {
    background: #fff3e3;
    color: #f59e0b;
}

.personnel-container .btn-sm.edit:hover {
    background: #fee8c8;
}

.personnel-container .btn-sm.block {
    background: #fee;
    color: #ef4444;
}

.personnel-container .btn-sm.block:hover {
    background: #fdd;
}

.personnel-container .btn-sm.unblock {
    background: #e3f9f0;
    color: #10b981;
}

.personnel-container .btn-sm.unblock:hover {
    background: #c8f0e0;
}

.personnel-container .btn-sm.delete {
    background: #fee;
    color: #dc2626;
}

.personnel-container .btn-sm.delete:hover {
    background: #fdd;
}

.personnel-container .status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.personnel-container .status-badge.active {
    background: #e3f9f0;
    color: #10b981;
}

.personnel-container .status-badge.blocked {
    background: #fee;
    color: #ef4444;
}

/* ===== صفحه‌بندی ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-dark);
    transition: all 0.2s;
}

.pagination button:hover {
    background: var(--bg-light);
}

.pagination button.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination .page-info {
    font-size: 13px;
    color: var(--text-muted);
    padding: 0 8px;
}

/* ===== مودال جزئیات پرسنل ===== */
.personnel-detail {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    margin: 0 auto;
}

.personnel-detail .detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.personnel-detail .detail-row:last-child {
    border-bottom: none;
}

.personnel-detail .detail-label {
    width: 140px;
    font-weight: 600;
    color: var(--text-dark);
    flex-shrink: 0;
}

.personnel-detail .detail-value {
    flex: 1;
    color: var(--text-dark);
}

.personnel-detail .detail-value .status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* ===== واکنش‌گرا ===== */
@media (max-width: 480px) {
    .personnel-container table {
        font-size: 12px;
        min-width: 400px;
    }
    .personnel-container table th,
    .personnel-container table td {
        padding: 8px 10px;
    }
    .personnel-container .btn-sm {
        font-size: 10px;
        padding: 3px 8px;
    }
    .pagination button {
        padding: 4px 10px;
        font-size: 12px;
    }
    .personnel-detail .detail-row {
        flex-direction: column;
        gap: 4px;
    }
    .personnel-detail .detail-label {
        width: 100%;
    }
}