/* ============================================
   CepDefter - Ana Stil Dosyası
   Webtrsoft - 2026
   Mobile-First, Dark Mode, Glassmorphism
   ============================================ */

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

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
  /* Renk Paleti */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --bg-input: rgba(255, 255, 255, 0.07);
  --bg-modal: rgba(10, 14, 26, 0.95);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #0f172a;

  --green: #10b981;
  --green-light: #34d399;
  --green-dark: #059669;
  --green-glow: rgba(16, 185, 129, 0.25);
  --green-bg: rgba(16, 185, 129, 0.12);

  --red: #ef4444;
  --red-light: #f87171;
  --red-dark: #dc2626;
  --red-glow: rgba(239, 68, 68, 0.25);
  --red-bg: rgba(239, 68, 68, 0.12);

  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-dark: #2563eb;
  --blue-glow: rgba(59, 130, 246, 0.25);

  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-glow: rgba(139, 92, 246, 0.25);

  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);

  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);

  /* Gradyanlar */
  --gradient-green: linear-gradient(135deg, #10b981, #059669);
  --gradient-red: linear-gradient(135deg, #ef4444, #dc2626);
  --gradient-blue: linear-gradient(135deg, #3b82f6, #2563eb);
  --gradient-purple: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #1e1b4b 50%, #0a0e1a 100%);

  /* Boyutlar */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50%;

  /* Gölgeler */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow-green: 0 0 20px var(--green-glow);
  --shadow-glow-red: 0 0 20px var(--red-glow);
  --shadow-glow-blue: 0 0 20px var(--blue-glow);

  /* Spacing */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: 65px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.has-nav {
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover { color: var(--blue); }

img { max-width: 100%; height: auto; }

/* ============================================
   Login / Auth Page
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.06) 0%, transparent 50%);
  animation: float-bg 20s ease-in-out infinite;
}

@keyframes float-bg {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.auth-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo h1 {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-light), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.auth-logo p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 6px;
}

.auth-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--blue);
  color: white;
  box-shadow: 0 2px 8px var(--blue-glow);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

/* ============================================
   Form Elements
   ============================================ */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
  background: rgba(255,255,255,0.09);
}

/* Select dropdown fix — native options need explicit colors */
select.form-input,
.profile-field select,
.form-input[type="select"] {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

select.form-input option,
.profile-field select option,
.form-group select option {
  background-color: #1e293b;
  color: #f1f5f9;
  padding: 8px;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.phone-input-group {
  display: flex;
  gap: 8px;
}

.phone-prefix {
  width: 72px;
  flex-shrink: 0;
  text-align: center;
  font-weight: 600;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

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

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

.btn-success {
  background: var(--gradient-green);
  color: white;
  box-shadow: 0 4px 12px var(--green-glow);
}

.btn-danger {
  background: var(--gradient-red);
  color: white;
  box-shadow: 0 4px 12px var(--red-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-glass-hover);
}

.btn-google {
  background: white;
  color: #333;
  width: 100%;
  padding: 12px;
  font-weight: 500;
}

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

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================
   OTP Input
   ============================================ */
.otp-section { display: none; }
.otp-section.active { display: block; }

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.otp-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.otp-timer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ============================================
   App Shell & Layout
   ============================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header h1 {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-light), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.page-content {
  padding: 16px 20px;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Bottom Navigation
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  padding-bottom: var(--safe-bottom);
  z-index: 200;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-item.active {
  color: var(--blue);
}

.nav-item .nav-icon {
  font-size: 1.3rem;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 20px;
  height: 3px;
  background: var(--blue);
  border-radius: 0 0 3px 3px;
}

/* FAB (+) Button */
.fab {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px + var(--safe-bottom));
  right: 20px;
  width: 58px;
  height: 58px;
  background: var(--gradient-blue);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.8rem;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--blue-glow);
  transition: var(--transition);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 30px var(--blue-glow);
}

.fab:active {
  transform: scale(0.95);
}

/* ============================================
   Dashboard Cards
   ============================================ */
.summary-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.summary-card {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.summary-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.summary-card.green::before { background: var(--gradient-green); }
.summary-card.red::before { background: var(--gradient-red); }
.summary-card.blue::before { background: var(--gradient-blue); }
.summary-card.purple::before { background: var(--gradient-purple); }

.summary-card.full-width {
  grid-column: 1 / -1;
}

.card-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-label .icon {
  font-size: 0.9rem;
}

.card-amount {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.card-amount.green { color: var(--green); }
.card-amount.red { color: var(--red); }
.card-amount.blue { color: var(--blue-light); }

.card-amount .currency {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.7;
  margin-left: 2px;
}

/* Modal içindeki kartlarda daha küçük yazı */
.modal .summary-cards {
  gap: 8px;
}

.modal .summary-card {
  padding: 12px 10px;
  min-width: 0;
  overflow: hidden;
}

.modal .card-amount {
  font-size: clamp(1rem, 4vw, 1.4rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  margin-top: 20px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-action {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 500;
}

/* ============================================
   Transaction List
   ============================================ */
.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.transaction-item:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-light);
}

.tx-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tx-avatar.alacak {
  background: var(--green-bg);
  color: var(--green);
}

.tx-avatar.borc {
  background: var(--red-bg);
  color: var(--red);
}

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

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

.tx-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tx-amount {
  text-align: right;
  flex-shrink: 0;
}

.tx-amount .amount {
  font-size: 1rem;
  font-weight: 700;
}

.tx-amount .amount.alacak { color: var(--green); }
.tx-amount .amount.borc { color: var(--red); }

.tx-amount .date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Onay durumu */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.status-badge.onaylandi {
  background: var(--green-bg);
  color: var(--green);
}

.status-badge.beklemede {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
}

.status-badge.reddedildi {
  background: var(--red-bg);
  color: var(--red);
}

.status-badge.kisisel {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
}

/* ============================================
   Cari / Contact List
   ============================================ */
.cari-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cari-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.cari-item:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-light);
}

.cari-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

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

.cari-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.cari-phone {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.cari-balance {
  text-align: right;
}

.cari-balance .amount {
  font-size: 1rem;
  font-weight: 700;
}

/* ============================================
   Search Bar
   ============================================ */
.search-bar {
  position: relative;
  margin-bottom: 16px;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-modal);
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 1;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-body {
  padding: 12px 24px 32px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ============================================
   İşlem Ekleme
   ============================================ */
.type-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.type-btn {
  flex: 1;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.type-btn .type-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 6px;
}

.type-btn.borc.active {
  border-color: var(--red);
  background: var(--red-bg);
  color: var(--red);
  box-shadow: var(--shadow-glow-red);
}

.type-btn.alacak.active {
  border-color: var(--green);
  background: var(--green-bg);
  color: var(--green);
  box-shadow: var(--shadow-glow-green);
}

.amount-input-group {
  position: relative;
  margin-bottom: 20px;
}

.amount-input-group input {
  width: 100%;
  padding: 20px 50px 20px 20px;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  background: var(--bg-glass);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.amount-input-group input:focus {
  border-color: var(--blue);
}

.amount-input-group .currency-label {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ============================================
   Bildirimler
   ============================================ */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-item {
  padding: 14px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.notification-item.unread {
  border-left: 3px solid var(--blue);
  background: rgba(59, 130, 246, 0.05);
}

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

.notification-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.notification-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.notification-message {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.notification-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.notification-actions .btn {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* ============================================
   Premium Page
   ============================================ */
.premium-hero {
  text-align: center;
  padding: 30px 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
}

.premium-hero .icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.premium-hero h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.premium-hero p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.limit-bar {
  margin: 20px 0;
}

.limit-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.limit-bar-track {
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}

.limit-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gradient-blue);
  transition: width 0.5s ease;
}

.limit-bar-fill.warning {
  background: var(--gradient-red);
}

.video-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
}

.video-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.video-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* ============================================
   Profil
   ============================================ */
.profile-header {
  text-align: center;
  padding: 24px 0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 12px;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.profile-phone {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.menu-item:hover {
  background: var(--bg-glass-hover);
}

.menu-item .menu-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.menu-item .menu-arrow {
  margin-left: auto;
  color: var(--text-muted);
}

.menu-item.danger {
  color: var(--red);
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   Toast / Alert
   ============================================ */
.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 40px);
  max-width: 400px;
}

.toast {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  animation: slideDown 0.3s ease, fadeOut 0.3s ease 3s forwards;
  backdrop-filter: blur(12px);
}

.toast.success {
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.toast.error {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.toast.info {
  background: rgba(59, 130, 246, 0.9);
  color: white;
}

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

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

/* ============================================
   Ad Banner (Bottom fixed)
   ============================================ */
.ad-banner {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom));
  left: 0;
  right: 0;
  height: 50px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: 99;
}

body.has-nav.has-ad {
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 50px + 16px);
}

body.has-nav.has-ad .fab {
  bottom: calc(var(--nav-height) + 50px + 16px + var(--safe-bottom));
}

/* ============================================
   Skeleton Loading
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-glass-hover) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 90px;
  border-radius: var(--radius-lg);
}

.skeleton-item {
  height: 60px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 768px) {
  .page-content {
    padding: 24px 32px;
  }
  
  .summary-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .summary-card.full-width {
    grid-column: auto;
  }

  .auth-card {
    padding: 40px 36px;
  }

  .modal {
    border-radius: var(--radius-xl);
    border-bottom: 1px solid var(--border);
    max-height: 80vh;
    margin-bottom: 5vh;
  }

  .modal-overlay {
    align-items: center;
  }
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-in {
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ============================================
   Light Mode Theme
   ============================================ */
[data-theme="light"] {
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-hover: rgba(255, 255, 255, 0.9);
  --bg-input: rgba(0, 0, 0, 0.04);
  --bg-modal: rgba(255, 255, 255, 0.98);

  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-dark: #0f172a;

  --border: rgba(0, 0, 0, 0.1);
  --border-light: rgba(0, 0, 0, 0.15);

  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(245,247,250,0.8));
}

[data-theme="light"] body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Header & Nav */
[data-theme="light"] .app-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}

[data-theme="light"] .app-header h1 {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.95);
  border-top-color: var(--border);
}

[data-theme="light"] .nav-item {
  color: #718096;
}

[data-theme="light"] .nav-item.active {
  color: #2563eb;
}

[data-theme="light"] .nav-item.active::before {
  background: #2563eb;
}

/* Cards */
[data-theme="light"] .summary-card {
  background: var(--gradient-card);
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-theme="light"] .card-amount {
  color: var(--text-primary);
}

[data-theme="light"] .card-label {
  color: var(--text-secondary);
}

/* Inputs & Forms */
[data-theme="light"] .form-input,
[data-theme="light"] .profile-field input,
[data-theme="light"] .profile-field select,
[data-theme="light"] .profile-field textarea {
  background: #f7f8fa;
  border-color: #e2e8f0;
  color: #1a1a2e;
}

[data-theme="light"] .form-input:focus {
  background: #fff;
  border-color: #3b82f6;
}

[data-theme="light"] .form-input::placeholder {
  color: #a0aec0;
}

/* Select dropdowns */
[data-theme="light"] select.form-input,
[data-theme="light"] .profile-field select,
[data-theme="light"] .form-group select {
  background-color: #f7f8fa;
  color: #1a1a2e;
}

[data-theme="light"] select.form-input option,
[data-theme="light"] .profile-field select option,
[data-theme="light"] .form-group select option {
  background-color: #ffffff;
  color: #1a1a2e;
}

/* Modals */
[data-theme="light"] .modal-overlay {
  background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .modal {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

[data-theme="light"] .modal-header {
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .modal-title {
  color: #1a1a2e;
}

[data-theme="light"] .modal-close {
  color: #718096;
}

/* Transaction items */
[data-theme="light"] .transaction-item,
[data-theme="light"] .cari-item {
  background: var(--bg-glass);
  border-color: var(--border);
}

[data-theme="light"] .transaction-item:hover,
[data-theme="light"] .cari-item:hover {
  background: rgba(255,255,255,0.95);
  border-color: var(--border-light);
}

[data-theme="light"] .tx-name,
[data-theme="light"] .cari-name {
  color: #1a1a2e;
}

[data-theme="light"] .tx-desc,
[data-theme="light"] .cari-phone {
  color: #718096;
}

/* Profile sections */
[data-theme="light"] .profile-section {
  background: rgba(255,255,255,0.8);
  border-color: var(--border);
}

[data-theme="light"] .profile-section h3 {
  color: #1a1a2e;
}

/* Icon buttons */
[data-theme="light"] .icon-btn {
  background: rgba(0,0,0,0.04);
  border-color: var(--border);
  color: #4a5568;
}

[data-theme="light"] .icon-btn:hover {
  background: rgba(0,0,0,0.08);
  color: #1a1a2e;
}

/* Search bar */
[data-theme="light"] .search-bar input {
  background: rgba(0,0,0,0.04);
  border-color: #e2e8f0;
  color: #1a1a2e;
}

/* Auth page */
[data-theme="light"] .auth-page {
  background: linear-gradient(135deg, #e8eaf6, #f3e5f5, #e8eaf6);
}

[data-theme="light"] .auth-card {
  background: rgba(255,255,255,0.95);
  border-color: #e2e8f0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

[data-theme="light"] .auth-tab {
  color: #4a5568;
}

/* Buttons */
[data-theme="light"] .btn-outline {
  border-color: #e2e8f0;
  color: #1a1a2e;
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(0,0,0,0.04);
}

/* Notifications */
[data-theme="light"] .notification-item {
  background: rgba(255,255,255,0.8);
  border-color: var(--border);
}

/* Currency selector */
[data-theme="light"] .currency-btn {
  background: rgba(0,0,0,0.04);
  border-color: #e2e8f0;
  color: #4a5568;
}

[data-theme="light"] .currency-btn.active {
  border-color: #3b82f6;
  color: #3b82f6;
  background: rgba(59,130,246,0.08);
}

/* Toast */
[data-theme="light"] .toast {
  background: #1a1a2e;
  color: white;
}

/* Scrollbar light */
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
}

/* Empty state */
[data-theme="light"] .empty-state h3 {
  color: #4a5568;
}

[data-theme="light"] .empty-state p {
  color: #718096;
}

/* Tab badges */
[data-theme="light"] .kategori-tabs .kat-tab {
  background: rgba(255,255,255,0.8);
  border-color: #e2e8f0;
  color: #718096;
}

[data-theme="light"] .kategori-tabs .kat-tab.active {
  border-color: #3b82f6;
  color: #3b82f6;
  background: rgba(59,130,246,0.08);
}

/* ============================================
   Desktop / Tablet Responsive
   ============================================ */

/* Tablet (768px+) */
@media (min-width: 768px) {
  .page-content {
    max-width: 720px;
    padding: 24px 32px;
  }
  
  .app-header {
    padding: 16px 32px;
  }
  
  .app-header h1 {
    font-size: 1.4rem;
  }
  
  .summary-cards {
    gap: 16px;
  }
  
  .summary-card {
    padding: 22px 20px;
  }
  
  .card-amount {
    font-size: 1.7rem;
  }
  
  .cari-item {
    padding: 16px 20px;
  }
  
  .transaction-item {
    padding: 16px 20px;
  }
  
  .modal {
    max-width: 520px;
    border-radius: var(--radius-xl);
  }
  
  .modal-overlay {
    align-items: center;
    padding: 40px;
  }
  
  .bottom-nav {
    justify-content: center;
    gap: 8px;
  }
  
  .nav-item {
    padding: 8px 20px;
    font-size: 0.75rem;
  }
  
  .fab {
    right: calc((100vw - 720px) / 2 + 20px);
  }
  
  .auth-container {
    max-width: 440px;
  }
  
  .auth-card {
    padding: 40px 36px;
  }
  
  .profile-section {
    padding: 24px;
  }
  
  .notification-item {
    padding: 16px 20px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .page-content {
    max-width: 900px;
    padding: 28px 40px;
  }
  
  .app-header {
    padding: 18px 40px;
    max-width: 980px;
    margin: 0 auto;
    left: 0;
    right: 0;
  }
  
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .card-amount {
    font-size: 1.9rem;
  }
  
  .card-label {
    font-size: 0.85rem;
  }
  
  /* Cari listesi - grid layout */
  .cari-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .cari-item {
    border-radius: var(--radius-lg);
  }
  
  /* Transaction list - wider */
  .transaction-item {
    gap: 16px;
  }
  
  .tx-name {
    font-size: 0.95rem;
  }
  
  .tx-amount .amount {
    font-size: 1.1rem;
  }
  
  .modal {
    max-width: 560px;
    padding: 0;
  }
  
  .modal-body {
    padding: 24px;
  }
  
  .bottom-nav {
    max-width: 600px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    gap: 12px;
  }
  
  .nav-item {
    padding: 10px 28px;
    font-size: 0.78rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
  }
  
  .nav-item:hover {
    background: var(--bg-glass-hover);
  }
  
  .fab {
    right: calc((100vw - 900px) / 2 + 24px);
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }
  
  .search-bar {
    margin-bottom: 16px;
  }
  
  /* Profile sections grid */
  .profile-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .auth-container {
    max-width: 460px;
  }
}

/* Wide Desktop (1440px+) */
@media (min-width: 1440px) {
  .page-content {
    max-width: 1080px;
    padding: 32px 48px;
  }
  
  .app-header {
    max-width: 1160px;
  }
  
  .summary-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .summary-card.full-width {
    grid-column: span 2;
  }
  
  .cari-list {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .card-amount {
    font-size: 2rem;
  }
  
  .bottom-nav {
    max-width: 700px;
  }
  
  .fab {
    right: calc((100vw - 1080px) / 2 + 32px);
  }
}

/* Hover effects only on non-touch devices */
@media (hover: hover) {
  .cari-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
  }
  
  .transaction-item:hover {
    transform: translateX(4px);
  }
  
  .nav-item:hover {
    color: var(--blue-light);
  }
  
  .summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}

/* ============================================
   RTL (Right-to-Left) Support
   Arabic & Farsi
   ============================================ */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .app-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .app-header h1 {
  direction: rtl;
}

[dir="rtl"] .summary-cards {
  direction: rtl;
}

[dir="rtl"] .transaction-item,
[dir="rtl"] .cari-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .tx-info,
[dir="rtl"] .cari-info {
  text-align: right;
}

[dir="rtl"] .tx-amount {
  text-align: left;
}

[dir="rtl"] .profile-field label {
  text-align: right;
}

[dir="rtl"] .form-input,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
  text-align: right;
}

[dir="rtl"] .bottom-nav {
  direction: rtl;
}

[dir="rtl"] .modal-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .search-bar {
  direction: rtl;
}

[dir="rtl"] .kategori-tabs {
  direction: rtl;
}

[dir="rtl"] .btn-group {
  flex-direction: row-reverse;
}

[dir="rtl"] .card-icon {
  margin-left: 12px;
  margin-right: 0;
}

[dir="rtl"] .notification-item {
  flex-direction: row-reverse;
  text-align: right;
}
