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

:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --sidebar-bg: #1e293b;
    --sidebar-text: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ==================== LOGIN PAGE ==================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

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

.login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #1d4ed8;
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ==================== DASHBOARD ==================== */

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

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

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

.sidebar-header p {
    font-size: 13px;
    opacity: 0.7;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: block;
    padding: 14px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: background 0.3s;
    font-size: 15px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: var(--primary-color);
    border-left: 4px solid white;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #dc2626;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

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

.content-header h1 {
    font-size: 28px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-refresh {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-refresh:hover {
    background: #1d4ed8;
}

/* View Content */
.view-content {
    display: none;
}

.view-content.active {
    display: block;
}

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

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 40px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

/* Section Card */
.section-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.section-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

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

.search-box input {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: 300px;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--text-color);
}

table tr:hover {
    background: var(--bg-color);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
}

.badge-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.badge-suspended {
    background: #fef3c7;
    color: #92400e;
}

.badge-basic {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-pro {
    background: #dbeafe;
    color: #1e40af;
}

.badge-premium {
    background: #fce7f3;
    color: #9f1239;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-color);
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
        padding: 20px;
    }

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

    .search-box input {
        width: 100%;
    }
}

/* ==================== CREAR CLIENTE STYLES ==================== */

.search-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-actions input {
    flex: 1;
}

.btn-create {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-create:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Modal styles actualizados para soportar múltiples modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-bottom: 25px;
    color: var(--text-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: var(--bg-color);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #d1d5db;
}

.btn-submit {
    flex: 1;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #1d4ed8;
}

/* Loading spinner */
.loading-spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

#createClientLoading {
    text-align: center;
    padding: 40px;
}

#createClientLoading p {
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Success Modal */
.success-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.success-info h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
}

.info-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

/* DNS Instructions */
.dns-instructions {
    margin-bottom: 30px;
    padding: 20px;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
}

.dns-instructions h3 {
    margin-bottom: 15px;
    color: var(--warning-color);
}

.dns-instructions h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.dns-instructions p {
    color: var(--text-color);
    margin-bottom: 15px;
}

.dns-record {
    margin: 20px 0;
    overflow-x: auto;
}

.dns-record table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.dns-record th,
.dns-record td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.dns-record th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--text-color);
}

.dns-record code {
    background: var(--bg-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--danger-color);
}

.dns-steps ol {
    margin-left: 20px;
    color: var(--text-color);
}

.dns-steps li {
    margin-bottom: 8px;
}

.dns-steps strong {
    color: var(--warning-color);
}

.ssl-note {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
}

.ssl-note code {
    display: block;
    background: var(--bg-color);
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    margin-top: 10px;
    color: var(--text-color);
}

/* Access Info */
.access-info {
    padding: 20px;
    background: #eff6ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.access-info h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

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

.url-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.url-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 120px;
}

.url-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.url-item a:hover {
    text-decoration: underline;
}

.credentials-note {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-color);
}

.credentials-note code {
    background: var(--bg-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--danger-color);
}

.btn-close-success {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-close-success:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Responsive para modales */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        margin: 10px;
    }

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

    .search-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-create {
        width: 100%;
    }
}

/* ==================== PLANES SECTION ==================== */

/* Grid de Planes */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.plan-card {
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.plan-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.2);
}

.plan-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 700;
    transform: rotate(45deg);
    text-align: center;
}

.plan-header {
    padding: 25px;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
}

.plan-header h4 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
}

.price-period {
    font-size: 18px;
    color: var(--text-secondary);
}

.plan-body {
    padding: 25px;
}

.plan-limit {
    text-align: center;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.plan-limit strong {
    color: var(--primary-color);
    font-size: 18px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-ideal {
    padding: 15px;
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.plan-costs {
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.cost-item.margin {
    font-weight: 700;
    font-size: 16px;
    padding-top: 10px;
}

.cost-item .success {
    color: var(--secondary-color);
}

/* Plan específicos colores */
.plan-basic .plan-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.plan-basic .plan-header h4,
.plan-basic .price-amount {
    color: white;
}

.plan-basic .price-period {
    color: rgba(255, 255, 255, 0.8);
}

.plan-pro .plan-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.plan-pro .plan-header h4,
.plan-pro .price-amount {
    color: white;
}

.plan-pro .price-period {
    color: rgba(255, 255, 255, 0.8);
}

.plan-premium .plan-header {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
}

.plan-premium .plan-header h4,
.plan-premium .price-amount {
    color: white;
}

.plan-premium .price-period {
    color: rgba(255, 255, 255, 0.8);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature-info {
    flex: 1;
}

.feature-info strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-size: 15px;
}

.feature-info p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
}

/* Costs Info */
.costs-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cost-section h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.costs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.costs-table thead th {
    background: var(--bg-color);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.costs-table td,
.costs-table th {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.costs-table tbody tr:last-child td {
    border-bottom: none;
}

.costs-table .success {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Alert Box */
.alert {
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.alert-info {
    background: #eff6ff;
    border-left: 4px solid var(--primary-color);
}

.alert strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.alert p {
    margin-bottom: 10px;
}

.alert ul {
    margin-left: 20px;
}

.alert li {
    margin: 5px 0;
}

/* Monitoring Info */
.monitoring-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.monitoring-item {
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
}

.monitoring-item h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.monitoring-item p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.monitoring-item ul {
    margin-left: 20px;
    color: var(--text-color);
}

.monitoring-item li {
    margin: 8px 0;
}

.monitoring-item code {
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.recommendation-card {
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.recommendation-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.recommendation-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.recommendation-card h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.recommendation-card ul {
    list-style: none;
    padding: 0;
}

.recommendation-card li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.recommendation-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

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

    .monitoring-info {
        grid-template-columns: 1fr;
    }

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

    .price-amount {
        font-size: 36px;
    }
}

/* ==================== COUNTRY CONFIGURATION STYLES ==================== */

/* Form section headers */
.form-section-header {
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.form-section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Country info preview */
.country-info {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #eff6ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.country-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.country-preview p {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
}

.country-preview strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Payment number fields */
.payment-field {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.payment-field.visible {
    display: block;
}

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

/* Country selector styling */
#countryProfile {
    font-size: 15px;
    padding: 12px;
}

#countryProfile option {
    padding: 10px;
}

/* Payment fields container */
#paymentNumbers {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ===== ESTADÍSTICAS DE IA ===== */
.model-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.model-card-super {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.model-card-super h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.model-stat-super {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.model-stat-label-super {
    color: rgba(255,255,255,0.9);
}

.model-stat-value-super {
    font-weight: 600;
    color: white;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

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

.data-table td {
    font-size: 0.9rem;
    color: #4a5568;
}
