/* ============================================
   FORM PAGES - SEND CARD, WITHDRAW, SERVICES
   ============================================ */

/* Common Form Wrapper */
.send-card-wrapper,
.withdraw-wrapper,
.service-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.75rem 2rem;
    margin-top: 1.25rem;
}

.withdraw-wrapper {
    margin-bottom: 2rem;
}

/* Header Simple */
.card-header-simple {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.card-header-simple h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.card-header-simple h3 i {
    color: #1561ac;
    margin-right: 0.4rem;
    font-size: 1rem;
}

.card-header-simple p {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

/* Form Styling - Grid Layout */
form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.form-group-custom {
    margin-bottom: 0;
}

.form-group-custom label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
}

.required {
    color: #dc3545;
}

.form-control-custom {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 7px;
    transition: all 0.3s;
    background: #fff;
}

.form-control-custom:focus {
    border-color: #1561ac;
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 97, 172, 0.1);
}

.form-control-custom.is-invalid {
    border-color: #dc3545;
}

.form-control-custom::placeholder {
    color: #adb5bd;
}

/* Form Row - inline in grid */
.form-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Submit Button */
.btn-submit {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.7rem 1.25rem;
    background: linear-gradient(135deg, #1561ac 0%, #0d47a1 100%);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 97, 172, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Alerts */
.alert-info-custom,
.alert-warning-custom {
    padding: 0.85rem 1.15rem;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    border: none;
}

.alert-info-custom {
    background: #e7f3ff;
    color: #0c5aa6;
}

.alert-warning-custom {
    background: #fff3cd;
    color: #856404;
}

.alert-info-custom i,
.alert-warning-custom i {
    font-size: 1.1rem;
}

.alert-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 1.25rem;
}

/* ============================================
   FEE TABLE - SIMPLE & CLEAN
   ============================================ */

.fee-table-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.fee-header {
    background: linear-gradient(135deg, #1561ac 0%, #0d47a1 100%);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fee-header i {
    color: #fff;
    font-size: 1rem;
}

.fee-header span {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.fee-table {
    width: 100%;
    margin: 0;
}

.fee-table thead {
    background: linear-gradient(135deg, #1561ac 0%, #0d47a1 100%);
    color: #fff;
}

.fee-table thead th {
    padding: 0.75rem 0.65rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    text-align: center;
    border-bottom: none;
}

.fee-table thead th.text-start {
    text-align: left;
    padding-left: 1.25rem;
    color: #fff;
}

.fee-table tbody tr {
    transition: all 0.2s;
}

.fee-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.fee-table tbody tr:hover {
    background: linear-gradient(to right, #f0f4ff, #f8f9fa);
}

.fee-table tbody td {
    padding: 0.7rem 0.65rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.card-name-simple {
    text-align: left !important;
    padding-left: 1.25rem !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.card-name-simple img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.fee-rate {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    background: linear-gradient(135deg, #1561ac 0%, #0d47a1 100%);
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(21, 97, 172, 0.3);
    transition: all 0.3s;
}

.fee-rate:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(21, 97, 172, 0.4);
}

/* Game Card - Blue Theme (synchronized with phone card) */
.fee-header-game {
    background: linear-gradient(135deg, #1561ac 0%, #0d47a1 100%);
}

.fee-table thead th {
    border-bottom-color: #1561ac;
}

.fee-rate-game {
    background: linear-gradient(135deg, #1561ac 0%, #0d47a1 100%);
    box-shadow: 0 2px 4px rgba(21, 97, 172, 0.3);
}

.fee-rate-game:hover {
    box-shadow: 0 3px 6px rgba(21, 97, 172, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .send-card-wrapper,
    .withdraw-wrapper,
    .service-wrapper {
        padding: 1.25rem;
        margin-top: 1rem;
    }
    
    .card-header-simple {
        margin-bottom: 1.25rem;
        padding-bottom: 0.85rem;
    }
    
    .card-header-simple h3 {
        font-size: 1.15rem;
    }
    
    .card-header-simple p {
        font-size: 0.85rem;
    }
    
    form {
        grid-template-columns: 1fr 1fr;
    }
    
    .fee-header {
        padding: 0.75rem 1rem;
    }
    
    .fee-table thead th,
    .fee-table tbody td {
        padding: 0.65rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .card-name-simple {
        padding-left: 1rem !important;
        font-size: 0.85rem;
    }
    
    .card-name-simple img {
        width: 24px;
        height: 24px;
    }
    
    .fee-rate {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .send-card-wrapper,
    .withdraw-wrapper,
    .service-wrapper {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .card-header-simple {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .card-header-simple h3 {
        font-size: 1.1rem;
    }
    
    form {
        grid-template-columns: 1fr;
    }
    
    .form-group-custom label {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }
    
    .form-control-custom {
        padding: 0.6rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn-submit {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
    
    .fee-table-wrapper {
        border-radius: 8px;
    }
}

/* ============================================
   AUTH FORMS - LOGIN & REGISTER
   ============================================ */

.auth-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.75rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f4f8;
}

.auth-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.auth-header h3 i {
    color: #667eea;
    font-size: 1.3rem;
}

.auth-header p {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label-modern {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-label-modern i {
    color: #667eea;
    font-size: 0.85rem;
}

.form-control-modern {
    width: 100%;
    padding: 0.7rem 0.875rem;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2c3e50;
    background: #fff;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

.form-control-modern::placeholder {
    color: #adb5bd;
}

.form-control-modern.is-invalid {
    border-color: #dc3545;
}

.form-control-modern.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback i {
    font-size: 0.8rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.form-check-modern {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-check-input-modern {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}

.form-check-label-modern {
    font-size: 0.85rem;
    color: #495057;
    cursor: pointer;
    margin: 0;
}

.forgot-password-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.forgot-password-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.btn-auth-primary {
    width: 100%;
    padding: 0.8rem 1.25rem;
    background: linear-gradient(135deg, #1561ac 0%, #0d47a1 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(21, 97, 172, 0.3);
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 97, 172, 0.4);
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

.btn-auth-primary i {
    font-size: 0.9rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.25rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e6ed;
}

.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 0.875rem;
    color: #6c757d;
    font-size: 0.8rem;
}

.auth-footer {
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f4f8;
}

.auth-footer p {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    padding: 0.4rem 0;
}

/* Alert Messages */
.alert-modern {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    border: none;
}

.alert-modern i {
    font-size: 1rem;
    flex-shrink: 0;
}

.alert-success-modern {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.alert-success-modern i {
    color: #28a745;
}

.alert-danger-modern {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.alert-danger-modern i {
    color: #dc3545;
}

.alert-warning-modern {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.alert-warning-modern i {
    color: #ffc107;
}

.alert-info-modern {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 3px solid #17a2b8;
}

.alert-info-modern i {
    color: #17a2b8;
}

/* Auth Message */
.auth-message {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.auth-message p {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.auth-message p:last-child {
    margin-bottom: 0;
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 1rem;
}

.profile-header {
    background: linear-gradient(135deg, #1561ac 0%, #0d47a1 100%);
    padding: 2rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.profile-info-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #fff;
}

.profile-email {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

.profile-balance-section {
    text-align: right;
}

.balance-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.profile-body {
    padding: 2rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.form-section-title i {
    color: #1561ac;
    font-size: 1rem;
}

.form-text-muted {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.security-info {
    padding: 0.5rem 0;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.security-item i {
    font-size: 1.1rem;
}

.security-item span {
    color: #495057;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
    
    .profile-avatar-section {
        width: 100%;
    }
    
    .profile-balance-section {
        text-align: left;
        width: 100%;
    }
    
    .balance-amount {
        font-size: 1.5rem;
    }
    
    .profile-body {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1.25rem;
    }
    
    .profile-avatar-large {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .profile-info-header h3 {
        font-size: 1.35rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 1.5rem 1.25rem;
        margin-top: 0.5rem;
    }
    
    .auth-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }
    
    .auth-header h3 {
        font-size: 1.35rem;
    }
    
    .auth-header p {
        font-size: 0.8rem;
    }
    
    .auth-form {
        gap: 0.875rem;
    }
    
    .form-control-modern {
        padding: 0.65rem 0.8rem;
        font-size: 0.875rem;
    }
    
    .btn-auth-primary {
        padding: 0.75rem 1.15rem;
        font-size: 0.9rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .forgot-password-link {
        align-self: flex-end;
    }
    
    .auth-divider {
        margin: 1rem 0;
    }
    
    .auth-footer {
        margin-top: 0.5rem;
        padding-top: 1rem;
    }
}

/* ============================================
   DATA PAGES - TABLES, LISTS, FILTERS
   ============================================ */

/* Page Header */
.page-header-modern {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.page-header-modern h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header-modern h2 i {
    color: #667eea;
    font-size: 1.5rem;
}

.page-header-modern p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

/* Data Card */
.data-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.data-card-header {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-toggle-filter {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #1561ac 0%, #0d47a1 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(21, 97, 172, 0.3);
}

.btn-toggle-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 97, 172, 0.4);
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.btn-toggle-filter i:first-child {
    font-size: 0.9rem;
}

.filter-chevron {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.filter-form-modern {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.data-card-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-card-header h4 i {
    color: #1561ac;
}

.btn-toggle-filter {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    z-index: 10;
    position: relative;
}

.btn-toggle-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-toggle-filter i:first-child {
    font-size: 0.9rem;
}

.filter-chevron {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.filter-toggle-text {
    display: inline-block;
}

/* Desktop: Hide toggle button, show filter */
@media (min-width: 769px) {
    .btn-toggle-filter {
        display: none !important;
    }
    
    .filter-form-modern {
        display: flex !important;
    }
}

/* Mobile: Show toggle button, hide filter by default */
@media (max-width: 768px) {
    .btn-toggle-filter {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .filter-form-modern {
        display: none !important;
    }
    
    .filter-form-modern.show {
        display: flex !important;
    }
}

.table-wrapper-modern {
    padding: 1.5rem 2rem;
}

/* Buttons */
.btn-add-modern {
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-add-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-action-modern {
    padding: 0.4rem 0.85rem;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-action-modern:hover {
    background: #764ba2;
    color: #fff;
    transform: translateY(-1px);
}

.btn-auth-secondary {
    padding: 0.8rem 1.25rem;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-auth-secondary:hover {
    background: #5a6268;
    color: #fff;
    transform: translateY(-2px);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Table Modern */
.table-modern {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table-modern thead {
    background: linear-gradient(135deg, #1561ac 0%, #0d47a1 100%);
    color: #fff;
}

.table-modern thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
}

.table-modern tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background: #f8f9fa;
}

.table-modern tbody td {
    padding: 1rem;
    color: #495057;
    font-size: 0.9rem;
}

.table-modern tbody td strong {
    color: #2c3e50;
    font-weight: 600;
}

.code-modern {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #667eea;
    border: 1px solid #e9ecef;
    word-break: break-all;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #6c757d;
}

/* Filter Form */
.filter-form-modern {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.filter-form-modern .form-group-modern {
    flex: 1;
    min-width: 150px;
    margin: 0;
}

.filter-form-modern .form-label-modern {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.filter-form-modern .form-control-modern {
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
}

.filter-form-modern .btn-filter {
    padding: 0.6rem 1.25rem;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.filter-form-modern .btn-filter:hover {
    background: #764ba2;
    transform: translateY(-1px);
}

/* Badge Modern */
.badge-modern {
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success-modern {
    background: #d4edda;
    color: #155724;
}

.badge-warning-modern {
    background: #fff3cd;
    color: #856404;
}

.badge-danger-modern {
    background: #f8d7da;
    color: #721c24;
}

.badge-info-modern {
    background: #d1ecf1;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header-modern h2 {
        font-size: 1.5rem;
    }
    
    .data-card-header {
        flex-direction: row;
        align-items: center;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .data-card-header h4 {
        flex: 1;
        font-size: 1.1rem;
    }
    
    .btn-toggle-filter {
        display: flex !important;
        flex-shrink: 0;
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .table-wrapper-modern {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .table-modern {
        min-width: 600px;
    }
    
    .table-modern thead th,
    .table-modern tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .filter-form-modern {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .filter-form-modern.show {
        display: flex !important;
    }
    
    .filter-form-modern .form-group-modern {
        width: 100%;
        margin-bottom: 0;
    }
    
    .filter-form-modern .form-label-modern {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .filter-form-modern .form-control-modern {
        padding: 0.5rem 0.65rem;
        font-size: 0.85rem;
    }
    
    .filter-form-modern .btn-filter {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    
    .data-card-header {
        padding: 1rem;
    }
    
    .data-card-header h4 {
        font-size: 1.1rem;
    }
    
    .table-wrapper-modern {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-auth-primary,
    .form-actions .btn-auth-secondary {
        width: 100%;
    }
}

/* Guide Section */
.guide-section {
    padding: 0.5rem 0;
}

.guide-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-section h5 i {
    color: #667eea;
}

.info-box-modern {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    margin-bottom: 1rem;
}

.info-box-modern p {
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 0.9rem;
}

.info-box-modern p:last-child {
    margin-bottom: 0;
}

.code-block-modern {
    display: block;
    background: #2c3e50;
    color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
    margin: 0.75rem 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.provider-list,
.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.provider-list li,
.error-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 0.9rem;
}

.provider-list li:last-child,
.error-list li:last-child {
    border-bottom: none;
}

.provider-list li code,
.error-list li code {
    margin-left: 0.5rem;
}

/* Accordion Modern */
.accordion-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion-item-modern {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header-modern {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.accordion-header-modern:hover {
    background: #e9ecef;
}

.accordion-header-modern i:first-child {
    color: #667eea;
    margin-right: 0.5rem;
}

.accordion-header-modern i:last-child {
    color: #6c757d;
    transition: transform 0.3s ease;
}

.accordion-header-modern[aria-expanded="true"] i:last-child {
    transform: rotate(180deg);
}

.accordion-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-collapse.show {
    max-height: 2000px;
}

.accordion-body-modern {
    padding: 1.25rem;
    background: #fff;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

/* ============================================
   PAGE CONTENT
   ============================================ */

.page-card-modern {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.page-title-modern {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.page-description-modern {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

.page-image-modern {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.page-image-modern img {
    width: 100%;
    height: auto;
    display: block;
}

.page-content-modern {
    margin-top: 2rem;
    color: #495057;
    line-height: 1.8;
    font-size: 1rem;
}

.page-content-modern h1,
.page-content-modern h2,
.page-content-modern h3,
.page-content-modern h4 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.page-content-modern p {
    margin-bottom: 1rem;
}

.page-content-modern ul,
.page-content-modern ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.page-content-modern a {
    color: #667eea;
    text-decoration: none;
}

.page-content-modern a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .page-card-modern {
        padding: 1.5rem;
    }
    
    .page-title-modern {
        font-size: 1.75rem;
    }
    
    .page-description-modern {
        font-size: 1rem;
    }
}

/* Extra Small Mobile - Filter Optimization */
@media (max-width: 576px) {
    .page-header-modern {
        margin-bottom: 1.25rem;
        padding-bottom: 0.5rem;
    }
    
    .page-header-modern h2 {
        font-size: 1.35rem;
    }
    
    .page-header-modern p {
        font-size: 0.8rem;
    }
    
    .data-card-header {
        padding: 0.875rem;
    }
    
    .data-card-header h4 {
        font-size: 1rem;
    }
    
    .btn-toggle-filter {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .filter-toggle-text {
        display: none;
    }
    
    .filter-form-modern {
        padding: 0.875rem;
        gap: 0.4rem;
        margin-bottom: 1rem;
    }
    
    .filter-form-modern .form-label-modern {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .filter-form-modern .form-control-modern {
        padding: 0.45rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .filter-form-modern .btn-filter {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .table-wrapper-modern {
        padding: 0.75rem;
    }
    
    .table-modern thead th,
    .table-modern tbody td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
}
