@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Reset & Variable Definitions */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Theme: Dark Mode (Default) */
  --bg-color: #0b0d17;
  --surface-color: rgba(20, 24, 43, 0.6);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --primary-color: #6366f1; /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.15);
  --primary-hover: #4f46e5;
  
  --accent-color: #10b981; /* Emerald */
  --accent-glow: rgba(16, 185, 129, 0.15);
  
  --danger-color: #ef4444;
  --danger-hover: #dc2626;

  --card-radius: 20px;
  --button-radius: 12px;
  --input-radius: 10px;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  --gradient-hero: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-bg: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0b0d17 70%);
}

/* Theme: Light Mode Overrides */
[data-theme="light"] {
  --bg-color: #f8fafc;
  --surface-color: rgba(255, 255, 255, 0.7);
  --surface-border: rgba(0, 0, 0, 0.06);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary-color: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.1);
  --primary-hover: #4338ca;
  
  --accent-color: #059669;
  --accent-glow: rgba(5, 150, 105, 0.1);

  --gradient-bg: radial-gradient(circle at 50% 0%, #e0e7ff 0%, #f8fafc 80%);
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Layout Elements */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 2rem 0;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  background: var(--gradient-hero);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-text span {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-toggle {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.theme-toggle:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

/* Views Management */
.view {
  display: none;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1rem 4rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Dashboard Styles */
.dashboard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 1.75rem;
  color: var(--text-primary);
}

/* Buttons */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--button-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  outline: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: var(--surface-color);
  border-color: var(--surface-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger-color);
}

.btn-danger:hover {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Profiles Grid */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.profile-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: var(--transition-smooth);
}

.profile-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.profile-card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-glow);
  border: 2px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
}

.card-info {
  flex: 1;
  overflow: hidden;
}

.card-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.card-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.card-company {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.card-footer-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  width: 100%;
}

.card-footer-buttons .btn {
  flex: 1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface-color);
  border: 1.5px dashed var(--surface-border);
  border-radius: var(--card-radius);
  backdrop-filter: blur(10px);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  opacity: 0.6;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--card-radius);
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: scale(0.95);
  transition: var(--transition-smooth);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

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

.modal-title {
  font-size: 1.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

/* Profile Form Elements */
.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--input-radius);
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: rgba(255, 255, 255, 0.05);
}

.form-control:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}

/* Captcha (Doğrulama Kodu) */
.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.captcha-preview {
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  background: #0f172a;
}

.captcha-preview:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.captcha-preview svg {
  display: block;
}

#captcha-refresh-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

#captcha-refresh-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}

#captcha-refresh-btn svg {
  transition: transform 0.3s ease;
}

#captcha-refresh-btn:hover svg {
  transform: rotate(90deg);
}

.captcha-input {
  flex: 1;
  min-width: 0;
  height: 42px;
}

/* Form Tabs or Sections */
.form-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
  color: var(--primary-color);
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 0.5rem;
}

/* Image Upload Preview Utility */
.avatar-upload-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-color);
  border: 2px dashed var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-preview-placeholder {
  font-size: 2rem;
  opacity: 0.5;
}

.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.upload-btn-wrapper input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

/* Public Profile View (Premium Phone Preview Mode) */
.public-profile-wrapper {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem 0;
}

.profile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0 0.25rem;
}

.profile-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

#pub-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

#pub-edit-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.08);
}

.preview-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-nav-bottom {
  text-align: center;
  margin-top: 1.5rem;
}

.profile-card-premium {
  --card-primary: var(--primary-color);
  --card-secondary: var(--primary-hover);
  --card-glow: var(--primary-glow);
  --card-banner: var(--gradient-hero);
  --card-radius-val: 30px;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--card-radius-val);
  overflow: hidden;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.profile-bg-banner {
  height: 140px;
  background: var(--card-banner);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
}

.profile-company-logo-badge {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  max-width: 140px;
  max-height: 42px;
  z-index: 5;
  transition: var(--transition-smooth);
}

.profile-company-logo-badge.visible {
  display: inline-flex !important;
}

.profile-company-logo-badge img {
  max-height: 28px;
  max-width: 115px;
  object-fit: contain;
  display: block;
}

.profile-bg-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--surface-color), transparent);
  pointer-events: none;
}

.profile-header-premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.profile-avatar-premium {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-color);
  background: var(--surface-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 3rem;
  color: var(--primary-color);
  overflow: hidden;
}

.profile-avatar-premium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name-premium {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.profile-title-premium {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.profile-company-premium {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Save to Contacts Call To Action */
.cta-save-container {
  padding: 1.5rem;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  justify-content: center;
}

.btn-cta-save {
  width: 100%;
  padding: 1.15rem;
  font-size: 1.1rem;
  background: var(--card-primary, var(--primary-color));
  color: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--card-glow, var(--primary-glow));
  transition: var(--transition-smooth);
}

.btn-cta-save:hover {
  background: var(--card-secondary, var(--primary-hover));
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--card-glow, var(--primary-glow));
}

.btn-cta-save svg {
  width: 24px;
  height: 24px;
}

/* Quick Details / Contact Actions List */
.profile-details-premium {
  padding: 1.5rem;
}

.contact-action-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  margin-bottom: 0.75rem;
}

.contact-action-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
  border-color: rgba(99, 102, 241, 0.2);
}

.action-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--card-glow, rgba(99, 102, 241, 0.1));
  color: var(--card-primary, var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.action-item-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.action-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.action-value {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Social Icon Grid */
.social-links-premium {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem 2.5rem 1.5rem;
}

.social-circle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-circle-btn:hover {
  transform: translateY(-5px);
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px var(--primary-glow);
}

/* Modal: Share / QR View Specific */
.share-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-code-wrapper {
  background: white;
  padding: 1rem;
  border-radius: 16px;
  margin: 1rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-code-wrapper canvas {
  display: block;
}

.share-link-box {
  width: 100%;
  margin-top: 1rem;
}

/* Quick Share Actions */
.share-quick-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.75rem;
}
.share-quick-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.6rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
}
.btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  border: 1px solid #1ebc57;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}
.btn-whatsapp:hover {
  background: #1ebc57;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Compact QR Row */
.share-qr-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  margin: 0.25rem 0;
}
.share-qr-row .qr-code-wrapper {
  margin: 0;
  padding: 0.6rem;
  border-radius: 12px;
}

/* Collapsible Details in Share Modal */
.share-collapsible-box {
  width: 100%;
  margin-top: 0.6rem;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: var(--transition-fast);
}
.share-collapsible-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.share-collapsible-summary::-webkit-details-marker {
  display: none;
}
.share-collapsible-summary .chevron-icon {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}
.share-collapsible-box[open] .chevron-icon {
  transform: rotate(180deg);
}
.share-collapsible-content {
  padding: 0.5rem 0.85rem 0.85rem;
  border-top: 1px solid var(--surface-border);
}

.share-input-group {
  display: flex;
  margin-top: 0.5rem;
}

.share-input-group input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.share-input-group button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* URL Input with Fixed Prefix */
.url-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.url-prefix-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--surface-border);
  border-right: none;
  border-top-left-radius: var(--border-radius-sm, 8px);
  border-bottom-left-radius: var(--border-radius-sm, 8px);
  user-select: none;
  white-space: nowrap;
}

[data-theme="light"] .url-prefix-badge {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary-color);
}

.url-input-group .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.instructions-nfc {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--input-radius);
  padding: 1rem;
  line-height: 1.5;
}

.instructions-nfc h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-container.active {
  transform: translateX(-50%) translateY(0);
}

/* Dashboard Tabs Navigation */
.dashboard-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 1rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 10px;
  transition: var(--transition-smooth);
}

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

.tab-btn.active {
  color: var(--primary-color);
  background: var(--primary-glow);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}

/* Admin Actions Bar */
.admin-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-input-wrapper .form-control {
  padding-left: 2.75rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Admin Glassmorphic Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--card-radius);
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th, 
.admin-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--surface-border);
  vertical-align: middle;
}

.admin-table th {
  background: rgba(99, 102, 241, 0.28);
  color: #e0e7ff;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .admin-table th {
  background: rgba(79, 70, 229, 0.22);
  color: #312e81;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}

.admin-table tr {
  cursor: pointer;
  transition: var(--transition-fast);
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .admin-table tbody tr:hover {
  background: rgba(79, 70, 229, 0.04);
}

/* ─────────────────────────────────────────────────────────────
   PARAMETER TABLE & CARDS (Desktop & Global)
   ───────────────────────────────────────────────────────────── */
.param-table-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--card-radius);
}
.param-table {
  margin-bottom: 0;
}
.param-table th {
  padding: 0.85rem 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.param-table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
}
.param-table tbody tr {
  cursor: default;
}
.param-badge-id {
  display: inline-flex;
  align-items: center;
  font-family: monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-color);
  background: var(--primary-glow);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  letter-spacing: 0.02em;
}
.param-desc-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}
.param-key-tag-desktop {
  display: inline-block;
  font-family: monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--surface-border);
}
[data-theme="light"] .param-key-tag-desktop {
  background: rgba(0, 0, 0, 0.04);
}
.param-key-tag-mobile {
  display: none;
}
.param-val-label-mobile {
  display: none;
}
.param-val-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.param-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.admin-table td .card-avatar {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
  border-width: 1px;
}

.admin-table-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.admin-table-actions button,
.admin-table-actions a {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}

.admin-table-actions .btn-icon-only {
  padding: 0.45rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 30px;
}

.btn-excel {
  background: #107c41;
  color: #ffffff !important;
  border: 1px solid #0b5e31;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-excel:hover {
  background: #0b5e31;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 124, 65, 0.35);
  transform: translateY(-1px);
}

/* Footer style */
footer {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--surface-border);
  margin-top: auto;
}

/* Profile Table Elements (Desktop & Base — Clean 7-Column Layout) */
.profiles-table th.th-select,
.profiles-table td.col-select {
  width: 42px;
  text-align: center;
  padding-left: 0.75rem;
  padding-right: 0.35rem;
}

.profiles-table td.col-name {
  min-width: 230px;
  max-width: 330px;
}

.profile-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.profile-avatar-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.profile-avatar-wrap .card-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.92rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-name-meta {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  min-width: 0;
  flex: 1;
}

.profile-name-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.profile-name-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 215px;
}

.profile-role-sub {
  font-size: 0.77rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 255px;
  line-height: 1.25;
}

.profile-lang-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.38rem;
  border-radius: 5px;
  line-height: 1.2;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-color);
  border: 1px solid rgba(99, 102, 241, 0.22);
}
.profile-lang-badge.lang-en {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border-color: rgba(14, 165, 233, 0.25);
}
[data-theme="dark"] .profile-lang-badge.lang-en {
  color: #38bdf8;
}
.profile-lang-badge.lang-bg {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}
[data-theme="dark"] .profile-lang-badge.lang-bg {
  color: #34d399;
}
.profile-lang-badge.lang-fr {
  background: rgba(168, 85, 247, 0.12);
  color: #7c3aed;
  border-color: rgba(168, 85, 247, 0.25);
}
[data-theme="dark"] .profile-lang-badge.lang-fr {
  color: #c084fc;
}

.profiles-table td.col-firma {
  min-width: 155px;
  max-width: 240px;
}

.profile-org-cell {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.profile-org-primary {
  font-weight: 500;
  font-size: 0.87rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 225px;
}

.profile-org-secondary {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 225px;
}

.profiles-table td.col-phone {
  white-space: nowrap;
  font-size: 0.86rem;
}

.profiles-table td.col-id {
  text-align: center;
  white-space: nowrap;
  width: 82px;
}

.profiles-table .profile-id-code {
  display: inline-block;
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.profiles-table td.col-taps {
  text-align: center;
  white-space: nowrap;
  width: 86px;
}

.profiles-table td.col-actions {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

.profiles-table .admin-table-actions button {
  height: 32px;
  padding: 0 0.65rem;
  font-size: 0.78rem;
}

.profiles-table .admin-table-actions .btn-icon-only {
  width: 32px;
  height: 32px;
  padding: 0;
}

.mobile-card-avatar {
  display: none;
}
.profile-sub-meta {
  display: none;
}
.btn-text-mobile {
  display: none;
}
.phone-link {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}
.phone-link:hover {
  text-decoration: underline;
}


/* ═══════════════════════════════════════════
   MULTI-TENANT v2.0 — Yeni Bileşenler
═══════════════════════════════════════════ */

/* Surface card — generic content box */
.surface-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Stats grid — super admin summary */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--card-radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(20px);
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Credit bar */
.credit-bar-wrap {
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  width: 120px;
  display: inline-block;
  vertical-align: middle;
}
.credit-bar {
  height: 100%;
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* Credit widget — dealer panel top */
.credit-widget {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--card-radius);
  padding: 1rem 1.5rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  backdrop-filter: blur(20px);
}
.credit-widget-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.credit-widget-numbers {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}
.credit-big   { color: var(--primary-color); }
.credit-sep   { color: var(--text-muted); }
.credit-limit { color: var(--text-secondary); }
.credit-widget-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.credit-widget-remaining {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.credit-widget .credit-bar-wrap {
  width: 100%;
  min-width: 140px;
  height: 6px;
  margin-top: 0.25rem;
}

/* Toggle Switch */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  vertical-align: middle;
  cursor: pointer;
}
.switch-toggle input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  transition: 0.3s;
}
.switch-slider:before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.switch-toggle input:checked + .switch-slider { background: var(--primary-color); }
.switch-toggle input:checked + .switch-slider:before { transform: translateX(16px); }

/* Role badges */
.role-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.role-superadmin   { background: rgba(239,68,68,0.15);   color: #ef4444; }
.role-dealer_admin { background: rgba(245,158,11,0.15);  color: #f59e0b; }
.role-company_admin{ background: rgba(99,102,241,0.15);  color: #6366f1; }
.role-user         { background: rgba(16,185,129,0.15);  color: #10b981; }

/* Tab panels */
.tab-panel { margin-top: 1.5rem; }

/* Admin table actions alignment fix — never wrap action buttons onto multiple stacked rows on desktop */
.admin-table-actions {
  display: flex;
  gap: 0.38rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Pagination Controls */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem 0.25rem 0.25rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--surface-border);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.pagination-info {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.pagination-info strong {
  color: var(--text-secondary);
}
.pagination-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.pagination-btn {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}
.pagination-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary-color);
  color: #ffffff;
}
.pagination-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--primary-glow);
}
.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination-ellipsis {
  color: var(--text-muted);
  padding: 0 0.25rem;
  font-size: 0.85rem;
  user-select: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS (Mobile & Tablet)
═══════════════════════════════════════════ */
@media (max-width: 860px) {
  /* Layout & Container */
  .app-container {
    padding: 0.75rem 0.65rem;
  }
  
  body {
    background-attachment: scroll !important;
  }
  
  header {
    position: sticky;
    top: 0;
    z-index: 95;
    background: rgba(11, 13, 23, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.65rem 0.85rem;
    margin: -0.75rem -0.65rem 1rem -0.65rem;
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }

  [data-theme="light"] header {
    background: rgba(248, 250, 252, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  }
  
  #header-user-info {
    font-size: 0.75rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
  }

  .hero {
    padding: 1.25rem 0.5rem 0.75rem;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 0.85rem;
  }

  /* Surface Cards */
  .surface-card {
    padding: 1rem 0.85rem;
    border-radius: 14px;
    margin-bottom: 1rem;
  }

  /* Remove double card framing around tables on mobile */
  .tab-panel > .surface-card,
  .surface-card:has(.table-responsive) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .stat-card {
    padding: 0.85rem 0.6rem;
  }
  .stat-value {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }

  /* Credit Widget */
  .credit-widget {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
  }

  /* Dashboard Tabs — Mobile Swipeable Bar */
  .dashboard-tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.25rem 0 0.65rem 0;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--surface-border);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .dashboard-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
  }

  /* Admin Actions Bar */
  .admin-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }
  .search-input-wrapper {
    max-width: 100%;
    width: 100%;
  }
  .admin-actions-bar > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }
  .admin-actions-bar > div:last-child .btn {
    flex: 1 1 auto;
    min-width: 115px;
    justify-content: center;
    padding: 0.58rem 0.65rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* General Admin Table to Cards */
  .table-responsive {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    touch-action: pan-y !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin-bottom: 0.85rem !important;
  }
  
  .admin-table, 
  .admin-table thead, 
  .admin-table tbody, 
  .admin-table tr, 
  .admin-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  
  .admin-table thead {
    display: none;
  }
  
  .admin-table tbody tr {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }
  
  .admin-table tbody td {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.45rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    text-align: right;
    min-width: 0 !important;
  }
  
  [data-theme="light"] .admin-table tbody td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .admin-table tbody td:last-child {
    border-bottom: none;
  }
  
  .admin-table tbody td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: left;
    padding-right: 0.5rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .admin-table tbody td[data-label="İşlemler"] {
    justify-content: flex-end;
    padding-top: 0.65rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--surface-border);
    border-bottom: none;
  }
  .admin-table tbody td[data-label="İşlemler"]::before {
    display: none;
  }

  /* Specialized: Profile Cards on Mobile (.profile-table-row — Clean CSS Grid Card) */
  .profile-table-row {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas:
      "select name id"
      "firma firma firma"
      "phone phone phone"
      "taps taps taps"
      "actions actions actions" !important;
    align-items: center !important;
    column-gap: 0.6rem !important;
    row-gap: 0 !important;
    padding: 0.9rem 1rem !important;
    position: relative !important;
  }

  /* Checkbox aligned cleanly at top-left next to avatar */
  .profile-table-row .col-select {
    grid-area: select !important;
    width: auto !important;
    padding: 0 0 0.6rem 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--surface-border) !important;
    align-self: stretch !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .profile-table-row .col-select::before {
    display: none !important;
  }

  /* Top Card Header: Avatar + Name + Lang Pill + Role */
  .profile-table-row .col-name {
    grid-area: name !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    border: none !important;
    border-bottom: 1px solid var(--surface-border) !important;
    padding: 0 0 0.6rem 0 !important;
    text-align: left !important;
    min-width: 0 !important;
    max-width: none !important;
    align-self: stretch !important;
  }
  .profile-table-row .col-name::before {
    display: none !important;
  }
  .profile-table-row .profile-name-cell {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .profile-table-row .profile-avatar-wrap .card-avatar {
    width: 42px !important;
    height: 42px !important;
    font-size: 1rem !important;
  }
  .profile-table-row .profile-name-line {
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }
  .profile-table-row .profile-name-title {
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    max-width: none !important;
  }
  .profile-table-row .profile-role-sub {
    display: block !important;
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    max-width: none !important;
  }

  /* Top Right ID Badge (Real Grid Column — Zero Overlap) */
  .profile-table-row .col-id {
    grid-area: id !important;
    position: static !important;
    width: auto !important;
    padding: 0 0 0.6rem 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--surface-border) !important;
    align-self: stretch !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  .profile-table-row .col-id::before {
    display: none !important;
  }
  .profile-table-row .profile-id-code {
    background: rgba(99, 102, 241, 0.14) !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    padding: 0.24rem 0.5rem !important;
    border-radius: 6px !important;
    font-size: 0.76rem !important;
    border: 1px solid rgba(99, 102, 241, 0.24) !important;
  }

  /* Info Rows: Firma, Telefon, Okutma */
  .profile-table-row .col-firma {
    grid-area: firma !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0.5rem 0 0.4rem 0 !important;
  }
  .profile-table-row .profile-org-cell {
    align-items: flex-end !important;
    text-align: right !important;
  }
  .profile-table-row .profile-org-primary,
  .profile-table-row .profile-org-secondary {
    max-width: 210px !important;
  }

  .profile-table-row .col-phone {
    grid-area: phone !important;
    padding: 0.42rem 0 !important;
  }
  .profile-table-row .col-phone .phone-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    font-weight: 600 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
    padding: 0.22rem 0.6rem !important;
    border-radius: 6px !important;
    text-decoration: none !important;
  }
  .profile-table-row .col-phone .phone-link::before {
    content: "📞";
    font-size: 0.75rem;
  }

  .profile-table-row .col-taps {
    grid-area: taps !important;
    width: 100% !important;
    padding: 0.42rem 0 !important;
    border-bottom: none !important;
  }

  /* Actions Bar at the bottom of the card */
  .profile-table-row .col-actions {
    grid-area: actions !important;
    display: block !important;
    padding: 0.65rem 0 0 0 !important;
    border: none !important;
    border-top: 1px solid var(--surface-border) !important;
    margin-top: 0.25rem !important;
    width: 100% !important;
  }
  .profile-table-row .col-actions .admin-table-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    justify-content: stretch !important;
    gap: 0.4rem !important;
  }
  .profile-table-row .col-actions .admin-table-actions button {
    flex: 1 !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.28rem !important;
    padding: 0.55rem 0.25rem !important;
    font-size: 0.77rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    min-height: 38px !important;
  }
  .btn-text-mobile {
    display: inline !important;
  }

  /* Specialized: Parameter Cards on Mobile (.param-table) */
  .param-table-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .param-table {
    display: block !important;
    width: 100% !important;
  }
  .param-table thead {
    display: none !important;
  }
  .param-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
    width: 100% !important;
  }
  .param-table tbody tr.param-row {
    display: flex !important;
    flex-direction: column !important;
    padding: 1.15rem !important;
    background: var(--surface-color) !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: 18px !important;
    margin-bottom: 0 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1) !important;
    gap: 0.75rem !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
  [data-theme="light"] .param-table tbody tr.param-row {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  }
  .param-table tbody td {
    display: block !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: left !important;
  }
  .param-table tbody td::before {
    display: none !important;
  }

  .param-id-wrap {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding-bottom: 0.65rem !important;
    border-bottom: 1px solid var(--surface-border) !important;
  }
  .param-key-tag-desktop {
    display: none !important;
  }
  .param-key-tag-mobile {
    display: inline-block !important;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    border: 1px solid var(--surface-border);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  [data-theme="light"] .param-key-tag-mobile {
    background: rgba(0, 0, 0, 0.04);
  }

  .param-desc-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    margin: 0;
  }

  .param-val-card {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.65rem 0.85rem !important;
    background: rgba(99, 102, 241, 0.06) !important;
    border: 1px solid rgba(99, 102, 241, 0.15) !important;
    border-radius: 12px !important;
  }
  [data-theme="light"] .param-val-card {
    background: rgba(79, 70, 229, 0.05) !important;
    border-color: rgba(79, 70, 229, 0.15) !important;
  }
  .param-val-label-mobile {
    display: inline-block !important;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
  }
  .param-val-badge {
    font-size: 0.98rem;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  }

  .param-edit-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
  }

  /* Modals General Mobile */
  .modal-content {
    padding: 1.25rem 0.9rem !important;
    width: 95% !important;
    max-height: 92vh !important;
    border-radius: 16px !important;
    -webkit-overflow-scrolling: touch;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Creator Modal (Yeni Profil Oluştur) on Mobile */
  #creator-modal .modal-content {
    width: 95% !important;
    max-height: 90vh !important;
    padding: 1.25rem 1rem !important;
    border-radius: 18px !important;
  }
  #creator-modal .modal-header {
    margin-bottom: 0.85rem !important;
    padding-bottom: 0.65rem !important;
  }
  #creator-modal .modal-title {
    font-size: 1.18rem !important;
    font-weight: 700 !important;
  }
  #creator-modal .form-section-title {
    font-size: 0.92rem !important;
    margin: 1.15rem 0 0.65rem 0 !important;
    padding-bottom: 0.35rem !important;
  }
  #creator-modal .form-group {
    margin-bottom: 0.75rem !important;
  }
  #creator-modal .form-group label {
    font-size: 0.8rem !important;
    margin-bottom: 0.3rem !important;
  }
  #creator-modal .form-control {
    font-size: 16px !important;
    padding: 0.65rem 0.8rem !important;
    border-radius: 10px !important;
  }
  #creator-modal .avatar-upload-container {
    gap: 0.85rem !important;
    margin-bottom: 1rem !important;
  }
  #creator-modal .avatar-preview {
    width: 65px !important;
    height: 65px !important;
    min-width: 65px !important;
  }
  #creator-modal .creator-form-actions {
    display: flex !important;
    gap: 0.65rem !important;
    margin-top: 1.25rem !important;
    padding-top: 1rem !important;
  }
  #creator-modal .creator-form-actions button {
    flex: 1 !important;
    padding: 0.75rem 0.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    justify-content: center !important;
  }

  /* Login View Mobile */
  #login-view .surface-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: 16px !important;
  }
  #login-view .form-control {
    font-size: 16px !important;
    padding: 0.75rem 0.85rem !important;
  }
  #login-submit-btn {
    font-size: 1rem !important;
    padding: 0.85rem !important;
    border-radius: 10px !important;
  }
  .captcha-wrapper {
    gap: 0.4rem !important;
  }
  .captcha-preview svg {
    width: 105px !important;
    height: 40px !important;
  }
  #captcha-refresh-btn {
    width: 40px !important;
    height: 40px !important;
  }
  .captcha-input {
    height: 40px !important;
    font-size: 16px !important;
    padding: 0.4rem !important;
  }
  /* Share Modal on Mobile */
  .share-modal-content {
    width: 92% !important;
    max-width: 400px !important;
    max-height: 88vh !important;
    padding: 1rem 0.9rem !important;
  }
  .share-qr-row {
    flex-direction: row !important;
    gap: 0.75rem !important;
    justify-content: center !important;
  }
  .share-qr-row .qr-code-wrapper {
    padding: 0.4rem !important;
  }
  .share-qr-row .qr-code-wrapper canvas,
  .share-qr-row .qr-code-wrapper img {
    width: 125px !important;
    height: 125px !important;
  }
  .share-link-box {
    margin-top: 0.6rem !important;
  }

  /* Mobil - Süper Admin Ekran Sadeleştirme (İstatistik ve açıklama gizleme) */
  #superadmin-view .hero p,
  #superadmin-view #sa-stats {
    display: none !important;
  }
  #superadmin-view .hero {
    padding-bottom: 0.35rem !important;
  }

  /* Mobil - Bayi Paneli Kontör Özeti (Kompakt yatay şerit görünümü) */
  #dealer-credit-widget {
    margin-bottom: 0.75rem !important;
  }
  .credit-widget {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0.55rem 0.85rem !important;
    border-radius: 12px !important;
    gap: 0.35rem !important;
  }
  .credit-widget-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .credit-widget-title {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
  }
  .credit-widget-numbers {
    font-size: 0.92rem !important;
  }
  .credit-widget-remaining {
    font-size: 0.75rem !important;
    margin-top: 0 !important;
  }
  .credit-widget .credit-bar-wrap {
    width: 100% !important;
    min-width: 0 !important;
    height: 4px !important;
    margin-top: 0 !important;
  }

  /* Mobil Sayfalama (Pagination) */
  .pagination-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.65rem !important;
    padding: 0.85rem 0 0.25rem 0 !important;
  }
  .pagination-info {
    font-size: 0.78rem !important;
  }
  .pagination-nav {
    justify-content: center !important;
    gap: 0.25rem !important;
  }
  .pagination-btn {
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.78rem !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   CREDIT HISTORY MODAL & PDF STYLES
   ───────────────────────────────────────────────────────────────────────────── */
.credit-history-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ch-stat-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: center;
}

.ch-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.ch-stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ch-badge-pos {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.ch-badge-neg {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.ch-badge-zero {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .credit-history-summary {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  .ch-stat-card {
    padding: 0.65rem 0.75rem !important;
  }
  .ch-stat-val {
    font-size: 1.1rem !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   TAP ANALYTICS & NFC VIEW COUNTER STYLES
   ───────────────────────────────────────────────────────────────────────────── */
.tap-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tap-badge-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}
[data-theme="light"] .progress-bar-bg {
  background: rgba(0, 0, 0, 0.06);
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

@media (max-width: 768px) {
  .analytics-stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }
  #pa-breakdown-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   TOPLU SEÇİM & TOPLU QR EXPORT STİLLERİ
   ───────────────────────────────────────────────────────────────────────────── */
.table-selection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.15rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--border-radius, 8px);
  margin-bottom: 0.85rem;
  animation: fadeIn 0.2s ease;
}

.selection-count-text {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.table-checkbox {
  width: 17px;
  height: 17px;
  accent-color: var(--primary-color);
  cursor: pointer;
  vertical-align: middle;
}

.radio-card:hover {
  border-color: var(--primary-color) !important;
  background: rgba(99, 102, 241, 0.05) !important;
}

.radio-card input[type="radio"]:checked + div {
  color: var(--primary-color);
}

/* ─────────────────────────────────────────────────────────────────────────────
   KURUMSAL TEMA & GÖRSEL KİŞİSELLEŞTİRME (BRANDING SUITE)
   ───────────────────────────────────────────────────────────────────────────── */
.modal-content-branding {
  max-width: 1060px !important;
  width: 95%;
  padding: 1.5rem 1.75rem !important;
  overflow-x: hidden !important;
}

/* Mobile Navigation for Branding Modal */
.branding-mobile-nav {
  display: none;
}

.branding-mobile-quick-preview {
  display: none;
}

.mobile-preview-back-btn-wrap {
  display: none;
}

.branding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 1.5rem;
  align-items: start;
}

.branding-controls-col {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.branding-preview-col {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 275px;
  min-width: 275px;
}

@media (max-width: 860px) {
  .branding-mobile-nav {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--surface-border);
  }

  .branding-mobile-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.65rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
  }

  .branding-mobile-tab-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 10px var(--primary-glow);
  }

  .branding-mobile-quick-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
    margin-bottom: 1rem;
  }

  .mobile-quick-banner {
    flex: 1;
    height: 48px;
    border-radius: 9px;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: var(--transition-fast);
    overflow: hidden;
  }

  .mobile-quick-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }

  .mobile-quick-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  }

  .mobile-quick-company {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
  }

  .mobile-quick-logo {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 2px 5px;
    max-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-quick-logo img {
    max-height: 18px;
    max-width: 60px;
    object-fit: contain;
  }

  .mobile-preview-back-btn-wrap {
    display: block !important;
  }

  .branding-layout {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .branding-preview-col {
    width: 100% !important;
    min-width: 0 !important;
    position: relative !important;
    top: 0 !important;
    display: none; /* Controlled by mobile tabs */
  }

  .live-phone-simulator {
    width: 260px !important;
    max-width: 90% !important;
    margin: 0.5rem auto 1rem auto !important;
  }
}

.branding-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Presets Grid - 12 themes in 4 columns x 3 rows */
.theme-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.preset-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 9px;
  border: 1.5px solid var(--surface-border);
  background: var(--surface-color);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
  min-width: 0;
}

.preset-chip:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.preset-chip.active {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.preset-color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.preset-chip-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.preset-chip-name {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-chip-desc {
  font-size: 0.63rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 860px) {
  .theme-presets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .modal-content-branding {
    width: 96% !important;
    max-height: 94vh !important;
    padding: 1.15rem 0.9rem !important;
    border-radius: 18px !important;
  }

  .theme-presets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
  }

  .preset-chip {
    padding: 0.45rem 0.4rem !important;
    gap: 0.35rem !important;
  }

  .preset-color-dot {
    width: 18px !important;
    height: 18px !important;
  }

  .preset-chip-name {
    font-size: 0.72rem !important;
  }

  .preset-chip-desc {
    font-size: 0.58rem !important;
  }

  .custom-colors-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .color-input-card {
    padding: 0.3rem 0.4rem !important;
  }

  .modal-footer-branding {
    flex-direction: column-reverse !important;
    gap: 0.5rem !important;
  }

  .modal-footer-branding button {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
  }
}

/* Custom Colors Row */
.custom-colors-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.color-input-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
}

.color-picker-swatch {
  width: 32px;
  height: 32px;
  border: none;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
}

.color-picker-swatch::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-swatch::-webkit-color-swatch {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
}

/* Logo Upload Container */
.branding-logo-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--surface-color);
  border: 1.5px dashed var(--surface-border);
}

.branding-logo-preview {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 4px;
}

.branding-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.branding-logo-placeholder {
  font-size: 1.4rem;
  opacity: 0.4;
  color: #000;
}

/* Live Smartphone Simulator */
.live-phone-simulator {
  width: 255px;
  max-width: 100%;
  margin: 0 auto;
  background: #0f111a;
  border: 3.5px solid #272a38;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  font-family: var(--font-body);
}

.phone-speaker-notch {
  width: 60px;
  height: 4px;
  background: #272a38;
  border-radius: 4px;
  margin: 8px auto 6px auto;
}

.sim-banner {
  height: 85px;
  position: relative;
  overflow: hidden;
  padding: 6px 8px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  transition: var(--transition-fast);
}

.sim-logo-badge {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 2px 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  max-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-logo-badge img {
  max-height: 16px;
  max-width: 65px;
  object-fit: contain;
}

.sim-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -34px;
  position: relative;
  z-index: 2;
  padding: 0 10px 8px 10px;
  text-align: center;
}

.sim-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #0f111a;
  background: #1e2235;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  margin-bottom: 5px;
  overflow: hidden;
}

.sim-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sim-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.sim-title {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 1px;
}

.sim-company {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 8px;
  margin-top: 3px;
  display: inline-block;
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
}

.sim-cta-wrap {
  padding: 5px 12px;
}

.sim-cta-btn {
  width: 100%;
  padding: 6px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: var(--transition-fast);
}

.sim-actions-list {
  padding: 4px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sim-action-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border-radius: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.sim-action-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  flex-shrink: 0;
}

.sim-action-text {
  font-size: 0.65rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Company Table Theme Badge */
.company-theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--surface-border);
}

.company-theme-pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ─────────────────────────────────────────────────────────────
   MULTI-PHONE (+2) & MULTI-IBAN (MAX 3) DYNAMIC FORM FIELDS
   ───────────────────────────────────────────────────────────── */
.input-with-action-left,
.extra-field-row,
.iban-field-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.input-with-action-left .form-control,
.extra-field-row .form-control {
  flex: 1;
  min-width: 0;
}

.extra-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.extra-fields-stack:empty {
  display: none;
}

.btn-add-field,
.btn-remove-field {
  width: 36px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid var(--surface-border);
}

.btn-add-field {
  background: rgba(99, 102, 241, 0.14);
  color: var(--primary-color);
  border-color: rgba(99, 102, 241, 0.35);
}

.btn-add-field:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.btn-remove-field {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.28);
}

.btn-remove-field:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.iban-inputs-pair {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.iban-number-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.contact-action-item.iban-copy-item {
  cursor: pointer;
}

.iban-copy-pill {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--card-primary, var(--primary-color));
  border: 1px solid rgba(99, 102, 241, 0.22);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .iban-field-row {
    align-items: flex-start;
  }
  .iban-inputs-pair {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}



