/* Glassmorphic NeoBank Theme - Dark Purple */
:root {
    --primary-dark: #1A0B2E;
    --primary-purple: #2A0D3F;
    --secondary-purple: #3C1B5E;
    --accent-purple: #6C40C5;
    --accent-pink: #FF4D8D;
    --text-light: #FFFFFF;
    --text-gray: #B8B8D1;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  
font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(115deg, #0069ff, #010cff, #27021a, #3c0235, #0a1f1a, #0a1628, #1a0a2e);
    background-size: 400% 400%;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    CONTAIN-INTRINSIC-BLOCK-SIZE: AUTO 100PX;
    animation: gradientFlow 10s ease-in-out infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    14% {
        background-position: 16% 50%;
    }
    28% {
        background-position: 32% 50%;
    }
    42% {
        background-position: 50% 50%;
    }
    56% {
        background-position: 68% 50%;
    }
    70% {
        background-position: 84% 50%;
    }
    85% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-purple) 100%);
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.brand-logo h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.brand-logo p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Features in Login */
.features {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.feature-item {
    flex: 1;
    min-width: 100px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transform: translateY(-2px);
}

.feature-item i {
    display: block;
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--accent-purple);
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(108, 64, 197, 0.2);
}

.btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 64, 197, 0.3);
}

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

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    margin-top: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Dashboard Styles */
.dashboard {
    padding: 20px;
    padding-bottom: 100px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    margin-top: env(safe-area-inset-top, 0px);
}

@media all and (display-mode: standalone) {
    .header {
        margin-top: calc(2px + env(safe-area-inset-top, 0px));
    }
}

.greeting h1 {
    font-size: 1rem;
    font-weight: 600;
    color: chocolate;
}

.greeting p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-purple);
}

/* Bank Card */
.bank-card-container {
    margin-bottom: 30px;
}

.bank-card {
    background: linear-gradient(135deg, rgba(108, 64, 197, 0.2), rgba(255, 77, 141, 0.2));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(45deg, gold, #FFD700);
    border-radius: 5px;
    margin-bottom: 20px;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.blurred {
    filter: blur(8px);
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cardholder-name {
    font-size: 1rem;
    font-weight: 600;
}

.card-expiry {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.eye-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.eye-toggle:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.action-btn:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    background: rgba(108, 64, 197, 0.1);
}

.action-btn i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.action-btn span {
    font-size: 0.85rem;
    font-weight: 500;
}





/* Recent Transactions */

.transactions-list {
    margin-bottom: 20px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.transaction-item:hover {
    border-color: var(--accent-purple);
    background: rgba(108, 64, 197, 0.05);
}

.transaction-avatar {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    background: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.transaction-details {
    flex: 1;
}

.transaction-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.transaction-details {
    min-width: 0;  /* به آیتم فلکس اجازه می‌دهد کوچکتر از محتوایش شود */
    flex: 1 1 0;   /* مطمئن می‌شود فضا را پر می‌کند ولی می‌تواند جمع شود */
}

.transaction-description {
    font-size: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #b5bdcc;
    line-height: 1.4;
    word-wrap: break-word;        /* کلمات طولانی را مجبور به شکستن می‌کند */
    overflow-wrap: break-word;     /* پشتیبانی مدرن */
    white-space: normal;           /* اجازه می‌دهد متن به خط بعد برود */
}

.transaction-amount {
    font-weight: 700;
    font-size: 18px;
    color: #1a1e2b;
}

.transaction-amount.negative {
    color: #e44a4a;
}

.transaction-amount.positive {
    color: #2ecc71;
}

.transaction-date {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 5px;
}




















/* Modals */
.modal-overlay {
     position: fixed;
    top: -30px;
    left: 0;
    right: 0;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    /* align-items: center; */
    justify-content: center;
    z-index: 1000;
    padding: 20px
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Modal Form Styles */
.modal-body {
    padding: 20px;
}

.modal-body .form-group {
    margin-bottom: 25px;
}

.modal-body label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.modal-body label:hover {
    border-color: var(--accent-purple);
    background: rgba(108, 64, 197, 0.1);
    transform: translateY(-2px);
}

.modal-body label i {
    color: var(--accent-purple);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.modal-body input[type="text"],
.modal-body input[type="tel"],
.modal-body input[type="number"],
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(108, 64, 197, 0.2);
}

.modal-body select option {
    background: var(--primary-purple);
    color: var(--text-light);
    padding: 10px;
}

/* File upload specific styles */
.modal-body input[type="file"] {
    padding: 12px;
    cursor: pointer;
}

.modal-body input[type="file"]::file-selector-button {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    margin-right: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-body input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(108, 64, 197, 0.3);
}

/* Avatar preview - proper size */
#previewImage {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--accent-purple);
    margin: 15px auto;
    object-fit: cover;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Container for better preview display */
#previewImage:not([src="#"]) {
    display: block;
}

/* Registration button in form */
#registerBtn {
    margin-top: 20px;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
    font-weight: 600;
    letter-spacing: 0.5px;
}

#registerBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(108, 64, 197, 0.4);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 11, 46, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    background: none;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.nav-item.active {
    color: var(--accent-purple);
    background: rgba(108, 64, 197, 0.1);
}

.nav-item:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 15px 20px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #4CD964;
}

.toast.error {
    border-left: 4px solid #FF3B30;
}

.toast.info {
    border-left: 4px solid var(--accent-purple);
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--glass-border);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-purple);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* QR Code */
.qr-code {
    background: white;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
    margin: 0 auto;
}

.qr-code i {
    font-size: 100px;
    color: #000;
}

/* Default Avatar */
.default-avatar {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-btn {
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover {
    background: rgba(108, 64, 197, 0.1);
    border-color: var(--accent-purple);
}

.pagination-btn.active {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
}

.pagination-info {
    display: flex;
    align-items: center;
    color: var(--text-gray);
}

/* Account Details Display */
.account-details {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

.account-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.account-details-row:last-child {
    border-bottom: none;
}

.account-details-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.account-details-value {
    font-weight: 600;
    font-size: 1rem;
}

/* Animation for avatar preview */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#previewImage {
    animation: fadeInUp 0.5s ease-out;
}

/* Registration feedback messages */
.registration-feedback {
    padding: 12px;
    margin: 15px 0;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.registration-feedback.success {
    background: rgba(76, 217, 100, 0.1);
    border: 1px solid rgba(76, 217, 100, 0.3);
    color: #4CD964;
    display: block;
}

.registration-feedback.error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF3B30;
    display: block;
}

/* Hide preview image by default */
#previewImage[src="#"] {
    display: none;
}

/* No data state */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-purple);
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .balance-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        gap: 10px;
    }
    
    .action-btn {
        padding: 15px 5px;
        min-height: 80px;
    }
    
    .action-btn i {
        font-size: 1.2rem;
    }
    
    .modal-body label {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .modal-body input[type="text"],
    .modal-body input[type="tel"],
    .modal-body input[type="number"],
    .modal-body input[type="email"],
    .modal-body select {
        padding: 14px;
    }
    
    #previewImage {
        max-width: 120px;
        max-height: 120px;
    }
    
    .features {
        flex-direction: column;
        gap: 10px;
    }
    
    .feature-item {
        min-width: auto;
        padding: 10px;
    }
    
    .transaction-item {
        padding: 12px;
    }
    
    .transaction-amount {
        min-width: 70px;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .balance-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .dashboard {
        padding: 30px;
        padding-bottom: 100px;
    }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--glass-border);
    border-top: 5px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Form validation styles */
input:invalid, select:invalid {
    border-color: #FF3B30;
}

.validation-error {
    color: #FF3B30;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

input:invalid + .validation-error {
    display: block;
}

/* Success message */
.success-message {
    background: rgba(76, 217, 100, 0.1);
    border: 1px solid rgba(76, 217, 100, 0.3);
    color: #4CD964;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
}

/* Warning message */
.warning-message {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    color: #FFCC00;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
}

/* Info message */
.info-message {
    background: rgba(108, 64, 197, 0.1);
    border: 1px solid rgba(108, 64, 197, 0.3);
    color: var(--accent-purple);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
}

/* Copy to clipboard button */
.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: rgba(108, 64, 197, 0.2);
    border-color: var(--accent-purple);
}

.copy-btn i {
    font-size: 0.9rem;
}

/* Transaction status badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-completed {
    background: rgba(76, 217, 100, 0.2);
    color: #4CD964;
}

.status-pending {
    background: rgba(255, 204, 0, 0.2);
    color: #FFCC00;
}

.status-failed {
    background: rgba(255, 59, 48, 0.2);
    color: #FF3B30;
}

/* Currency symbols */
.currency-symbol {
    font-weight: 700;
    color: var(--accent-purple);
    margin-right: 5px;
}

/* Amount formatting */
.amount-positive {
    color: #4CD964;
}

.amount-negative {
    color: #FF3B30;
}

/* Glass card hover effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* اصلاح آواتار تراکنش‌ها */
.transaction-avatar {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.transaction-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.transaction-avatar .avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* آواتار در داشبورد */
.avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-purple);
}

/* آواتار در مودال اطلاعات گیرنده */
.recipient-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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






/* Admin Crown Animation */
@keyframes crownGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
        transform: scale(1.05);
    }
}




.admin-crown {
    display: inline-block;
    position: relative;
    text-decoration: none;
}

.admin-crown i {
    font-size: 1.8rem;
    color: gold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    animation: crownGlow 2s infinite alternate;
}

.admin-crown:hover i {
    transform: scale(1.2);
    animation: none;
    text-shadow: 0 0 25px rgba(255, 215, 0, 1);
    color: #FFD700;
}

.admin-crown-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #FF3B30, #FF4D8D);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
}


















    /* Add these styles to existing style section */
    
    .form-input {
        width: 100%;
        padding: 14px 15px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        color: white;
        font-size: 1rem;
        transition: var(--transition);
        font-family: inherit;
    }
    
    .form-input:focus {
        outline: none;
        border-color: var(--accent-purple);
        box-shadow: 0 0 0 3px rgba(108, 64, 197, 0.2);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .operation-buttons {
        display: flex;
        gap: 10px;
        margin-top: 10px;
    }
    
    .operation-btn {
        flex: 1;
        padding: 14px;
        border: 2px solid var(--glass-border);
        border-radius: 12px;
        background: transparent;
        color: var(--text-light);
        cursor: pointer;
        transition: var(--transition);
        font-weight: 600;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .operation-btn i {
        font-size: 1.1rem;
    }
    
    .operation-btn.add {
        border-color: #4CD964;
        color: #4CD964;
    }
    
    .operation-btn.subtract {
        border-color: #FF3B30;
        color: #FF3B30;
    }
    
    .operation-btn.add.active {
        background: #4CD964;
        color: white;
        border-color: #4CD964;
        box-shadow: 0 5px 15px rgba(76, 217, 100, 0.3);
    }
    
    .operation-btn.subtract.active {
        background: #FF3B30;
        color: white;
        border-color: #FF3B30;
        box-shadow: 0 5px 15px rgba(255, 59, 48, 0.3);
    }
    
    .operation-btn:hover {
        transform: translateY(-2px);
    }
    
    .balance-preview {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 20px;
        margin-top: 20px;
        display: none;
    }
    
    .balance-preview.show {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    
    .balance-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .balance-label {
        color: var(--text-gray);
        font-size: 0.9rem;
    }
    
    .balance-value {
        font-weight: 600;
        font-size: 1.1rem;
    }
    
    .balance-positive {
        color: #4CD964;
    }
    
    .balance-negative {
        color: #FF3B30;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Receipt cards styling */
    .receipts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }
    
    .receipt-card {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 25px;
        transition: var(--transition);
        position: relative;
        overflow: hidden;
    }
    
    .receipt-card:hover {
        transform: translateY(-5px);
        border-color: var(--accent-purple);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
    
    .receipt-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: linear-gradient(to bottom, var(--accent-purple), var(--accent-pink));
    }
    
    .receipt-header {
        display: flex;
        align-items: flex-start;
        margin-bottom: 15px;
    }
    
    .receipt-icon {
        font-size: 2.5rem;
        color: var(--accent-purple);
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    .receipt-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0 0 5px 0;
        color: var(--text-light);
    }
    
    .receipt-meta {
        color: var(--text-gray);
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .receipt-actions {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }
    
    .btn-receipt {
        flex: 1;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: var(--transition);
        text-decoration: none;
        font-size: 0.9rem;
    }
    
    .btn-receipt-download {
        background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
        color: white;
        border: none;
    }
    
    .btn-receipt-view {
        background: transparent;
        border: 2px solid var(--accent-purple);
        color: var(--accent-purple);
    }
    
    .btn-receipt:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .btn-receipt-download:hover {
        background: linear-gradient(45deg, #5a2dc2, #e63e7d);
    }
    
    .btn-receipt-view:hover {
        background: rgba(108, 64, 197, 0.1);
    }









.today-users-section {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 15px;
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .today-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        transition: var(--transition);
    }
    
    .stat-card:hover {
        border-color: var(--accent-purple);
        transform: translateY(-2px);
    }
    
    .stat-card.login {
        border-left: 4px solid #4CD964;
    }
    
    .stat-card.logout {
        border-left: 4px solid #FF3B30;
    }
    
    .stat-value {
        font-size: 2rem;
        font-weight: 700;
        margin: 10px 0;
    }
    
    .stat-label {
        color: var(--text-gray);
        font-size: 0.9rem;
    }
    
    .users-table-container {
        overflow-x: auto;
        margin-top: 20px;
    }
    
    .users-table {
        width: 100%;
        border-collapse: collapse;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .users-table th {
        background: rgba(108, 64, 197, 0.2);
        padding: 15px;
        text-align: left;
        font-weight: 600;
        color: var(--text-light);
        border-bottom: 2px solid var(--glass-border);
    }
    
    .users-table td {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--text-gray);
    }
    
    .users-table tr:hover {
        background: rgba(108, 64, 197, 0.1);
    }
    
    .status-badge {
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        display: inline-block;
    }
    
    .status-login {
        background: rgba(76, 217, 100, 0.2);
        color: #4CD964;
    }
    
    .status-logout {
        background: rgba(255, 59, 48, 0.2);
        color: #FF3B30;
    }
    
    .user-avatar-small {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--accent-purple);
        margin-right: 10px;
    }
    
    .time-indicator {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
    }
    
    .no-users {
        text-align: center;
        padding: 40px 20px;
        color: var(--text-gray);
    }
    
    .no-users i {
        font-size: 3rem;
        margin-bottom: 15px;
        opacity: 0.5;
    }



/* ================================================== */
/* ================ CUSTOM ADDITIONS ================ */
/* ================================================== */


    .receipts-list::-webkit-scrollbar {
        width: 6px;
    }
    
    .receipts-list::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .receipts-list::-webkit-scrollbar-thumb {
        background: var(--accent-purple);
        border-radius: 10px;
    }
    
    .receipt-item:hover {
        transform: translateY(-2px);
        border-color: var(--accent-purple) !important;
        background: rgba(108, 64, 197, 0.1) !important;
    }
    
    .receipt-action-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 15px;
        border-radius: 10px;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: var(--transition);
        border: none;
        cursor: pointer;
        min-width: 100px;
        justify-content: center;
    }
    
    .receipt-action-btn.view-btn {
        background: rgba(108, 64, 197, 0.2);
        color: var(--accent-purple);
        border: 1px solid var(--accent-purple);
    }
    
    .receipt-action-btn.download-btn {
        background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
        color: white;
        border: 1px solid transparent;
    }
    
    .receipt-action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .receipt-action-btn.view-btn:hover {
        background: rgba(108, 64, 197, 0.3);
    }
    
    .receipt-action-btn.download-btn:hover {
        background: linear-gradient(45deg, #5a2dc2, #e63e7d);
    }
    
    .receipt-action-btn i {
        font-size: 1rem;
    }
    
    @media (max-width: 768px) {
        .receipt-item {
            padding: 15px !important;
        }
        
        .receipt-action-btn {
            padding: 8px 12px;
            min-width: auto;
        }
        
        .receipt-action-btn span {
            display: none;
        }
        
        .receipt-action-btn i {
            margin-right: 0 !important;
        }
    }
    
     
 /* Support Card with Mobile-Friendly Fonts */
    /* Support Card Styles */
.glass-card {
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid #FFD700;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(5px);
    font-family: sans-serif; /* یا فونت دلخواه پروژه */
}

.glass-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin: 0;
}

.glass-card p {
    color: var(--text-gray, #6c757d); /* fallback اگر متغیر تعریف نشده */
    font-size: 0.95rem;
    margin: 4px 0 0;
}

.glass-card .btn {
    width: auto;
    padding: 12px 25px;
    background: var(--accent-purple, #6f42c1);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

/* تنظیمات ریسپانسیو برای موبایل */
@media (max-width: 600px) {
    .glass-card {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }

    .glass-card h3 {
        font-size: 1rem;
        gap: 8px;
    }

    .glass-card p {
        font-size: 0.85rem;
    }

    .glass-card .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        justify-content: center;
        width: 100%;
    }
}








/* ==================== طراحی اپلیکیشنی ساده و روان ==================== */

/* اوورلی */
.notification-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.notification-overlay.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* دراپ‌داون */
.notification-dropdown {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 400px;
    max-width: 90vw;
    background: #1a1a2e;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.2s ease;
}

.notification-dropdown.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* هدر */
.notification-dropdown .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFD700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-title i {
    font-size: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* دکمه خواندن همه */
.mark-all-read-btn {
    background: rgba(255, 215, 0, 0.1);
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #FFD700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.mark-all-read-btn:hover {
    background: rgba(255, 215, 0, 0.2);
}

/* دکمه بستن */
.close-dropdown-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    cursor: pointer;
    transition: all 0.15s ease;
}

.close-dropdown-btn:hover {
    background: rgba(255, 59, 48, 0.2);
    color: #FF3B30;
}

/* بدنه */
.notification-dropdown .dropdown-body {
    max-height: 500px;
    overflow-y: auto;
}

/* اسکرول */
.dropdown-body::-webkit-scrollbar {
    width: 3px;
}

.dropdown-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-body::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

/* آیتم نوتیفیکیشن */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* آیتم نخوانده */
.notification-item.unread {
    background: rgba(108, 64, 197, 0.1);
}

/* آیکون */
.notification-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.notification-icon.offer_received {
    background: rgba(76, 217, 100, 0.15);
    color: #4CD964;
}

.notification-icon.offer_accepted {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

.notification-icon.offer_rejected {
    background: rgba(255, 59, 48, 0.15);
    color: #FF3B30;
}

.notification-icon.default {
    background: rgba(108, 64, 197, 0.15);
    color: #6C40C5;
}

/* محتوا */
.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 0.75rem;
    color: #aaa;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 0.65rem;
    color: #666;
}

/* دکمه حذف */
.notification-delete {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    cursor: pointer;
    transition: all 0.15s ease;
}

.notification-delete:hover {
    background: rgba(255, 59, 48, 0.15);
    color: #FF3B30;
}

/* دکمه‌های اکشن */
.notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.action-btn {
    flex: 1;
    padding: 8px 0;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn.accept {
    background: #4CD964;
    color: white;
}

.action-btn.reject {
    background: #FF3B30;
    color: white;
}

.action-btn.accept:hover, .action-btn.reject:hover {
    opacity: 0.85;
    transform: scale(0.98);
}

/* حالت خالی */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.85rem;
}

/* حالت لودینگ */
.loading-state {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-top-color: #FFD700;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* مشاهده همه */
.view-all-btn {
    text-align: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #FFD700;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-all-btn:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* انیمیشن حذف */
.notification-item.removing {
    animation: slideOut 0.15s ease forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* موبایل */
@media (max-width: 600px) {
    .notification-dropdown {
        width: 95%;
        max-width: none;
        border-radius: 20px;
    }
    
    .notification-dropdown .dropdown-header {
        padding: 14px 16px;
    }
    
    .notification-item {
        padding: 12px 16px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.9rem;
    }
    
    .notification-title {
        font-size: 0.8rem;
    }
    
    .notification-message {
        font-size: 0.7rem;
    }
}

/* آیکون زنگوله */
.notification-bell {
    position: relative;
    cursor: pointer;
}

.bell-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.15s ease;
}

.bell-icon:hover {
    background: rgba(255, 215, 0, 0.1);
}

.bell-icon i {
    font-size: 1.1rem;
    color: #ddd;
}

.bell-dot {
    position: absolute;
    top: 5px;
    right: 8px;
    width: 7px;
    height: 7px;
    background: #FF3B30;
    border-radius: 50%;
}

.notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #FF3B30;
    color: white;
    font-size: 0.5rem;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
