/* Dashboard Styles */

/* Auth Page */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f5f7ff 0%, #fff 100%);
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
  padding: 40px 20px;
}

.auth-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 20px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.auth-header p {
  color: #666;
  font-size: 15px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: #f5f7ff;
  padding: 4px;
  border-radius: 10px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: white;
  color: #38A3A5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Forgot Password */
.forgot-password-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

.forgot-password-link a {
  color: #38A3A5;
  text-decoration: none;
}

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

.forgot-password-intro {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.back-to-login {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.auth-divider span {
  padding: 0 16px;
  color: #9ca3af;
  font-size: 14px;
}

/* Google Sign-In */
.google-signin-container {
  display: flex;
  justify-content: center;
}

.google-signin-container > div {
  width: 100% !important;
}

/* Microsoft Sign-In */
.microsoft-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  margin-top: 12px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #3c4043;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.microsoft-signin-btn:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.microsoft-signin-btn:focus {
  border-color: #dadce0;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.microsoft-signin-btn svg {
  flex-shrink: 0;
}

/* Sign in with Apple — follows Apple HIG: black bg, white text, min 44pt height */
.apple-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  margin-top: 12px;
  background: #000;
  border: 1px solid #000;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.apple-signin-btn:hover {
  background: #1a1a1a;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

.apple-signin-btn:focus {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

.apple-signin-btn svg {
  flex-shrink: 0;
}

.back-to-login a {
  color: #38A3A5;
  text-decoration: none;
}

.back-to-login a:hover {
  text-decoration: underline;
}

.success-message {
  text-align: center;
  padding: 20px 0;
}

.success-message h3 {
  color: #38A3A5;
  margin-bottom: 12px;
}

.success-message p {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: #f3f6f8;
  font-family: var(--font-sans, 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

/* Sidebar */
.sidebar {
  width: 264px;
  background: linear-gradient(180deg, #1d1d33 0%, #18182a 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 26px 16px 22px;
}

.sidebar-logo {
  font-size: 24px;
  font-weight: var(--fw-heading, 700);
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

.sidebar-logo-img {
  height: 32px;
  width: auto;
}

.admin-badge {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 0 16px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: var(--fw-button, 600);
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.sidebar-link.active {
  background: linear-gradient(135deg, #47b89f, #2a7f8c);
  color: white;
  box-shadow: 0 8px 18px -6px rgba(42, 148, 140, 0.45);
}

.sidebar-link .sidebar-icon svg {
  display: block;
}

.sidebar-link .sidebar-icon svg * {
  stroke: rgba(255, 255, 255, 0.65);
}

.sidebar-link:hover .sidebar-icon svg *,
.sidebar-link.active .sidebar-icon svg * {
  stroke: #ffffff;
}

.sidebar-link.sidebar-link-disabled {
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

.sidebar-link.sidebar-link-disabled:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
}

.sidebar-link.sidebar-link-disabled .sidebar-icon {
  opacity: 0.5;
}

.sidebar-sublink {
  padding-left: 46px;
  font-size: 14px;
}

.sidebar-submenu {
  display: flex;
  flex-direction: column;
}

.sidebar-submenu-toggle {
  position: relative;
}

.submenu-arrow {
  margin-left: auto;
  font-size: 10px;
  transition: transform 0.2s ease;
}

.sidebar-submenu.open .submenu-arrow {
  transform: rotate(180deg);
}

.sidebar-submenu-items {
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  margin: 4px 8px;
  overflow: hidden;
}

.sidebar-submenu.open .sidebar-submenu-items {
  display: flex;
}

.sidebar-submenu-items .sidebar-sublink {
  padding: 10px 12px 10px 40px;
  font-size: 13px;
  border-radius: 0;
}

.sidebar-submenu-items .sidebar-sublink:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-submenu-items .sidebar-sublink.active {
  background: var(--primary-color);
}

.sidebar-icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  flex: none;
}

.support-badge {
  margin-left: auto;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 0 16px 20px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  background: linear-gradient(135deg, #47b89f, #2a7f8c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--fw-heading, 700);
  font-size: 15px;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.sidebar-user-email {
  color: white;
  font-size: 13px;
  font-weight: var(--fw-button, 600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sidebar-user-plan {
  display: inline-flex;
  margin-top: 3px;
  background: rgba(94, 210, 183, 0.16);
  color: #6fd3c2;
  font-size: 10.5px;
  font-weight: var(--fw-heading, 700);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
}

.sidebar-logout {
  color: rgba(255, 255, 255, 0.6) !important;
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

/* Mobile Header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  border-bottom: 1px solid #eee;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
}

.mobile-sidebar-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-sidebar-toggle span {
  width: 22px;
  height: 2px;
  background: #333;
}

.mobile-logo {
  font-size: 22px;
  font-weight: 700;
  color: #22577A;
  text-decoration: none;
}

.mobile-user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #38A3A5 0%, #22577A 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.sidebar-overlay.active {
  display: block;
}

/* Main Content */
.dashboard-main {
  flex: 1;
  margin-left: 264px;
  min-height: 100vh;
}

.dashboard-content {
  padding: 36px 44px 56px;
  /* 1080px content + 2×44px padding (border-box) */
  max-width: 1168px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.dashboard-header h1 {
  font-size: 28px;
  font-weight: var(--fw-heading, 700);
  letter-spacing: -0.8px;
  color: #1b2230;
  margin-bottom: 5px;
}

.dashboard-subtitle {
  color: #66707d;
  font-size: 14.5px;
}

.back-btn {
  background: none;
  border: none;
  color: #38A3A5;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 8px;
}

.back-btn:hover {
  text-decoration: underline;
}

.btn-primary-dashboard {
  background: linear-gradient(135deg, #47b89f, #2a948c);
  color: white;
  border: none;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: var(--fw-button, 600);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 10px 22px -8px rgba(42, 148, 140, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary-dashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(42, 148, 140, 0.6);
}

.btn-primary-dashboard:focus-visible {
  outline: 2px solid #1d6a78;
  outline-offset: 2px;
}

.btn-primary-dashboard.btn-disabled,
.btn-primary-dashboard:disabled {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-primary-dashboard.btn-disabled:hover,
.btn-primary-dashboard:disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn-danger-outline {
  background: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-outline:hover {
  background: #dc3545;
  color: white;
}

.btn-danger-outline:focus-visible {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px -10px rgba(25, 60, 70, 0.12);
  border: 1px solid #e9eef0;
}

.stat-icon {
  width: 48px;
  height: 48px;
  flex: none;
  background: linear-gradient(135deg, rgba(71, 184, 159, 0.16), rgba(29, 106, 120, 0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-info {
  min-width: 0;
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: var(--fw-heading, 700);
  letter-spacing: -0.8px;
  color: #1b2230;
  line-height: 1;
  display: block;
}

.stat-denominator {
  font-size: 16px;
  font-weight: var(--fw-subheading, 600);
  letter-spacing: 0;
  color: #94a0ab;
}

.stat-label {
  font-size: 13.5px;
  font-weight: var(--fw-label, 500);
  color: #66707d;
  display: block;
  margin-top: 4px;
}

.stat-progress {
  height: 6px;
  border-radius: 999px;
  background: #e9eef0;
  margin-top: 9px;
  overflow: hidden;
}

.stat-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #47b89f, #2a948c);
  transition: width 0.3s ease;
}

/* Cards Section */
.cards-section {
  margin-top: 24px;
}

.cards-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title-dash {
  font-size: 18px;
  font-weight: var(--fw-heading, 700);
  letter-spacing: -0.3px;
  color: #1b2230;
  margin: 0;
}

.cards-count {
  font-size: 13px;
  font-weight: var(--fw-label, 500);
  color: #8a94a0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Card Tile */
.card-tile {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px -10px rgba(25, 60, 70, 0.12);
  border: 1px solid #e9eef0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -14px rgba(25, 60, 70, 0.2);
}

.card-tile-header {
  background: linear-gradient(135deg, #36a89d 0%, #1d6a78 100%);
  height: 84px;
  position: relative;
  overflow: hidden;
}

.card-tile-header::before,
.card-tile-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.card-tile-header::before {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  top: -50px;
  left: -30px;
}

.card-tile-header::after {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.07);
  bottom: -45px;
  right: 30px;
}

.card-tile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid white;
  margin-top: -36px;
  object-fit: cover;
  background: white;
  box-shadow: 0 8px 20px rgba(20, 55, 65, 0.18);
  display: block;
  position: relative;
}

.card-tile-body {
  padding: 0 22px 18px;
}

.card-tile-name {
  font-size: 18px;
  font-weight: var(--fw-heading, 700);
  color: #1b2230;
  margin-top: 10px;
  margin-bottom: 0;
}

.card-tile-title {
  font-size: 13.5px;
  color: #2aa39a;
  font-weight: var(--fw-subheading, 600);
  margin-top: 2px;
  margin-bottom: 0;
}

.card-tile-company {
  font-size: 13px;
  font-weight: var(--fw-label, 500);
  color: #6b7480;
  margin-top: 1px;
}

/* Sits inside .card-tile-body, which already provides the 22px side padding */
.card-tile-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef1f3;
}

.card-tile-footer .tile-btn:not(.tile-btn-primary) {
  flex: 1;
  justify-content: center;
}

.card-tile-url {
  display: flex;
  align-items: center;
  gap: 6px;
}

.url-icon {
  font-size: 14px;
}

.url-text {
  font-size: 13px;
  color: #888;
  font-family: monospace;
}

.card-tile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.tile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  background: white;
  border: 1px solid #dfe7e9;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: var(--fw-button, 600);
  font-family: inherit;
  color: #3c4554;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tile-btn svg {
  flex: none;
}

.tile-btn:hover {
  border-color: #2aa39a;
  color: #17777e;
}

.tile-btn:disabled,
.tile-btn:disabled:hover {
  background: #f1f4f6;
  border-color: #e3e8eb;
  color: #a0a8b3;
  cursor: not-allowed;
  transform: none;
}

.tile-btn-primary {
  background: linear-gradient(135deg, #47b89f, #2a948c);
  border: none;
  color: #ffffff;
  padding: 9px 12px;
  margin-left: auto;
  box-shadow: 0 8px 16px -6px rgba(42, 148, 140, 0.5);
  transition: transform 0.15s ease;
}

.tile-btn-primary:hover {
  transform: translateY(-1px);
  border: none;
  color: #ffffff;
}

/* Create-new dashed tile */
.create-card-tile {
  border: 1.5px dashed #c3d4d1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  min-height: 232px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.create-card-tile:hover {
  border-color: #2aa39a;
  background: #ffffff;
}

.create-card-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(42, 163, 154, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.create-card-tile-label {
  font-size: 14.5px;
  font-weight: var(--fw-button, 600);
  color: #17777e;
}

.create-card-tile-slots {
  font-size: 12.5px;
  font-weight: var(--fw-label, 500);
  color: #8a94a0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: white;
  border-radius: 16px;
  border: 2px dashed #e1e5eb;
}

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

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.empty-state p {
  color: #666;
  margin-bottom: 24px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  color: #38A3A5;
  border: 2px solid #38A3A5;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary-dashboard:hover {
  background: #f5f5ff;
  transform: translateY(-2px);
}

.btn-secondary-dashboard:focus-visible {
  outline: 2px solid #38A3A5;
  outline-offset: 2px;
}

/* Editor Layout */
.editor-layout {
  display: grid;
  grid-template-columns: minmax(400px, 550px) minmax(320px, 400px);
  gap: 32px;
  align-items: start;
  justify-content: center;
}

.editor-form-container {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #eee;
}

.form-section {
  margin-bottom: 32px;
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.form-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

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

.form-group-full {
  grid-column: 1 / -1;
}

/* Image Upload Modern */
.image-upload-modern {
  display: flex;
  align-items: center;
  gap: 24px;
}

.image-preview-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f5f7ff;
}

.logo-preview-large {
  width: 120px;
  height: 60px;
  border-radius: 8px;
  object-fit: contain;
  border: 2px solid #e2e8f0;
  background: #fff;
  padding: 8px;
}

.image-upload-btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f5f7ff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #38A3A5;
  transition: all 0.2s;
}

.image-upload-btn-modern:hover {
  background: #e8ecff;
}

.image-upload-btn-modern input {
  display: none;
}

/* Input with prefix */
.input-with-prefix {
  display: flex;
  border: 2px solid #e1e5eb;
  border-radius: 8px;
  overflow: hidden;
}

.input-with-prefix:focus-within {
  border-color: #38A3A5;
  box-shadow: 0 0 0 3px rgba(56, 163, 165, 0.1);
}

.input-prefix {
  background: #f5f7ff;
  padding: 12px 16px;
  color: #888;
  font-size: 14px;
  border-right: 2px solid #e1e5eb;
}

.input-with-prefix input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 16px;
}

.input-with-prefix input:focus {
  outline: none;
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #888;
}

.required {
  color: #e74c3c;
  font-weight: 500;
}

.slug-input-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.slug-input-wrapper:focus-within {
  border-color: #38A3A5;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.slug-prefix {
  padding: 12px;
  background: #f8f9fc;
  color: #666;
  font-weight: 500;
  border-right: 1px solid #e2e8f0;
}

.slug-input-wrapper input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 15px;
  outline: none;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

/* Editor Preview */
.editor-preview {
  position: sticky;
  top: 32px;
}

.preview-title {
  font-size: 14px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.preview-phone {
  background: #1a1a2e;
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.preview-phone::before {
  content: '';
  display: block;
  width: 60px;
  height: 20px;
  background: #1a1a2e;
  border-radius: 10px;
  margin: 0 auto 8px;
}

.preview-phone-screen {
  background: linear-gradient(135deg, #38A3A5 0%, #22577A 100%);
  border-radius: 24px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

.preview-iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: none;
  border-radius: 20px;
  background: #f5f5f7;
}

.preview-actions-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.preview-actions-bar .btn-small {
  padding: 8px 16px;
  font-size: 12px;
}

.preview-card {
  background: white;
  border-radius: 20px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.preview-header-bg {
  background: linear-gradient(180deg, #38A3A5 0%, #22577A 100%);
  height: 80px;
  position: relative;
}

.preview-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid white;
  margin-top: -40px;
  object-fit: cover;
  background: #f5f5f5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.preview-name {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 16px 0 4px;
  letter-spacing: -0.02em;
}

.preview-title-text {
  font-size: 14px;
  color: #38A3A5;
  font-weight: 500;
  margin-bottom: 2px;
}

.preview-company {
  font-size: 13px;
  color: #86868b;
  margin-bottom: 12px;
}

.preview-bio {
  font-size: 12px;
  color: #86868b;
  line-height: 1.5;
  margin-bottom: 16px;
  padding: 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 16px;
  text-align: left;
}

.preview-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #1d1d1f;
}

.preview-contact-item svg {
  width: 16px;
  height: 16px;
  fill: #86868b;
  flex-shrink: 0;
}

.preview-social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.preview-social-link:hover {
  background: #e8e8ed;
}

.preview-social-link svg {
  width: 16px;
  height: 14px;
  fill: #555;
}

.preview-actions {
  padding: 0 16px 20px;
}

.preview-btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.preview-btn:hover {
  transform: translateY(-1px);
}

.preview-btn-primary {
  background: linear-gradient(135deg, #38A3A5 0%, #22577A 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(56, 163, 165, 0.3);
}

.preview-btn-primary:hover {
  box-shadow: 0 6px 16px rgba(56, 163, 165, 0.4);
}

/* Customers Table */
.customers-table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.customers-table {
  width: 100%;
  border-collapse: collapse;
}

.customers-table th {
  background: #f8fafc;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0;
}

.customers-table td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #334155;
}

.customers-table tr:hover {
  background: #f8fafc;
}

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

.customer-email {
  font-weight: 500;
  color: #1e293b;
}

.customer-plan {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.customer-plan.free {
  background: #f1f5f9;
  color: #64748b;
}

.customer-plan.pro {
  background: #dbeafe;
  color: #1d4ed8;
}

.customer-plan.business {
  background: #fef3c7;
  color: #b45309;
}

.customer-role {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.customer-role.admin {
  background: #fee2e2;
  color: #dc2626;
}

.customer-role.user {
  background: #f1f5f9;
  color: #64748b;
}

.customer-actions {
  display: flex;
  gap: 8px;
}

.customer-actions .btn-small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.customer-expires {
  font-size: 13px;
}

.customer-expires.none {
  color: #10b981;
}

.customer-expires.expired {
  color: #dc2626;
  font-weight: 600;
}

.expired-row {
  background: #fef2f2 !important;
}

.expired-row:hover {
  background: #fee2e2 !important;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.modal.hidden {
  display: none;
}

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

.modal-content h2 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #1e293b;
}

/* Customer Edit Grid */
.customer-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .customer-edit-grid {
    grid-template-columns: 1fr;
  }
}

/* Customer Cards Section */
.customer-cards-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

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

.customer-cards-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.customer-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customer-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.customer-card-info {
  flex: 1;
}

.customer-card-name {
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 2px;
}

.customer-card-slug {
  font-size: 12px;
  color: #64748b;
}

.customer-card-slug a {
  color: #38A3A5;
  text-decoration: none;
}

.customer-card-slug a:hover {
  text-decoration: underline;
}

.customer-card-actions {
  display: flex;
  gap: 8px;
}

.no-cards {
  color: #64748b;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.btn-danger {
  background: #dc2626;
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-success {
  background: #16a34a;
  color: white;
  border: none;
}

.btn-success:hover {
  background: #15803d;
}

.btn-warning {
  background: #f59e0b;
  color: white;
  border: none;
}

.btn-warning:hover {
  background: #d97706;
}

/* Subscription badges */
.subscription-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.subscription-badge.active {
  background: #dcfce7;
  color: #16a34a;
}

.subscription-badge.inactive {
  background: #f3f4f6;
  color: #6b7280;
}

.subscription-badge.past-due {
  background: #fef3c7;
  color: #d97706;
}

/* Inactive card styling */
.card-item.card-inactive {
  opacity: 0.7;
  background: #f9fafb;
}

.card-item.card-inactive .card-item-image {
  filter: grayscale(50%);
}

/* Subscription info in modal */
.subscription-info {
  background: #f8f9fc;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.subscription-info p {
  margin: 8px 0;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-preview {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-header {
    display: flex;
  }

  .dashboard-main {
    margin-left: 0;
    padding-top: 60px;
  }

  .dashboard-content {
    padding: 20px;
  }

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

  .dashboard-header .btn-primary-dashboard {
    width: 100%;
    justify-content: center;
  }

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

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

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

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }

  .image-upload-modern {
    flex-direction: column;
    text-align: center;
  }
}

/* QR Modal Override */
.modal-content {
  border-radius: 16px !important;
}

.modal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
}

/* Company Tiles */
.company-tile .company-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.company-tile-logo {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
}

.company-tile-placeholder {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #38A3A5 0%, #22577A 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
}

.company-tile.dark-mode {
  background: #1a1a2e;
  border-color: #2d2d44;
}

.company-tile.dark-mode .card-tile-body {
  background: #1a1a2e;
}

.company-tile.dark-mode .card-tile-name {
  color: #ffffff;
}

.company-tile.dark-mode .card-tile-title,
.company-tile.dark-mode .card-tile-company {
  color: rgba(255, 255, 255, 0.7);
}

.company-tile.dark-mode .card-tile-footer {
  background: #0f0f1e;
  border-color: #2d2d44;
}

.company-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: white;
}

/* Logo Preview */
.logo-preview {
  border-radius: 12px !important;
  object-fit: contain;
  background: #f8f9fc;
}

/* Color Picker */
.color-picker-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.color-picker-wrapper input[type="color"] {
  width: 50px;
  height: 42px;
  border: 2px solid #e1e5eb;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
}

.color-text-input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e1e5eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: monospace;
}

.color-text-input:focus {
  outline: none;
  border-color: #38A3A5;
}

.color-presets {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.color-preset {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.color-preset:hover {
  transform: scale(1.1);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Mode Toggle */
.mode-toggle-wrapper {
  display: flex;
  gap: 12px;
}

.mode-toggle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 2px solid #e1e5eb;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-toggle:hover {
  border-color: #38A3A5;
}

.mode-toggle.active {
  border-color: #38A3A5;
  background: #f5f7ff;
}

.mode-icon {
  font-size: 24px;
}

.mode-toggle span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
}

/* Font Select (hidden native select, replaced by custom dropdown) */
select.font-select {
  display: none;
}

/* Custom font dropdown */
.font-dropdown {
  position: relative;
  width: 100%;
}

.font-dropdown-trigger {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5eb;
  border-radius: 8px;
  font-size: 17px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.font-dropdown-trigger:hover {
  border-color: #c5cad2;
}

.font-dropdown-trigger.open {
  border-color: #38A3A5;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.font-dropdown-trigger::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
  transform: rotate(45deg);
  margin-left: 10px;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.font-dropdown-trigger.open::after {
  transform: rotate(-135deg);
}

.font-dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: white;
  border: 2px solid #38A3A5;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 100;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.font-dropdown-list.open {
  display: block;
}

.font-dropdown-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 17px;
  transition: background 0.1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.font-dropdown-item:hover {
  background: #f0fafa;
}

.font-dropdown-item.selected {
  background: #e8f5f5;
  font-weight: 600;
}

/* Form Section Description */
.form-section-desc {
  color: #888;
  font-size: 14px;
  margin-top: -8px;
  margin-bottom: 20px;
}

/* Company Preview */
.preview-company-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: contain;
  margin-top: -30px;
  background: white;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-buttons {
  padding: 16px 20px 20px;
}

.preview-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

/* Dark mode preview */
.preview-card.dark-mode {
  background: #1a1a2e;
  color: #ffffff;
}

.preview-card.dark-mode .preview-name {
  color: #ffffff;
}

.preview-card.dark-mode .preview-title-text {
  color: #a5b4fc;
}

.preview-card.dark-mode .preview-company {
  color: rgba(255, 255, 255, 0.7);
}

.preview-phone-screen.dark-mode {
  background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
}

/* General select improvements for better native behavior */
select {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Card company select */
#card-company-select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5eb;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  cursor: pointer;
}

#card-company-select:focus {
  outline: none;
  border-color: #38A3A5;
}

/* Preview card dark mode */
#preview-card-container.dark-mode {
  background: #1a1a2e !important;
}

#preview-card-container.dark-mode .preview-name {
  color: #ffffff !important;
}

#preview-card-container.dark-mode .preview-title-text {
  color: #a5b4fc !important;
}

#preview-card-container.dark-mode .preview-company {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Toggle Switch */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.toggle-label input[type="checkbox"] {
  display: none;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  background: #cdd5dc;
  border-radius: 13px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch {
  background: #38A3A5;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch::before {
  transform: translateX(22px);
}

.form-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

/* Image Crop Modal */
.image-crop-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}

.image-crop-modal.hidden {
  display: none !important;
}

.image-crop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-crop-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.image-crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e1e5eb;
  background: #ffffff;
}

.image-crop-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.image-crop-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.image-crop-close:hover {
  color: #1e293b;
}

.image-crop-area {
  width: 100%;
  height: 350px;
  background: #1a1a2e;
  overflow: hidden;
}

.image-crop-area img {
  display: block;
  max-width: 100%;
}

.image-crop-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 16px 20px;
  border-top: 1px solid #e1e5eb;
  background: #f8fafc;
}

.crop-zoom,
.crop-rotate {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crop-zoom span,
.crop-rotate span {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.crop-zoom button,
.crop-rotate button {
  width: 36px;
  height: 36px;
  border: 2px solid #e1e5eb;
  background: white;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #1e293b;
}

.crop-zoom button:hover,
.crop-rotate button:hover {
  background: #38A3A5;
  border-color: #38A3A5;
  color: white;
}

.image-crop-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #e1e5eb;
  justify-content: flex-end;
  background: #ffffff;
}

.image-crop-actions .btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.image-crop-actions .btn-secondary {
  background: white;
  border: 2px solid #e1e5eb;
  color: #64748b;
}

.image-crop-actions .btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.image-crop-actions .btn-primary {
  background: linear-gradient(135deg, #38A3A5 0%, #22577A 100%);
  border: none;
  color: white;
}

.image-crop-actions .btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Mobile adjustments for image crop */
@media (max-width: 600px) {
  .image-crop-content {
    width: 95%;
    max-height: 85vh;
  }

  .image-crop-area {
    height: 280px;
  }

  .image-crop-controls {
    gap: 16px;
    padding: 12px 16px;
  }

  .crop-zoom span,
  .crop-rotate span {
    display: none;
  }

  .image-crop-actions {
    padding: 12px 16px;
  }

  .image-crop-actions .btn {
    padding: 10px 16px;
    flex: 1;
  }
}

/* Register Form Styles */
.register-trial-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  color: #166534;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}

.trial-gift {
  font-size: 18px;
}

.register-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

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

.register-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.form-hint {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.payment-options {
  display: flex;
  gap: 12px;
}

.payment-option {
  flex: 1;
  cursor: pointer;
}

.payment-option input {
  display: none;
}

.payment-option-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s;
}

.payment-option input:checked + .payment-option-content {
  border-color: #38A3A5;
  background: #e6f7f7;
}

.payment-option-icon {
  font-size: 24px;
}

.payment-option-text {
  display: flex;
  flex-direction: column;
}

.payment-option-text strong {
  font-size: 14px;
  color: #1f2937;
}

.payment-option-text small {
  font-size: 12px;
  color: #6b7280;
}

/* Auth card larger for registration */
.auth-card:has(#register-form:not(.hidden)) {
  max-width: 520px;
}

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

  .payment-options {
    flex-direction: column;
  }
}

/* My Account Page */
.account-sections {
  max-width: 800px;
}

.account-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.account-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.account-section-header .account-section-title {
  margin: 0;
  padding: 0;
  border: none;
}

.account-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 20px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

/* Inline edit form styles */
.account-edit-form {
  margin-top: 0;
}

.account-edit-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.account-edit-form .form-group-full {
  grid-column: 1 / -1;
}

.account-edit-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.account-edit-form .form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.account-edit-form .form-group input:focus {
  outline: none;
  border-color: #38A3A5;
}

.account-edit-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

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

.account-section-icon {
  font-size: 20px;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.account-field {
  margin-bottom: 0;
}

.account-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.account-field span {
  display: block;
  font-size: 15px;
  color: #1f2937;
  font-weight: 500;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

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

.account-badge.card {
  background: #dcfce7;
  color: #166534;
}

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

.account-badge.trial {
  background: #e0e7ff;
  color: #4338ca;
}

.account-badge.active {
  background: #dcfce7;
  color: #166534;
}

.account-badge.expired {
  background: #fee2e2;
  color: #dc2626;
}



.account-expires {
  font-weight: 500;
}

.account-expires.expired {
  color: #dc2626;
}

.account-expires.none {
  color: #059669;
}

.account-expires.trial {
  color: #4338ca;
}

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

.account-form .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

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

  .account-section {
    padding: 16px;
  }
}

/* Impersonation Banner */
#impersonation-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 14px;
}

#impersonation-banner span {
  display: flex;
  align-items: center;
  gap: 8px;
}

#impersonation-banner strong {
  font-weight: 600;
}

#impersonation-banner button {
  background: white;
  color: #d97706;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

#impersonation-banner button:hover {
  background: #fef3c7;
  transform: translateY(-1px);
}

/* Adjust body when impersonation banner is visible */
body:has(#impersonation-banner) .dashboard-layout {
  padding-top: 52px;
}

body:has(#impersonation-banner) .sidebar {
  top: 52px;
  height: calc(100vh - 52px);
}

@media (max-width: 768px) {
  #impersonation-banner {
    padding: 10px 16px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
  }

  #impersonation-banner button {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Pro Feature Styling */
.pro-feature {
  position: relative;
}

.pro-feature.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.pro-feature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 10;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #38A3A5 0%, #22577A 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pro-badge::before {
  content: "⭐";
  font-size: 10px;
}

.form-section-title .pro-badge {
  margin-left: 8px;
  vertical-align: middle;
}

.pro-upgrade-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e6f7f7 0%, #d0f0f0 100%);
  border: 1px solid #80cbc4;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #22577A;
}

.pro-upgrade-hint a {
  color: #38A3A5;
  font-weight: 600;
  text-decoration: none;
}

.pro-upgrade-hint a:hover {
  text-decoration: underline;
}

/* Disabled form elements in pro sections */
.pro-feature.disabled input,
.pro-feature.disabled select,
.pro-feature.disabled button,
.pro-feature.disabled .color-preset,
.pro-feature.disabled .mode-toggle {
  cursor: not-allowed;
}

.pro-feature.disabled input:focus,
.pro-feature.disabled select:focus {
  outline: none;
  box-shadow: none;
}

/* Upgrade Section (inline in account view) */
.upgrade-section-subtitle {
  color: #6b7280;
  margin: 0 0 16px 0;
  font-size: 14px;
}

.upgrade-purchase-action {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.upgrade-purchase-action .btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.modal-subtitle {
  color: #6b7280;
  margin-bottom: 8px;
}

.upgrade-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.upgrade-plan {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}

.upgrade-plan {
  cursor: pointer;
}

.upgrade-plan:hover {
  border-color: #38A3A5;
  transform: translateY(-2px);
}

.upgrade-plan.selected {
  border-color: #38A3A5;
  box-shadow: 0 0 0 3px rgba(56, 163, 165, 0.2);
}

.upgrade-plan.selected .plan-select-indicator::after {
  content: '✓';
}

.upgrade-plan.current-plan {
  border-color: #10b981;
  background: #f0fdf4;
  cursor: pointer;
}

.upgrade-plan.current-plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.upgrade-plan-featured {
  border-color: #38A3A5;
  background: linear-gradient(135deg, #e6f7f7 0%, #fff 100%);
}

.upgrade-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #38A3A5 0%, #22577A 100%);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.upgrade-plan-badge-business {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.upgrade-plan-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a2e;
  text-align: center;
}

.upgrade-plan-price {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  text-align: center;
}

.upgrade-plan-price span {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.upgrade-plan-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.upgrade-plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #4b5563;
  position: relative;
  padding-left: 24px;
}

.upgrade-plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 600;
}

.upgrade-plan-btn {
  width: 100%;
  margin-top: 16px;
}

.upgrade-plan-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Plan select indicator */
.upgrade-plan-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.2s;
}

.upgrade-plan:hover .upgrade-plan-select {
  border-color: #38A3A5;
  color: #38A3A5;
}

.upgrade-plan.selected .upgrade-plan-select {
  background: #38A3A5;
  border-color: #38A3A5;
  color: white;
}

.upgrade-plan.current-plan .upgrade-plan-select {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

/* Trial plan - still clickable, but shows trial status */
.upgrade-plan.trial-plan {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
  cursor: pointer;
}

.upgrade-plan.trial-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.upgrade-plan.trial-plan .upgrade-plan-select {
  background: #f59e0b;
  border-color: #f59e0b;
  color: white;
}

.plan-select-indicator {
  display: none;
}

/* Cart styles */
.upgrade-cart {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.upgrade-cart h4 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
}

.cart-items {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.cart-item-name {
  font-weight: 500;
  color: #374151;
}

.cart-item-price {
  font-weight: 600;
  color: #1a1a2e;
}

.cart-item-quantity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-quantity span {
  font-size: 14px;
  color: #6b7280;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.cart-summary {
  border-top: 2px solid #e5e7eb;
  padding-top: 12px;
}

.cart-subtotal,
.cart-vat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: #6b7280;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.upgrade-payment-method {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.upgrade-payment-method h4 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

/* Subscription Actions */
.subscription-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.subscription-actions .btn {
  flex: 1;
  min-width: 150px;
}

/* Trial button */
.btn-trial {
  background: linear-gradient(135deg, #38A3A5 0%, #22577A 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-trial:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 163, 165, 0.4);
}

/* Disabled sidebar items */
.sidebar-menu a.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Extra Cards Section */
.card-count-info {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.card-count-current,
.card-count-used {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-count-label {
  font-size: 13px;
  color: #6b7280;
}

.card-count-value {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
}

.extra-cards-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.extra-cards-form {
  flex: 1;
  min-width: 250px;
}

.extra-cards-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.extra-cards-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.extra-cards-input {
  width: 80px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
}

.extra-cards-input:focus {
  outline: none;
  border-color: #38A3A5;
  box-shadow: 0 0 0 3px rgba(56, 163, 165, 0.1);
}

/* Account section description */
.account-section-desc {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 12px;
}

/* Scheduled badge */
.account-badge.scheduled {
  background: #fef3c7;
  color: #92400e;
}

/* Cancelling badge - subscription scheduled for cancellation */
.account-badge.cancelling {
  background: #fef3c7;
  color: #b45309;
}

/* Awaiting payment badge */


/* Cart Summary */
.cart-summary {
  border-top: 2px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 12px;
}

.cart-subtotal,
.cart-vat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: #6b7280;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid #e5e7eb;
}

/* Quantity controls */
.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qty-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.quantity-controls span {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

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

  .subscription-actions {
    flex-direction: column;
  }

  .subscription-actions .btn {
    width: 100%;
  }
}

/* Contact Settings Card */
.contact-settings-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 2px solid #e9ecef;
}

.contact-settings-header h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-settings-header p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #6c757d;
}

.contact-settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
}

.contact-settings-form input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: none;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.2s;
}

.contact-settings-form input:focus {
  background: #e9ecef;
  outline: none;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #218838;
}

/* Contacts Table */
.contacts-table-wrapper {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contacts-table {
  width: 100%;
  border-collapse: collapse;
}

.contacts-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.contacts-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contacts-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s;
}

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

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

.contacts-table td {
  padding: 16px;
  font-size: 14px;
  color: #212529;
  vertical-align: top;
}

.contacts-table td a {
  color: #4361ee;
  text-decoration: none;
  transition: color 0.2s;
}

.contacts-table td a:hover {
  color: #3651d4;
  text-decoration: underline;
}

.contact-message {
  display: block;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6c757d;
  font-style: italic;
}

/* Contacts toolbar */
.contacts-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}

.contacts-toolbar-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.contacts-event-filter {
  width: auto;
  min-width: 180px;
  padding: 8px 12px;
  font-size: 14px;
}

.event-pill {
  display: inline-block;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: #E0F4F1;
  color: #0F7A6E;
}

.contacts-selection-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #e3f2fd;
  border-radius: 8px;
  font-size: 14px;
  color: #1565c0;
  font-weight: 500;
}

/* Checkbox column styling */
.contacts-table .checkbox-col {
  width: 40px;
  text-align: center;
  padding: 16px 8px !important;
}

.contacts-table .checkbox-col input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #007bff;
}

.contacts-table tbody tr.selected {
  background-color: #e3f2fd;
}

/* Responsive contacts table */
@media (max-width: 1200px) {
  .contacts-table-wrapper {
    overflow-x: auto;
  }

  .contacts-table {
    min-width: 900px;
  }
}

@media (max-width: 768px) {
  .contacts-table {
    min-width: 100%;
  }

  .contacts-table th,
  .contacts-table td {
    padding: 12px 8px;
    font-size: 13px;
  }

  .contact-message {
    max-width: 150px;
  }
}

/* Form field error styling */
.field-error {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
}

.field-error:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* Form status message */
.form-status {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideDown 0.3s ease-out;
}

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

.form-status.hidden {
  display: none;
}

.form-status.error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.form-status.success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.form-status.loading {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}

.form-status-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Onboarding options for new users */
.cards-grid:has(.onboarding-options) {
  display: block;
}

.onboarding-options {
  text-align: center;
  padding: 20px 0;
  max-width: 640px;
  margin: 0 auto;
}

.onboarding-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.onboarding-subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 40px 0;
}

.onboarding-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.onboarding-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.onboarding-btn:hover {
  border-color: #38A3A5;
  background: #f8fffe;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(56, 163, 165, 0.15);
}

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

.onboarding-btn-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #38A3A5;
  color: white;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.onboarding-btn-text {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.onboarding-btn-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-top: -4px;
}

.onboarding-btn-arrow {
  display: none;
}

.onboarding-btn-highlight {
  border-color: #38A3A5;
  background: linear-gradient(135deg, #f0fdf9 0%, #ffffff 100%);
  box-shadow: 0 2px 8px rgba(56, 163, 165, 0.12);
}

.onboarding-btn-highlight .onboarding-btn-number {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
}

.onboarding-btn-highlight:hover {
  border-color: #14b8a6;
  background: linear-gradient(135deg, #e6fffa 0%, #f0fdf9 100%);
}

.onboarding-btn-badge {
  background: #10b981;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.onboarding-btn-active {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 4px 12px rgba(16, 185, 129, 0.15);
  cursor: default;
}

.onboarding-btn-active:hover {
  transform: none;
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 4px 12px rgba(16, 185, 129, 0.15);
}

.onboarding-btn-badge-active {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 600px) {
  .onboarding-options {
    max-width: none;
  }

  .onboarding-buttons {
    grid-template-columns: 1fr;
  }

  .onboarding-btn {
    flex-direction: row;
    padding: 20px;
    text-align: left;
  }

  .onboarding-btn-icon {
    font-size: 32px;
  }

  .onboarding-btn-text {
    flex: 1;
    font-size: 15px;
  }

  .onboarding-btn-desc {
    display: none;
  }

  .onboarding-title {
    font-size: 20px;
  }

  .onboarding-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }
}

/* Sidebar Language Switcher */
.sidebar-lang-switch {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px !important;
}

.sidebar-lang-switch:hover {
  background: rgba(255, 255, 255, 0.1);
}

#lang-switcher-text {
  font-size: 15px;
}

/* AI Company Helper Box */
.ai-helper-box {
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 50%, #dbeafe 100%);
  border: 2px solid #a78bfa;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.ai-helper-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-helper-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.ai-helper-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e1b4b;
  margin: 0 0 4px;
}

.ai-helper-desc {
  font-size: 13px;
  color: #4338ca;
  margin: 0;
  line-height: 1.4;
}

.ai-helper-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ai-helper-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #c4b5fd;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: #1e1b4b;
  outline: none;
  transition: border-color 0.2s;
}

.ai-helper-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.ai-helper-input::placeholder {
  color: #a5b4fc;
}

.ai-helper-btn {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-helper-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ai-helper-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.ai-helper-status.status-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.ai-helper-status.status-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.spinner-small {
  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.6s linear infinite;
}

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

@media (max-width: 600px) {
  .ai-helper-input-row {
    flex-direction: column;
  }
  .ai-helper-btn {
    width: 100%;
    justify-content: center;
  }
}

/* AI Bio generate button */
.ai-bio-btn {
  margin-top: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #6d28d9;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  border: 1.5px solid #c4b5fd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-bio-btn:hover {
  background: linear-gradient(135deg, #ddd6fe, #c7d2fe);
  border-color: #a78bfa;
}

.ai-bio-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========== Funnel Onboarding Styles ========== */
.funnel-progress { margin-bottom: 32px; }
.funnel-progress-bar { height: 4px; background: #e2e8f0; border-radius: 2px; margin-bottom: 16px; overflow: hidden; }
.funnel-progress-fill { height: 100%; background: #E8552D; border-radius: 2px; transition: width 0.4s ease; width: 16.66%; }
.funnel-steps-indicator { display: flex; justify-content: space-between; }
.funnel-step-dot { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; padding: 0; opacity: 0.4; transition: opacity 0.3s; }
.funnel-step-dot.active, .funnel-step-dot.completed { opacity: 1; }
.funnel-step-number { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; color: #64748b; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; transition: all 0.3s; }
.funnel-step-dot.active .funnel-step-number { background: #E8552D; color: #fff; }
.funnel-step-dot.completed .funnel-step-number { background: #059669; color: #fff; }
.funnel-step-label { font-size: 12px; color: #64748b; font-weight: 500; white-space: nowrap; }
.funnel-step-dot.active .funnel-step-label { color: #E8552D; font-weight: 600; }
.funnel-card { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); max-width: 720px; margin: 0 auto; }
.funnel-card-centered { text-align: center; display: flex; flex-direction: column; align-items: center; }
.funnel-card h2 { font-size: 24px; font-weight: 700; color: #1e293b; margin: 0 0 8px 0; }
.funnel-subtitle { color: #64748b; font-size: 15px; margin: 0 0 28px 0; }
.funnel-text-lg { font-size: 17px; color: #475569; line-height: 1.6; max-width: 480px; margin: 0 auto 32px; }
.funnel-welcome-icon { font-size: 48px; margin-bottom: 16px; }
.funnel-features { display: flex; flex-direction: column; gap: 16px; text-align: left; max-width: 400px; margin: 0 auto 32px; }
.funnel-feature { display: flex; align-items: flex-start; gap: 14px; }
.funnel-feature-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.funnel-feature strong { display: block; color: #1e293b; font-size: 15px; margin-bottom: 2px; }
.funnel-feature p { color: #64748b; font-size: 14px; margin: 0; }
.funnel-form { display: flex; flex-direction: column; gap: 20px; }
.funnel-form .form-group { margin: 0; flex: 1; }
.funnel-form label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.funnel-form input, .funnel-form textarea, .funnel-form select { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; color: #1e293b; transition: border-color 0.2s; box-sizing: border-box; }
.funnel-form input:focus, .funnel-form textarea:focus { outline: none; border-color: #E8552D; box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.funnel-form-row { display: flex; gap: 16px; }
.funnel-upload-area { border: 2px dashed #d1d5db; border-radius: 12px; overflow: hidden; transition: border-color 0.2s, background-color 0.2s; }
.funnel-upload-area:hover { border-color: #E8552D; }
.funnel-upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px; cursor: pointer; color: #64748b; }
.funnel-upload-icon { font-size: 32px; }
.funnel-upload-placeholder small { font-size: 12px; color: #94a3b8; }
.funnel-upload-preview { position: relative; padding: 16px; display: flex; justify-content: center; }
.funnel-upload-preview img { max-height: 80px; max-width: 200px; object-fit: contain; }
.funnel-upload-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: none; background: #ef4444; color: #fff; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.funnel-upload-crop-btn { position: absolute; bottom: 8px; right: 8px; padding: 4px 10px; font-size: 12px; font-weight: 500; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #374151; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.funnel-upload-crop-btn:hover { background: #f9fafb; border-color: #E8552D; }
.funnel-profile-image-upload { display: flex; align-items: center; gap: 20px; }
.funnel-profile-image-preview { position: relative; flex-shrink: 0; }
.funnel-profile-image-preview img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid #e2e8f0; }
.funnel-profile-image-remove { position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%; border: none; background: #ef4444; color: #fff; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.funnel-profile-image-actions { display: flex; flex-direction: column; gap: 6px; }
.funnel-profile-image-btn { padding: 8px 16px; font-size: 13px; font-weight: 500; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #374151; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.funnel-profile-image-btn:hover { background: #f9fafb; border-color: #E8552D; }
.funnel-reviews { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.funnel-review-card { background: #f8fafc; border-radius: 12px; padding: 20px; }
.funnel-review-stars { color: #ffc107; font-size: 14px; margin-bottom: 8px; }
.funnel-review-text { margin: 0 0 12px; font-size: 14px; color: #333; line-height: 1.5; font-style: italic; }
.funnel-review-author { font-size: 13px; }
.funnel-review-author strong { color: #333; }
.funnel-review-author span { color: #888; }
.funnel-nav-buttons { display: flex; justify-content: space-between; margin-top: 32px; gap: 12px; }
.funnel-btn-next { min-width: 160px; padding: 12px 24px; font-size: 16px; }
.funnel-card-preview-wrapper { display: flex; justify-content: center; margin: 24px 0; }
.fp-card { width: 340px; max-width: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); background: #fff; font-family: 'Inter', -apple-system, sans-serif; transition: all 0.3s; }
.fp-card.dark-mode { background: #1c1c1e; box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.fp-card-header { padding: 48px 32px 64px; text-align: center; position: relative; background: linear-gradient(180deg, #f5f5f7 0%, #fff 100%); background-size: cover; background-position: center; }
.fp-card.dark-mode .fp-card-header { background: linear-gradient(180deg, #000 0%, #1c1c1e 100%); }
.fp-profile-image { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; position: absolute; bottom: -55px; left: 50%; transform: translateX(-50%); background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.fp-card.dark-mode .fp-profile-image { background: #1c1c1e; }
.fp-card-body { padding: 68px 28px 28px; text-align: center; }
.fp-name { font-size: 22px; font-weight: 600; color: #1d1d1f; margin: 0 0 4px 0; letter-spacing: -0.02em; }
.fp-card.dark-mode .fp-name { color: #f5f5f7; }
.fp-title { font-size: 15px; color: var(--fp-button-color, #38A3A5); font-weight: 500; margin: 0 0 2px 0; }
.fp-company { font-size: 14px; color: #86868b; margin: 0 0 12px 0; }
.fp-card.dark-mode .fp-company { color: #a1a1a6; }
.fp-bio { font-size: 14px; color: #86868b; line-height: 1.5; margin: 0 0 20px 0; }
.fp-card.dark-mode .fp-bio { color: #a1a1a6; }
.fp-contact-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.fp-contact-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #d2d2d7; }
.fp-card.dark-mode .fp-contact-item { border-bottom-color: #38383a; }
.fp-contact-item:last-child { border-bottom: none; }
.fp-contact-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 12px; background: #f5f5f7; flex-shrink: 0; }
.fp-card.dark-mode .fp-contact-icon { background: #2c2c2e; }
.fp-contact-icon svg { width: 16px; height: 16px; fill: #86868b; }
.fp-contact-info { flex: 1; min-width: 0; }
.fp-contact-label { font-size: 11px; color: #aeaeb2; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; display: block; }
.fp-contact-value { font-size: 14px; color: var(--fp-button-color, #38A3A5); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.fp-company-section { padding: 20px 28px; border-top: 1px solid #d2d2d7; text-align: left; }
.fp-card.dark-mode .fp-company-section { border-top-color: #38383a; }
.fp-company-logo-wrap { text-align: center; padding: 8px 0 16px; }
.fp-company-logo { max-width: 100%; max-height: 60px; object-fit: contain; }
.fp-company-logo.has-bg { padding: 6px 10px; border-radius: 8px; }
.fp-company-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #aeaeb2; margin-bottom: 12px; font-weight: 600; }
.fp-company-details { display: flex; flex-direction: column; gap: 10px; }
.fp-company-detail-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.fp-company-detail-icon { width: 18px; flex-shrink: 0; padding-top: 1px; }
.fp-company-detail-icon svg { width: 14px; height: 14px; fill: #aeaeb2; }
.fp-company-detail-text { color: #86868b; line-height: 1.4; }
.fp-card.dark-mode .fp-company-detail-text { color: #a1a1a6; }
.fp-link { color: var(--fp-button-color, #38A3A5) !important; }
.fp-powered-by { display: flex; align-items: center; justify-content: center; padding: 16px; border-top: 1px solid #d2d2d7; font-size: 11px; color: #aeaeb2; }
.fp-card.dark-mode .fp-powered-by { border-top-color: #38383a; }
.fp-company-presentation { margin-bottom: 16px; }
.fp-company-description { font-size: 13px; color: #86868b; line-height: 1.6; white-space: pre-wrap; margin: 0; }
.fp-card.dark-mode .fp-company-description { color: #a1a1a6; }
.fp-map-section { margin-top: 16px; border-radius: 10px; overflow: hidden; }
.fp-map-container { width: 100%; height: 140px; background: #f5f5f7; border-radius: 10px; overflow: hidden; }
.fp-map-container iframe { width: 100%; height: 100%; border: 0; }
.fp-company-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.fp-action-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 20px; color: white; text-decoration: none; font-weight: 500; font-size: 14px; font-family: inherit; border: none; border-radius: 10px; cursor: pointer; transition: all 0.2s; background: var(--fp-button-color, #38A3A5); }
.fp-action-btn:hover { opacity: 0.9; }
.fp-action-btn svg { width: 16px; height: 16px; fill: white; }
.fp-share-contact-btn { background: var(--fp-button-color, #38A3A5); margin-top: 16px; border: none; }
.fp-qr-section { padding: 20px 28px; border-top: 1px solid #d2d2d7; text-align: center; }
.fp-card.dark-mode .fp-qr-section { border-top-color: #38383a; }
.fp-qr-section svg { border-radius: 8px; margin-bottom: 6px; }
.fp-qr-section p { font-size: 12px; color: #aeaeb2; margin: 0; }
.funnel-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0; }
.funnel-plan { border: 2px solid #e2e8f0; border-radius: 12px; padding: 24px; cursor: pointer; transition: all 0.2s; position: relative; display: flex; flex-direction: column; }
.funnel-plan:hover { border-color: #93c5fd; background: #f8fafc; }
.funnel-plan.selected { border-color: #22c55e; background: #f0fdf4; box-shadow: 0 0 0 1px #22c55e; }
.funnel-plan-features { flex: 1; }
.funnel-plan-select-btn { display: block; margin-top: 10px; padding: 10px 0; text-align: center; border-radius: 8px; font-size: 14px; font-weight: 600; color: #38A3A5; border: 2px solid #38A3A5; background: transparent; transition: all 0.2s; }
.funnel-plan:hover .funnel-plan-select-btn { background: #38A3A5; color: #fff; }
.funnel-plan.selected .funnel-plan-select-btn { background: #22c55e; border-color: #22c55e; color: #fff; }
.funnel-plan-popular { border-color: #E8552D; }
.funnel-plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #E8552D; color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 12px; white-space: nowrap; }
.funnel-plan-header h3 { font-size: 18px; font-weight: 700; color: #1e293b; margin: 0 0 8px 0; }
.funnel-plan-price { margin-bottom: 16px; }
.funnel-price-amount { font-size: 28px; font-weight: 800; color: #1e293b; }
.funnel-price-period { font-size: 20px; font-weight: 700; color: #1e293b; }
.funnel-plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.funnel-plan-features li { font-size: 14px; color: #475569; }
.funnel-plan-desc { font-size: 13px; color: #64748b; margin: 0 0 12px 0; line-height: 1.4; }
.funnel-price-monthly { font-size: 13px; color: #64748b; margin-top: 2px; }
.funnel-feature-highlight { font-weight: 600; color: #1e293b !important; }
.funnel-plan-addon { font-size: 12px; color: #64748b; margin: 12px 0 0 0; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.funnel-plan-badge-business { background: #1e293b; }
.funnel-cost-calculator { margin-top: 24px; padding: 20px; background: #f8fafc; border-radius: 12px; }
@media (min-width: 768px) {
  .funnel-cost-calculator { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 0 24px; padding: 16px 24px; }
  .funnel-cost-calculator > .funnel-cost-label { grid-column: 1; grid-row: 1; }
  .funnel-cost-calculator > .funnel-cost-desc { grid-column: 1; grid-row: 2; }
  .funnel-cost-calculator > .funnel-cost-counter { grid-column: 1; grid-row: 3; }
  .funnel-cost-calculator > .funnel-cost-summary { grid-column: 2; grid-row: 1 / -1; align-self: center; margin-top: 0; }
}
.funnel-cost-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: #334155; }
.funnel-cost-desc { margin: 0 0 12px; color: #94a3b8; font-size: 13px; }
.funnel-cost-counter { display: flex; align-items: center; gap: 12px; }
.funnel-counter-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.funnel-counter-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.funnel-counter-input { width: 70px; text-align: center; padding: 8px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 18px; font-weight: 600; }
.funnel-counter-label { color: #64748b; font-size: 14px; }
.funnel-cost-summary { margin-top: 16px; padding: 16px; background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; }
.funnel-cost-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.funnel-cost-row + .funnel-cost-row { border-top: 1px solid #f1f5f9; }
.funnel-cost-row-label { font-size: 14px; color: #64748b; }
.funnel-cost-yearly .funnel-cost-row-value { font-size: 20px; font-weight: 700; color: #1e293b; }
.funnel-cost-monthly .funnel-cost-row-value { font-size: 15px; font-weight: 500; color: #64748b; }
.funnel-summary { background: #f8fafc; border-radius: 12px; padding: 24px; margin: 24px auto; max-width: 400px; text-align: left; }
.funnel-summary h3 { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0 0 16px 0; }
.funnel-summary-grid { display: flex; flex-direction: column; gap: 12px; }
.funnel-summary-item { display: flex; justify-content: space-between; gap: 16px; }
.funnel-summary-label { font-size: 14px; color: #64748b; }
.funnel-summary-value { font-size: 14px; font-weight: 600; color: #1e293b; }
.funnel-final-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.funnel-ai-btn { display: inline-flex; align-items: center; gap: 4px; position: absolute; right: 8px; bottom: 8px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border: none; border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.funnel-ai-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.funnel-ai-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.funnel-ai-url-box { background: linear-gradient(135deg, #f0f0ff, #f5f3ff); border: 1px solid #e0e0ff; border-radius: 12px; padding: 20px; margin-bottom: 0; }
.funnel-ai-url-box label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 10px; }
.funnel-ai-url-row { display: flex; gap: 10px; }
.funnel-ai-url-row input { flex: 1; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; color: #1e293b; }
.funnel-ai-url-row input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.funnel-ai-url-row .btn { white-space: nowrap; font-size: 14px; }
.funnel-ai-status { margin-top: 10px; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.funnel-ai-status.status-success { background: #ecfdf5; color: #065f46; }
.funnel-ai-status.status-error { background: #fef2f2; color: #991b1b; }
.funnel-divider-or { display: flex; align-items: center; gap: 16px; margin: 10px 0; color: #94a3b8; font-size: 13px; width: 100%; max-width: 400px; }
.funnel-divider-or::before, .funnel-divider-or::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.funnel-cta-btn { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 400px; padding: 16px 32px; border: none; border-radius: 12px; cursor: pointer; font-size: 18px; font-weight: 600; font-family: inherit; transition: all 0.2s; text-align: center; }
.funnel-cta-btn:hover { transform: scale(0.98); opacity: 0.95; }
.funnel-cta-pay { background: #38A3A5; color: white; }
.funnel-cta-trial { background: #E8552D; color: white; border: none; }
.funnel-cta-text { display: inline-block; text-align: center; }
@media (max-width: 768px) {
  .funnel-card { padding: 24px 16px; }
  .funnel-form-row { flex-direction: column; gap: 20px; }
  .funnel-plans { grid-template-columns: 1fr; }
  .funnel-step-label { display: none; }
  .funnel-steps-indicator { gap: 4px; }
  .fp-card { width: 100%; max-width: 320px; }
  .funnel-reviews { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .funnel-nav-buttons { flex-direction: column-reverse; }
  .funnel-nav-buttons .btn { width: 100%; text-align: center; }
  .funnel-ai-url-row { flex-direction: column; }
}

/* News Feed */
.news-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #6366f1;
}

.news-card-header {
  margin-bottom: 8px;
}

.news-card-date {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
}

.news-card-content {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}

/* Email verification banner */
.email-verify-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 32px;
  margin: 24px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.email-verify-icon {
  font-size: 56px;
  flex-shrink: 0;
  line-height: 1;
}

.email-verify-content h2 {
  color: #92400e;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.email-verify-content p {
  color: #78350f;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.email-verify-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.email-verify-actions .btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .email-verify-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }

  .email-verify-icon {
    font-size: 48px;
  }

  .email-verify-content h2 {
    font-size: 20px;
  }

  .email-verify-actions {
    justify-content: center;
  }
}


/* ========== Wallet-designer (Apple/Google Wallet) ========== */
.wallet-designer { margin-top: 0.75rem; }
/* Redigerarkolumnen är smal — kontroller överst, förhandsvisningen under */
.wallet-designer-grid { display: flex; flex-direction: column; gap: 16px; }
.wallet-designer-preview { display: flex; flex-direction: column; align-items: center; }
.wallet-designer-label { display: block; font-weight: 600; font-size: 0.85rem; margin: 10px 0 6px; color: #1d1d1f; }
.wallet-layouts { display: flex; gap: 10px; flex-wrap: wrap; }
.wallet-layout-option { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 10px; border: 2px solid #e5e5ea; border-radius: 10px; background: #fff; cursor: pointer; font-size: 0.8rem; min-width: 84px; flex: 1 1 84px; max-width: 120px; position: relative; }
.wallet-layout-option input { position: absolute; opacity: 0; pointer-events: none; }
.wallet-layout-option:has(input:checked) { border-color: #38a3a5; box-shadow: 0 0 0 3px rgba(56, 163, 165, 0.15); }
.wallet-layout-option .wl-icon { width: 56px; height: 74px; display: block; }
.wallet-colors { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.wallet-colors .color-picker-wrapper { margin: 0; }
.wallet-colors .btn { margin-bottom: 2px; }
.wallet-strip-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wallet-controls-inherited { opacity: 0.55; pointer-events: none; }

.wallet-pass-preview { display: flex; justify-content: center; width: 100%; }
.wp-pass { position: relative; width: 100%; max-width: 340px; min-height: 476px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.1); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; display: flex; flex-direction: column; }
.wp-content { position: relative; display: flex; flex-direction: column; flex: 1; }
.wp-head { display: flex; align-items: center; min-height: 48px; padding: 12px 16px 8px; }
img.wp-logo { max-height: 40px; max-width: 160px; object-fit: contain; }
.wp-logo-text { font-weight: 700; font-size: 15px; letter-spacing: 0.01em; }
.wp-strip { height: 100px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.wp-strip img { max-height: 56%; max-width: 60%; object-fit: contain; }
.wp-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 16px 8px; }
.wp-name { font-size: 22px; font-weight: 600; line-height: 1.15; word-break: normal; overflow-wrap: break-word; }
.wp-sub { font-size: 13px; margin-top: 5px; line-height: 1.3; }
.wp-thumb { width: 74px; height: 74px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.wp-qr { display: flex; justify-content: center; align-items: flex-end; flex: 1; padding: 18px 0 22px; }
.wp-qr svg { width: 132px; height: 132px; background: #fff; padding: 7px; border-radius: 8px; box-sizing: border-box; }
.wp-bg { position: absolute; inset: -12px; background-size: cover; background-position: center; filter: blur(12px) brightness(0.55) saturate(1.1); }
.wp-l-poster .wp-sub { color: inherit !important; opacity: 0.85; }
.wallet-strip-warning { color: #b45309; font-weight: 500; }
.wp-strip-logo img { max-height: 74%; max-width: 76%; }
/* Banner/Stor logga: namn och titel bakas in i bannern (Apples strip är 375×123 pt) */
.wp-strip-baked { flex-direction: column; gap: 8px; height: 132px; padding: 10px 44px; box-sizing: border-box; }
.wp-strip-baked img { max-height: 44%; max-width: 70%; }
.wp-strip-baked.wp-align-left { align-items: flex-start; }
.wp-strip-baked.wp-align-left img { align-self: flex-start; }
.wp-baked { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.wp-baked.wp-align-center { align-items: center; text-align: center; }
.wp-baked.wp-align-left { align-items: flex-start; text-align: left; }
.wp-baked .wp-name { font-size: 17px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wp-baked .wp-sub { font-size: 11px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* Banner med foto: vit text över en mörk toning i nederkant */
.wp-strip-photo { position: relative; height: 112px; align-items: flex-end; justify-content: flex-start; padding: 0 44px 9px; box-sizing: border-box; color: #fff; }
.wp-strip-photo .wp-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,0.72) 100%); }
.wp-strip-photo .wp-baked { position: relative; width: 100%; }
.wp-strip-photo .wp-name { font-size: 15px; }
.wp-strip-photo .wp-sub { font-size: 10px; color: rgba(255,255,255,0.85); }
.wallet-dim-range { width: 100%; max-width: 320px; accent-color: #38a3a5; }
.wallet-aligns { display: flex; gap: 10px; flex-wrap: wrap; }
.wallet-align-option { display: flex; align-items: center; justify-content: center; padding: 8px 18px; border: 2px solid #e5e5ea; border-radius: 10px; background: #fff; cursor: pointer; font-size: 0.85rem; position: relative; }
.wallet-align-option input { position: absolute; opacity: 0; pointer-events: none; }
.wallet-align-option:has(input:checked) { border-color: #38a3a5; box-shadow: 0 0 0 3px rgba(56, 163, 165, 0.15); }

/* Egna knappar (Pro) i kortredigeraren: rubrik, text och länk per rad */
.custom-link-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.6fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #e5e9ec;
}
.custom-link-row:last-child { border-bottom: none; }
.custom-link-row .form-group { margin: 0; }
@media (max-width: 720px) {
  .custom-link-row { grid-template-columns: 1fr; gap: 8px; }
}
