/* ===== MY ACCOUNT PREMIUM CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #ff5a00;
  --orange-light: #ff7a2e;
  --orange-dark: #e04e00;
  --orange-bg: #fff8f4;
  --green: #22c55e;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --font: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--gray-800);
  min-height: 100vh;
  line-height: 1.5;
}

/* ===== NAVBAR ===== */
.ac-navbar {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(255,90,0,0.3);
}
.ac-navbar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 55px;
}
.ac-logo { display: flex; align-items: center; text-decoration: none; }
.ac-logo img { height: 70px; }
.ac-nav-links { display: flex; gap: 24px; }
.ac-nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 500; font-size: 16px; transition: color .2s; display: flex; align-items: center; gap: 6px; }
.ac-nav-links a:hover { color: #fff; }
.ac-nav-links a i { font-size: 16px; }
.ac-cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(6px);
  padding: 8px 18px; border-radius: 30px; color: #fff;
  text-decoration: none; font-weight: 600; font-size: 14px; transition: background .2s;
}
.ac-cart-btn:hover { background: rgba(255,255,255,0.25); }
.ac-cart-btn i { font-size: 18px; }

/* ===== PROFILE HEADER ===== */
.ac-profile-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}
.ac-profile-header::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://artitech.ro:85/assets/backgroun3.png') center/cover;
  opacity: 0.2;
}
.ac-profile-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  position: relative; z-index: 1;
}
.ac-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff; flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 15px rgba(255,90,0,0.4);
}
.ac-profile-info h1 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.ac-profile-info p { font-size: 14px; color: rgba(255,255,255,0.7); }

/* ===== MAIN LAYOUT ===== */
.ac-main {
  max-width: 1200px; margin: 0 auto;
  padding: 30px 20px 60px;
  display: grid; grid-template-columns: 280px 1fr; gap: 28px;
  align-items: start;
}

/* ===== SIDEBAR ===== */
.ac-sidebar { position: sticky; top: 90px; }
.ac-sidebar-menu {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  overflow: hidden; margin-bottom: 16px;
}
.ac-sidebar-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; text-decoration: none; color: var(--gray-700);
  border-left: 3px solid transparent;
  transition: all .2s;
}
.ac-sidebar-link:hover { background: var(--gray-50); border-left-color: var(--gray-300); }
.ac-sidebar-link--active {
  background: var(--orange-bg); border-left-color: var(--orange) !important;
  color: var(--orange);
}
.ac-sidebar-link--active strong { color: var(--orange); }
.ac-sidebar-link i { font-size: 22px; flex-shrink: 0; }
.ac-sidebar-link strong { font-size: 14px; font-weight: 600; display: block; }
.ac-sidebar-link span { font-size: 11px; color: var(--gray-400); }
.ac-sidebar-link + .ac-sidebar-link { border-top: 1px solid var(--gray-100); }

/* Sidebar contact card */
.ac-sidebar-contact {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: var(--radius-lg); padding: 20px;
  color: #fff;
}
.ac-sidebar-contact-inner { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ac-sidebar-contact-inner i { font-size: 28px; opacity: 0.9; }
.ac-sidebar-contact-inner strong { font-size: 14px; display: block; }
.ac-sidebar-contact-inner span { font-size: 12px; opacity: 0.85; }
.ac-contact-btn {
  display: block; text-align: center;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
  color: #fff; text-decoration: none; padding: 10px;
  border-radius: 25px; font-size: 13px; font-weight: 600;
  transition: background .2s;
}
.ac-contact-btn:hover { background: rgba(255,255,255,0.3); }

/* ===== CONTENT ===== */
.ac-content {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  padding: 28px;
}
.ac-content-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.ac-content-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.ac-content-header > div > p { font-size: 13px; color: var(--gray-500); }
.ac-security-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--orange-bg); border: 1px solid rgba(255,90,0,0.15);
  border-radius: var(--radius); padding: 12px 16px;
}
.ac-security-badge i { font-size: 28px; color: var(--orange); flex-shrink: 0; }
.ac-security-badge strong { font-size: 13px; font-weight: 600; display: block; }
.ac-security-badge span { font-size: 11px; color: var(--gray-500); }

/* ===== FORM ===== */
.ac-form-section { margin-bottom: 28px; }
.ac-form-section-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.ac-form-section-header i { font-size: 20px; color: var(--orange); }
.ac-form-section-header h3 { font-size: 16px; font-weight: 700; }

.ac-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ac-field { display: flex; flex-direction: column; }
.ac-field--full { grid-column: 1 / -1; }
.ac-field label {
  font-size: 13px; font-weight: 600; color: var(--gray-700);
  margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.ac-field label i { font-size: 14px; color: var(--gray-400); }
.ac-field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-200);
  border-radius: 10px; font-size: 14px; font-family: var(--font);
  color: var(--gray-800); background: #fff;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.ac-field input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,90,0,0.1); }
.ac-field input::placeholder { color: var(--gray-400); }
.ac-field input[readonly] {
  background: var(--gray-50); color: var(--gray-500);
  cursor: not-allowed;
}

/* Messages */
.ac-message {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 500; margin-bottom: 20px;
}
.ac-message i { font-size: 20px; flex-shrink: 0; }
.ac-message--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.ac-message--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Form actions */
.ac-form-actions {
  display: flex; gap: 12px; justify-content: flex-end;
  padding-top: 20px; border-top: 1px solid var(--gray-100);
}
.ac-btn-cancel {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 24px; border: 2px solid var(--gray-300);
  border-radius: 30px; background: #fff; color: var(--gray-700);
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: all .2s;
}
.ac-btn-cancel:hover { border-color: var(--gray-400); }
.ac-btn-save {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 32px; border: none; border-radius: 30px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  box-shadow: 0 4px 15px rgba(255,90,0,0.3);
  transition: transform .2s, box-shadow .2s;
}
.ac-btn-save:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,90,0,0.4); }
.ac-btn-save i, .ac-btn-cancel i { font-size: 18px; }

/* ===== FOOTER ===== */
.ac-footer {
  background: #fff; border-top: 1px solid var(--gray-200);
  padding: 24px 24px 16px; margin-top: 0;
}
.ac-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.ac-footer-item { display: flex; align-items: center; gap: 10px; }
.ac-footer-item i { font-size: 24px; color: var(--orange); }
.ac-footer-item strong { font-size: 13px; display: block; }
.ac-footer-item span { font-size: 11px; color: var(--gray-500); }
.ac-footer-copy { text-align: center; padding-top: 16px; }
.ac-footer-copy p { font-size: 12px; color: var(--gray-400); }

/* ===== ORDERS ===== */
.ac-orders-list { display: flex; flex-direction: column; gap: 14px; }
.ac-order-card {
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s;
}
.ac-order-card:hover { box-shadow: var(--shadow-md); }
.ac-order-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.ac-order-num { font-size: 14px; color: var(--gray-600); display: flex; align-items: center; gap: 8px; }
.ac-order-num strong { color: var(--gray-800); }
.ac-order-num i { font-size: 18px; color: var(--orange); }
.ac-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.ac-status i { font-size: 14px; }
.ac-status--prep { background: #fef3c7; color: #92400e; }
.ac-status--shipped { background: #d1fae5; color: #065f46; }
.ac-status--cancelled { background: #fecaca; color: #991b1b; }
.ac-order-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 16px 20px;
}
.ac-order-detail { display: flex; flex-direction: column; gap: 2px; }
.ac-order-label { font-size: 11px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.ac-order-value { font-size: 14px; font-weight: 500; }
.ac-order-price { color: var(--orange); font-weight: 700; }
.ac-order-footer {
  padding: 10px 20px; border-top: 1px solid var(--gray-100);
  background: #fffbeb;
}
.ac-cancel-order {
  display: inline-flex; align-items: center; gap: 4px;
  color: #dc2626; text-decoration: none; font-size: 13px; font-weight: 600;
  transition: color .2s;
}
.ac-cancel-order:hover { color: #991b1b; }
.ac-cancel-order i { font-size: 16px; }

/* Empty orders */
.ac-empty-orders {
  text-align: center; padding: 50px 20px;
  color: var(--gray-500);
}
.ac-empty-orders > i { font-size: 56px; color: var(--gray-300); display: block; margin-bottom: 14px; }
.ac-empty-orders h3 { font-size: 18px; color: var(--gray-700); margin-bottom: 6px; }
.ac-empty-orders p { font-size: 14px; margin-bottom: 20px; }

/* Loading */
.ac-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 40px; color: var(--gray-500); font-size: 14px;
}
.ac-loading i { font-size: 24px; color: var(--orange); }

/* ===== SECURITY ===== */
.ac-password-wrap {
  position: relative; display: flex; align-items: center;
}
.ac-password-wrap input {
  width: 100%; padding: 12px 14px; padding-right: 44px;
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  font-size: 14px; font-family: var(--font); color: var(--gray-800);
  background: #fff; transition: border-color .2s, box-shadow .2s; outline: none;
}
.ac-password-wrap input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,90,0,0.1); }
.ac-toggle-pass {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); font-size: 18px; padding: 4px;
  transition: color .2s;
}
.ac-toggle-pass:hover { color: var(--gray-700); }

/* Tips card */
.ac-tips-card {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 20px;
}
.ac-tips-card h4 {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--gray-800);
  margin-bottom: 12px;
}
.ac-tips-card h4 i { font-size: 20px; color: #f59e0b; }
.ac-tips-card ul { list-style: none; padding: 0; }
.ac-tips-card li {
  font-size: 13px; color: var(--gray-600);
  padding: 5px 0 5px 20px; position: relative;
}
.ac-tips-card li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--green); font-weight: 700;
}

/* ===== LOGOUT MODAL ===== */
.ac-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ac-modal {
  background: #fff; border-radius: var(--radius-lg);
  padding: 36px; max-width: 420px; width: 90%;
  text-align: center; box-shadow: var(--shadow-lg);
  animation: slideUp .3s;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ac-modal-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: #fef2f2; color: #ef4444;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 16px;
}
.ac-modal h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.ac-modal p { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.ac-modal-actions { display: flex; gap: 12px; justify-content: center; }
.ac-btn-logout {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 24px; border: none; border-radius: 30px;
  background: #ef4444; color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: var(--font); transition: background .2s;
}
.ac-btn-logout:hover { background: #dc2626; }
.ac-btn-logout i { font-size: 18px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .ac-main { grid-template-columns: 1fr; }
  .ac-nav-links { display: none; }
  .ac-content-header { flex-direction: column; }
  .ac-order-body { grid-template-columns: 1fr; }
  .ac-sidebar { position: static; }
  .ac-sidebar-menu { display: flex; overflow-x: auto; }
  .ac-sidebar-link { flex-direction: column; text-align: center; min-width: 100px; padding: 12px; border-left: none; border-bottom: 3px solid transparent; }
  .ac-sidebar-link--active { border-bottom-color: var(--orange); border-left-color: transparent !important; }
  .ac-sidebar-link span { display: none; }
  .ac-sidebar-link + .ac-sidebar-link { border-top: none; border-left: 1px solid var(--gray-100); }
  .ac-sidebar-contact { display: none; }
  .ac-footer-inner { justify-content: center; flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 600px) {
  .ac-form-row { grid-template-columns: 1fr; }
  
  /* Overlapping content layout */
  .ac-profile-header {
    padding: 30px 16px 80px 16px; /* Extra padding on bottom */
    text-align: center;
  }
  .ac-profile-header-inner { flex-direction: column; }
  .ac-main {
    padding: 0 0 100px 0; /* Space at bottom for nav bar */
    margin-top: -50px;
    position: relative;
    z-index: 10;
  }
  .ac-content {
    padding: 24px 16px;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    border: none;
  }

  /* Bottom Navigation Bar */
  .ac-sidebar-menu {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    border: none;
    border-radius: 20px 20px 0 0;
    margin: 0;
    z-index: 999;
    padding: 8px 10px;
  }
  .ac-sidebar-link {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 8px 4px;
    min-width: 0;
    border: none;
    flex: 1;
    gap: 4px;
  }
  .ac-sidebar-link:hover { background: transparent; }
  .ac-sidebar-link--active {
    background: transparent;
    color: var(--orange);
    border: none !important;
  }
  .ac-sidebar-link--active i { color: var(--orange); }
  .ac-sidebar-link i { font-size: 24px; color: var(--gray-500); }
  .ac-sidebar-link strong { font-size: 11px; font-weight: 500; color: inherit; }
  .ac-sidebar-link span { display: none; }
  .ac-sidebar-link + .ac-sidebar-link { border: none; }

  .ac-sidebar-contact { display: none; }

  .ac-form-actions { flex-direction: column; }
  .ac-btn-save, .ac-btn-cancel { width: 100%; justify-content: center; }
  
  .ac-security-badge { width: 100%; margin-top: 10px; }
  
  /* Hide standard footer on mobile app view */
  .ac-footer { display: none; }
  .ac-modal-actions { flex-direction: column; }
}
