/* Dashboard and Authentication Styles for Like AI PRO */

/* Auth Pages Styles */
.auth-container {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 600px;
  padding: 32px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header h1 {
  font-size: 32px;
  margin: 0 0 8px 0;
  color: var(--text);
}

.auth-header p {
  color: var(--muted);
  margin: 0;
}

.auth-lang-toggle{
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Fix dropdown text visibility */
select.input2,
select {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.05);
}

select.input2 option,
select option {
  color: #1a1d2e;
  background-color: #fff;
}

select.input2 option[disabled],
select option[disabled] {
  color: var(--muted);
  opacity: 0.6;
}

.form-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.form-section:first-of-type {
  padding-top: 8px;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  margin: 0 0 24px 0;
  font-size: 18px;
  color: var(--accent);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-group small {
  font-size: 12px;
  color: var(--muted);
}

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

.input2 {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
}

.input2:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.input2::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

/* Style for select when showing placeholder (empty value) */
select.input2:invalid,
select:invalid {
  color: var(--muted);
  opacity: 0.7;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: underline;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.error-message, .success-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin: 12px 0;
  display: none;
}

.error-message {
  background: rgba(255, 50, 50, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.error-message[style*="display: block"],
.success-message[style*="display: block"] {
  display: block !important;
}

.success-message {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.auth-footer p {
  color: var(--muted);
  margin: 0;
}

.auth-footer a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.forgot-password-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-top: 8px;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-container {
  padding: 40px 20px;
  max-width: 1200px;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.user-greeting {
  color: var(--muted);
  font-size: 14px;
}

.user-greeting strong {
  color: var(--text);
}

.dashboard-section {
  margin-bottom: 60px;
}

.dashboard-section h2 {
  font-size: 28px;
  margin: 0 0 24px 0;
  color: var(--text);
}

.dashboard-section h3 {
  font-size: 20px;
  margin: 0 0 16px 0;
  color: var(--text);
}

/* Stats Grid */
.profile-overview{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin: 18px 0 24px;
}

.profile-card{
  padding: 24px;
}

.profile-main{
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.profile-avatar{
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,211,238,.35), rgba(124,92,255,.35));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  border: 1px solid var(--line);
}

.profile-text {
  flex: 1;
  min-width: 0;
}

.profile-name{
  margin: 0 0 6px;
}

.profile-subtitle{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.profile-meta{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 14px;
}

.meta-item{
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.meta-label {
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.meta-value {
  color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 1100px) {
  .profile-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .profile-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.quick-actions-card{
  padding: 18px;
}

.quick-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-actions .btn {
  text-align: center;
}

@media (max-width: 900px){
  .profile-overview{
    grid-template-columns: 1fr;
  }
  .profile-main{
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    font-size: 18px;
  }
  .profile-meta {
    grid-template-columns: 1fr;
  }
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.credits-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.credits-card{
  padding: 18px;
}

.credits-desc{
  color: var(--muted);
  margin: 6px 0 14px;
}

.credits-form{
  display: grid;
  gap: 10px;
}

.credits-list{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.credits-list li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}

.modal-plan{
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}

.plan-summary{
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-limit {
  font-size: 12px;
  color: var(--muted);
}

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

.info-card {
  padding: 24px;
}

.info-card h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: var(--accent);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.info-label {
  color: var(--muted);
  font-size: 14px;
}

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

/* Plan Badge */
.plan-badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: white;
  border-radius: 20px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
}

.plan-details p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px 0;
}

.plan-status {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.trial {
  background: rgba(255, 180, 0, 0.2);
  color: var(--warn);
}

.status-badge.active {
  background: rgba(34, 211, 238, 0.2);
  color: var(--accent);
}

.status-badge.cancelled, .status-badge.expired {
  background: rgba(255, 50, 50, 0.2);
  color: var(--danger);
}

.btn--small {
  padding: 8px 16px;
  font-size: 13px;
}

/* Current Plan Card */
.current-plan-card {
  padding: 32px;
  margin-bottom: 32px;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.plan-header h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
}

.plan-price {
  text-align: right;
}

.plan-price .price {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

.plan-price .period {
  font-size: 14px;
  color: var(--muted);
}

.plan-info {
  margin-bottom: 24px;
}

.plan-features {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.plan-features h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: var(--text);
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.plan-features li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-size: 14px;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  background: var(--card);
  padding: 6px;
  border-radius: 12px;
  width: fit-content;
}

.billing-btn {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-btn.active {
  background: var(--accent);
  color: white;
}

.save-badge {
  background: var(--warn);
  color: var(--bg);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.plan-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.plan-card:hover {
  transform: translateY(-4px);
}

.plan-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.plan-popular-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.plan-card h4 {
  font-size: 20px;
  margin: 0 0 8px 0;
  color: var(--text);
}

.plan-card .plan-description {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px 0;
  min-height: 40px;
}

.plan-card .plan-price {
  margin-bottom: 20px;
}

.plan-card .plan-price .price {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
}

.plan-card .plan-features {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.plan-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}

/* Company Form */
.company-form {
  padding: 32px;
}

.company-form .form-row {
  margin-bottom: 16px;
}

.company-form .form-group {
  margin-bottom: 16px;
}

/* Hide plans section in dashboard - show only in modal */
.plans-section {
  display: none;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  max-width: 500px;
  width: 100%;
  padding: 0;
  animation: modalSlideIn 0.3s ease-out;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Make manage plan modal wider for grid layout */
.manage-plan-modal {
  max-width: 1000px;
}

/* Make plan change modal opaque background */
.plan-change-modal {
  background: var(--bg);
}

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

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

.modal-header h3 {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

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

.modal-body {
  padding: 24px;
  background: var(--bg);
  color: var(--text);
}

.modal-body p {
  color: var(--muted);
  margin: 0 0 20px 0;
}

.plan-features-modal {
  margin: 20px 0;
}

.plan-features-modal h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--text);
}

.plan-features-modal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features-modal li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--muted);
  font-size: 13px;
}

.plan-features-modal li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.plan-pricing {
  text-align: center;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
  margin: 20px 0;
}

.modal-footer {
  padding: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Plan Change Modal Styling */
.plan-change-modal .modal-body {
  padding: 40px 30px;
}

.manage-plan-modal .modal-body {
  padding: 30px;
  max-height: 70vh;
  overflow-y: auto;
}

.plan-preview {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.1));
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.plan-preview-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.plan-preview h2 {
  margin: 0 0 16px 0;
  font-size: 28px;
  color: var(--text);
}

.plan-pricing-preview {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.plan-pricing-preview .price {
  font-size: 36px;
  font-weight: bold;
  color: #00d4ff;
}

.plan-pricing-preview .period {
  font-size: 14px;
  color: var(--muted);
}

.plan-change-features {
  margin: 30px 0;
}

.plan-change-features h4 {
  color: var(--text);
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
}

.plan-change-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-change-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.plan-change-features li:before {
  content: '✓';
  color: #00d4ff;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

/* Manage Plan Modal */
.manage-billing-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  justify-content: center;
}

.manage-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Downgrade button styling */
#confirmChange.downgrade {
  background-color: #ff6b6b;
  border-color: #ff6b6b;
  color: white;
}

#confirmChange.downgrade:hover {
  background-color: #ff5252;
  border-color: #ff5252;
}

/* Settings Section */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.settings-card {
  padding: 24px;
}

.settings-card h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: var(--accent);
}

.settings-card .info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.settings-card .info-row:last-of-type {
  border-bottom: none;
}

.settings-card .info-label {
  color: var(--muted);
  font-size: 14px;
  min-width: 120px;
}

.settings-card .info-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  text-align: right;
}

.settings-card .btn {
  margin-top: 20px;
  width: 100%;
}

.language-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.language-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.language-buttons .btn {
  flex: 1;
  width: auto;
  margin: 0;
}

/* Settings Form Tabs */
.settings-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--line);
}

.tab-btn {
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

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

.settings-form {
  max-width: 600px;
  padding: 32px;
  margin-bottom: 40px;
}

.settings-form h2 {
  margin: 0 0 24px 0;
  font-size: 24px;
  color: var(--text);
}

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

.settings-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.settings-form .form-row .form-group {
  margin-bottom: 0;
}

.settings-form .input2 {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
}

/* Overflow solo para inputs de texto, no para select */
.settings-form input.input2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-form input.input2:focus {
  white-space: normal;
  overflow: visible;
}

.settings-form .input2:focus {
  white-space: normal;
}

/* Mejoras para select en settings */
.settings-form select.input2 {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23eaf0ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Solo remover appearance en desktop */
@media (min-width: 769px) {
  .settings-form select.input2 {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }
}

.settings-form select.input2 option {
  white-space: normal;
  overflow-wrap: break-word;
}

.settings-form .input2:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.settings-form .input2[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-form small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.settings-form .btn {
  margin-top: 24px;
}

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

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

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

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

  .plan-header {
    flex-direction: column;
    gap: 16px;
  }

  .plan-price {
    text-align: left;
  }

  .auth-card {
    padding: 24px;
  }

  .dashboard-container {
    padding: 20px 12px;
  }

  /* Mejoras para topbar en móvil */
  .topbar__inner {
    padding: 0 12px;
  }

  .topbar__actions {
    gap: 8px;
  }

  .topbar__actions .btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .brand__name {
    font-size: 14px;
  }

  /* Ocultar greeting en móvil */
  .user-greeting {
    display: none;
  }

  /* Mejoras para quick actions en móvil */
  .quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .quick-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Mejoras para profile overview en móvil */
  .profile-main {
    flex-direction: column;
    gap: 16px;
  }

  .profile-meta {
    flex-wrap: wrap;
    gap: 12px;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .profile-info h2 {
    font-size: 20px;
  }

  .profile-info p {
    font-size: 13px;
  }

  /* Mejoras para settings en móvil */
  .settings-form {
    padding: 20px 16px;
  }

  .settings-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .settings-form .input2 {
    font-size: 16px; /* Evita zoom en iOS */
    min-height: 48px; /* Tamaño táctil mínimo */
  }

  /* Resetear completamente el select en móvil para usar nativo */
  .settings-form select.input2 {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    background: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    min-height: 48px !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    color: var(--text) !important;
  }

  select.input2,
  select {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
  }

  .settings-form select.input2 option {
    font-size: 16px;
  }
}

/* Success and Error Modal Styles */
.success-modal .modal-body,
.error-modal .modal-body {
  text-align: center;
  padding: 40px 30px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  animation: scaleIn 0.5s ease-out;
}

.error-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  animation: scaleIn 0.5s ease-out;
}

.success-modal h3 {
  color: #00d4ff;
  margin: 0 0 12px 0;
  font-size: 24px;
}

.error-modal h3 {
  color: #ff6b6b;
  margin: 0 0 12px 0;
  font-size: 24px;
}

.success-modal p,
.error-modal p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

