/* ===== MODAL BASE STYLES ===== */
.expense-modal, .category-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 20px;
}

.expense-modal-overlay, .category-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
}

.expense-modal-content, .category-modal-content {
	position: relative;
	background: white;
	border-radius: 20px;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
	width: 100%;
	max-width: 650px;
	max-height: 90vh;
	overflow: hidden;
	animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-30px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ===== MODAL HEADER ===== */
.expense-modal-header, .category-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 32px 32px 24px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	position: relative;
	overflow: hidden;
}

.expense-modal-header::before, .category-modal-header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 100px;
	height: 100px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	transform: rotate(45deg);
}

.modal-title-group {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	flex: 1;
}

.modal-icon {
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: white;
	flex-shrink: 0;
	backdrop-filter: blur(10px);
}

.modal-icon.category-icon {
	background: rgba(255, 255, 255, 0.25);
}

.modal-title-group h2 {
	margin: 0 0 6px 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.modal-title-group p {
	margin: 0;
	font-size: 14px;
	opacity: 0.9;
	line-height: 1.4;
}

.expense-modal-close, .category-modal-close {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 10px;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.expense-modal-close:hover, .category-modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.05);
}

/* ===== MODAL BODY ===== */
.expense-modal-body, .category-modal-body {
	padding: 32px;
	max-height: 60vh;
	overflow-y: auto;
}

/* ===== FORM STYLES ===== */
.expense-form, .category-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 45px;
}

@media (max-width: 640px) {
	.form-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin: 0;
}

.form-label i {
	color: #667eea;
	font-size: 16px;
}

.required {
	color: #ef4444;
	font-size: 12px;
}

.form-input {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	font-size: 14px;
	font-family: inherit;
	transition: all 0.3s ease;
	background: #fafafa;
}

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

.form-textarea {
	resize: vertical;
	min-height: 80px;
}

.amount-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.amount-prefix {
	position: absolute;
	left: 16px;
	color: #667eea;
	font-weight: 600;
	font-size: 14px;
	z-index: 1;
	pointer-events: none;
}

.amount-input {
	width: 100% !important;
	padding-left: 32px !important;
	font-weight: 600;
}

.category-input-group {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

.category-input-group select {
	flex: 1;
}

.btn-add-category {
	padding: 14px 20px;
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.btn-add-category:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.field-hint {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #6b7280;
	margin-top: 4px;
}

.field-hint i {
	color: #667eea;
}

/* Category Preview */
.category-preview {
	background: #f8fafc;
	border: 2px dashed #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	text-align: center;
}

.preview-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.category-tag-preview {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
}

/* ===== MODAL FOOTER ===== */
.expense-modal-footer, .category-modal-footer {
	display: flex;
	gap: 16px;
	padding: 24px 32px 32px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}

.btn-cancel {
	flex: 1;
	padding: 14px 24px;
	background: white;
	color: #64748b;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.3s ease;
}

.btn-cancel:hover {
	border-color: #cbd5e1;
	background: #f1f5f9;
	color: #475569;
}

.btn-save {
	flex: 2;
	padding: 14px 24px;
	background: linear-gradient(135deg, #10b981, #059669);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.3s ease;
}

.btn-save:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Expense Cards */
.expense-card {
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px;
	display: grid;
	grid-template-columns: 60px 1fr auto;
	gap: 12px;
	align-items: center;
	transition: all 0.2s;
    position: relative;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.expense-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: #3b82f6;
}

.expense-card__icon {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	flex-shrink: 0;
}

.expense-card__content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.expense-card__title {
	font-size: 15px;
	font-weight: 600;
	color: #1f2937;
	margin: 0;
}

.expense-card__description {
	font-size: 13px;
	color: #6b7280;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.expense-card__meta {
	display: flex;
	gap: 8px;
	font-size: 12px;
	color: #9ca3af;
	flex-wrap: wrap;
}

.expense-card__amount {
	font-size: 16px;
	font-weight: 700;
	color: #1f2937;
	text-align: right;
	min-width: 0;
}

.expense-card__actions {
	display: flex;
	gap: 8px;
}

.expense-card__delete {
	padding: 8px;
	background: none;
	border: none;
	color: #ef4444;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.expense-card__delete:hover {
	background: #fee2e2;
}

/* Category Pills */
.category-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #f3f4f6;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #4b5563;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-pill.nomina { background: #fef3c7; color: #92400e; }
.category-pill.insumos { background: #d1fae5; color: #065f46; }
.category-pill.gasolina { background: #dbeafe; color: #1e40af; }
.category-pill.renta { background: #fce7f3; color: #831843; }
.category-pill.servicios { background: #e0e7ff; color: #3730a3; }
.category-pill.mantenimiento { background: #fca5a5; color: #7f1d1d; }
.category-pill.publicidad { background: #c7d2fe; color: #312e81; }
.category-pill.otros { background: #f3f4f6; color: #374151; }

/* Form Improvements */
input[type="date"],
input[type="text"],
input[type="number"],
select {
	transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="date"]:focus,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===== ENHANCED BUTTON STYLES ===== */
.btn-primary {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	border: none;
	padding: 12px 20px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

.btn-ghost {
	background: white;
	color: #64748b;
	border: 2px solid #e2e8f0;
	padding: 12px 20px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.btn-ghost:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #475569;
	transform: translateY(-1px);
}

/* Expenses Section */
.expenses-section {
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
}

/* Expense List Header & Filters */
.expenses-list-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	gap: 16px;
	flex-wrap: wrap;
}

.expenses-list-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
}

.expenses-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.filter-btn {
	padding: 10px 16px;
	background: #f3f4f6;
	color: #6b7280;
	border: 2px solid transparent;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.filter-btn:hover {
	background: #e5e7eb;
	color: #4b5563;
}

.filter-btn.active {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	border-color: #667eea;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

/* Expense Grid & Cards */
.expenses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
	gap: 12px;
	justify-content: center; /* center tracks when row not full */
}

/* Prevent grid children from overflowing container */
.expenses-grid { min-width: 0; }

@media (max-width: 900px) {
	/* Keep centered tracks with fixed column width on tablets */
	.expenses-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content:center; }
}

@media (max-width: 640px) {
	.expenses-grid { grid-template-columns: 1fr; }
}

.expenses-empty {
	text-align: center;
	padding: 40px 20px;
	color: #9ca3af;
}

.empty-icon {
	font-size: 48px;
	margin-bottom: 16px;
	color: #d1d5db;
}

.expenses-empty h3 {
	margin: 0 0 8px 0;
	font-size: 16px;
	color: #6b7280;
}

/* ===== EXPENSES WRAPPER & HEADER ===== */
.expenses-wrapper {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	overflow: hidden;
    box-sizing: border-box;
}

.expenses-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
.expenses-title-group { display:flex; align-items:flex-start; gap:12px; }
.expenses-icon {
	width: 48px;
	height: 48px;
	aspect-ratio: 1 / 1;
	flex: 0 0 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(102,126,234,0.25);
	overflow: hidden;
}
.expenses-title { margin:0; font-size:22px; font-weight:700; color:#111827; }
.expenses-subtitle { margin:4px 0 0; font-size:13px; color:#6b7280; }

.btn-add-expense {
	padding: 10px 16px;
	background: linear-gradient(135deg, #667eea, #764ba2);
	color:#fff; border:none; border-radius:12px; font-weight:600; font-size:14px;
	display:inline-flex; align-items:center; gap:8px; cursor:pointer; white-space:nowrap;
	box-shadow: 0 2px 8px rgba(102,126,234,0.25); transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-add-expense:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(102,126,234,0.35); }

.expenses-stats { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:12px; margin-bottom: 12px; }
.stat-icon { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; }
.stat-icon--spending { background: linear-gradient(135deg, #ef4444, #f59e0b); }
.stat-icon--count { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.stat-icon--category { background: linear-gradient(135deg, #10b981, #059669); }
.stat-content { display:flex; flex-direction:column; }

@media (max-width: 640px) {
	.expenses-wrapper { padding:16px; }
	.btn-add-expense { width:100%; justify-content:center; }
}

@media (max-width: 400px) {
	.expenses-wrapper { padding:12px; }
	.expenses-icon { width:36px; height:36px; aspect-ratio:1/1; flex:0 0 36px; border-radius:50%; }
}

/* ===== CUENTAS (ACCOUNTS) STYLES ===== */

/* Utilities */
.one-line-ellipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.muted { color: #6b7280; }

/* Enhanced expense card layout */
.expense-card--compact {
	grid-template-columns: 60px 1fr auto;
}
.expense-card__account {
	margin-top: 6px;
	font-size: 12px;
	color: #6b7280;
}
.expense-card__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}
.expense-card__cta {
	display: flex;
	align-items: center;
	gap: 8px;
}
.btn-tiny {
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 12px;
}

/* Icon-only subtle button */
.btn-icon {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: none;
	background: rgba(0, 0, 0, 0.05);
	color: #374151;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}
.btn-icon:hover { background: rgba(0, 0, 0, 0.08); }
.btn-icon:active { transform: scale(0.98); }

.expense-card__quick {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
}

/* Expense card responsiveness */
@media (max-width: 720px) {
	.expense-card { grid-template-columns: 1fr; align-items:flex-start; }
	.expense-card__icon { width:48px; height:48px; font-size:20px; }
	.expense-card__amount { text-align:left; }
	.expense-card__right { align-items:flex-start; }
	.expense-card__quick { top:8px; right:8px; }
	.category-pill { max-width: 140px; }
}

@media (max-width: 400px) {
	.category-pill { max-width: 110px; }
}

/* Expense details modal layout */
.expense-details-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
}
.expense-details-item { display: flex; flex-direction: column; gap: 6px; }
.expense-details-item--full { grid-column: 1 / -1; }
.expense-details-label { font-size: 12px; font-weight: 700; color: #64748b; display: flex; align-items: center; gap: 6px; }
.expense-details-value { font-size: 14px; color: #111827; word-break: break-word; }

@media (max-width: 560px) {
	.expense-details-grid { grid-template-columns: 1fr; }
}

/* Cuentas Wrapper */
.cuentas-wrapper {
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 32px;
	margin-top: 32px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cuentas-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 32px;
	gap: 20px;
	flex-wrap: wrap;
}

.cuentas-title-group {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.cuentas-icon {
	width: 56px;
	height: 56px;
	background: linear-gradient(135deg, #10b981, #059669);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: white;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.cuentas-title {
	margin: 0 0 6px 0;
	font-size: 24px;
	font-weight: 700;
	color: #1f2937;
}

.cuentas-subtitle {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
	line-height: 1.5;
}

.btn-add-cuenta {
	padding: 12px 24px;
	background: linear-gradient(135deg, #10b981, #059669);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.btn-add-cuenta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Cuentas Content */
.cuentas-content {
	background: #f9fafb;
	border-radius: 12px;
	padding: 24px;
}

.cuentas-list-header {
	margin-bottom: 20px;
}

.cuentas-list-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
}

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

@media (max-width: 640px) {
	.cuentas-wrapper { padding:20px; }
	.cuentas-content { padding:16px; }
	.cuentas-grid { grid-template-columns: 1fr; }
	.cuentas-header { gap:12px; }
	.btn-add-cuenta { width:100%; justify-content:center; }
}

/* Cuenta Card */
.cuenta-card {
	background: white;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	transition: all 0.3s ease;
	cursor: pointer;
}

.cuenta-card:hover {
	border-color: #10b981;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
	transform: translateY(-2px);
}

.cuenta-card__icon {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, #d1fae5, #a7f3d0);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #059669;
	flex-shrink: 0;
}

.cuenta-card__content {
	flex: 1;
	min-width: 0;
}

.cuenta-card__title {
	font-size: 15px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 4px 0;
}

.cuenta-card__key {
	font-size: 13px;
	color: #6b7280;
	font-family: 'Courier New', monospace;
	background: #f3f4f6;
	padding: 2px 8px;
	border-radius: 4px;
	display: inline-block;
}

.cuenta-card__status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 12px;
}

.cuenta-card__status.active {
	color: #059669;
}

.cuenta-card__status.inactive {
	color: #dc2626;
}

.cuenta-card__actions {
	display: flex;
	gap: 8px;
}

.cuenta-card__delete {
	padding: 8px;
	background: #fef2f2;
	border: none;
	color: #ef4444;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cuenta-card__delete:hover {
	background: #fee2e2;
	color: #dc2626;
}

/* Empty State */
.cuentas-empty {
	text-align: center;
	padding: 60px 20px;
	color: #9ca3af;
}

.cuentas-empty .empty-icon {
	font-size: 64px;
	margin-bottom: 20px;
	color: #d1d5db;
}

.cuentas-empty h3 {
	margin: 0 0 12px 0;
	font-size: 18px;
	color: #6b7280;
	font-weight: 600;
}

.cuentas-empty p {
	margin: 0 0 24px 0;
	font-size: 14px;
	color: #9ca3af;
}

/* ===== CUENTA MODAL STYLES ===== */
.cuenta-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 20px;
}

.cuenta-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
}

.cuenta-modal-content {
	position: relative;
	background: white;
	border-radius: 20px;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
	width: 100%;
	max-width: 550px;
	max-height: 90vh;
	overflow: hidden;
	animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cuenta-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 32px 32px 24px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: white;
	position: relative;
	overflow: hidden;
}

.cuenta-modal-header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 100px;
	height: 100px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	transform: rotate(45deg);
}

.modal-icon.cuenta-icon {
	background: rgba(255, 255, 255, 0.25);
}

.cuenta-modal-close {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 10px;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.cuenta-modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.05);
}

.cuenta-modal-body {
	padding: 32px;
	max-height: 60vh;
	overflow-y: auto;
}

.cuenta-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cuenta-preview {
	background: #ecfdf5;
	border: 2px dashed #a7f3d0;
	border-radius: 12px;
	padding: 20px;
	text-align: center;
}

.cuenta-tag-preview {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: linear-gradient(135deg, #10b981, #059669);
	color: white;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
}

.cuenta-modal-footer {
	display: flex;
	gap: 16px;
	padding: 24px 32px 32px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}
