﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   VPNexues Account Page — Blinkit Mobile Style
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

:root {
  --acc-green: #0c831f;
  --acc-green-light: #e8f5e9;
  --acc-green-dark: #096919;
  --acc-bg: linear-gradient(180deg, #f5f0d0 0%, #14532d 100%);
  --acc-card: #edf3e6;
  --acc-text: #1f1f1f;
  --acc-muted: #666666;
  --acc-border: #e8e8e8;
  --acc-radius: 14px;
  --acc-radius-sm: 10px;
  --acc-radius-lg: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.account-page {
  min-height: 100vh;
  background: var(--acc-bg);
  color: var(--acc-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}

a { color: inherit; text-decoration: none; }

/* ─── Shell ─────────────────────────────────────────────── */

.acc-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 20px;
}

.acc-section { margin-top: 14px; }

.acc-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--acc-text);
  margin-bottom: 10px;
}

/* ─── Header ────────────────────────────────────────────── */

.acc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--acc-border);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.acc-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(91, 140, 81, .28);
  background: linear-gradient(145deg, #f4fbf1 0%, #e8f5e3 100%);
  color: #2f7d2c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow:
      0 4px 12px rgba(21, 102, 39, .1),
      inset 0 1px 0 rgba(255, 255, 255, .9),
      inset 0 -1px 0 rgba(91, 140, 81, .06);
  transition: all .25s ease;
}

.acc-back:hover {
  border-color: rgba(91, 140, 81, .45);
  box-shadow:
      0 6px 16px rgba(21, 102, 39, .16),
      inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateX(-2px);
}

.acc-back:active {
  transform: translateX(0);
  box-shadow:
      0 2px 6px rgba(21, 102, 39, .1),
      inset 0 1px 2px rgba(91, 140, 81, .1);
}

.acc-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.acc-logo img {
  height: 36px;
  width: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.acc-logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.acc-logo-name {
  font-size: 16px;
  font-weight: 800;
  color: #14532d;
  line-height: 1.1;
}

.acc-logo-sub {
  font-size: 9px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.2;
}

.acc-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

/* ─── Welcome Banner ────────────────────────────────────── */

.acc-banner {
  position: relative;
  padding: 16px 16px 8px;
  min-height: auto;
  background: transparent;
  overflow: hidden;
  margin-top: 4px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.acc-banner::before {
  display: none;
}

.acc-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.acc-banner-text {
  text-align: center;
  margin-bottom: 6px;
}

.acc-banner-carousel {
  position: relative;
  height: 72px;
  overflow: hidden;
}

.acc-banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  animation: bannerSlideCarousel 9s infinite;
}

.acc-banner-slide--1 { animation-delay: 0s; }
.acc-banner-slide--2 { animation-delay: 3s; }
.acc-banner-slide--3 { animation-delay: 6s; }

@keyframes bannerSlideCarousel {
  0%, 100% { opacity: 0; transform: translateY(12px); }
  5%, 28% { opacity: 1; transform: translateY(0); }
  33% { opacity: 0; transform: translateY(-12px); }
}

.acc-banner-text h2 {
  font-size: 22px;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 0;
  line-height: 1.2;
}

.acc-banner-text p {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 0;
  line-height: 1.3;
}

.acc-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 22px;
  position: relative;
  overflow: hidden;
}

.acc-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  position: absolute;
  opacity: 0;
  animation: tagFadeCarousel 6s infinite;
}

.acc-tag:nth-child(1) { animation-delay: 0s; }
.acc-tag:nth-child(2) { animation-delay: 2s; }
.acc-tag:nth-child(3) { animation-delay: 4s; }

@keyframes tagFadeCarousel {
  0%, 20% { opacity: 0; transform: translateY(8px); }
  5%, 15% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-8px); }
}

.acc-tag i { color: #15803d; font-size: 12px; }

/* ─── Quick Actions ─────────────────────────────────────── */

.acc-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.acc-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 6px;
  background: var(--acc-card);
  border: 1px solid var(--acc-green);
  border-radius: var(--acc-radius);
  transition: all 0.2s;
  cursor: pointer;
}

.acc-quick-card:hover {
  border-color: #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.acc-quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-bottom: 6px;
}

.acc-quick-icon--green { background: #e8f5e9; color: #2e7d32; }
.acc-quick-icon--pink { background: #fce4ec; color: #e91e63; }
.acc-quick-icon--blue { background: #ede7f6; color: #5e35b1; }

.acc-quick-info { width: 100%; }

.acc-quick-info strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--acc-text);
  margin-bottom: 2px;
}

.acc-quick-info span {
  display: block;
  font-size: 11px;
  color: var(--acc-muted);
  line-height: 1.3;
}

.acc-quick-arrow {
  color: #2e7d32;
  font-size: 12px;
  margin-top: 6px;
}

/* ─── Account Menu ──────────────────────────────────────── */

.acc-menu-card {
  background: var(--acc-card);
  border: 1px solid var(--acc-green);
  border-radius: var(--acc-radius);
  overflow: hidden;
}

.acc-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--acc-green);
  transition: background 0.2s;
  cursor: pointer;
}

.acc-menu-item:last-child { border-bottom: none; }
.acc-menu-item:hover { background: #fafafa; }

.acc-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.acc-menu-icon--green { background: #e8f5e9; color: #2e7d32; }
.acc-menu-icon--teal { background: #e8f5e9; color: #2e7d32; }
.acc-menu-icon--orange { background: #e8f5e9; color: #2e7d32; }
.acc-menu-icon--purple { background: #e8f5e9; color: #2e7d32; }
.acc-menu-icon--blue { background: #e8f5e9; color: #2e7d32; }
.acc-menu-icon--red { background: #fee2e2; color: #dc2626; }

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

.acc-menu-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--acc-text);
}

.acc-menu-info span {
  display: block;
  font-size: 12px;
  color: var(--acc-muted);
  margin-top: 1px;
}

.acc-menu-arrow {
  color: #2e7d32;
  font-size: 12px;
  flex-shrink: 0;
}

/* ─── Logout Button ─────────────────────────────────────── */

.acc-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  border: none;
  border-radius: var(--acc-radius);
  background: #fce4ec;
  color: #c62828;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.acc-logout:hover { background: #f8bbd0; }
.acc-logout span { flex: 1; text-align: left; }
.acc-logout .fa-chevron-right { color: #e57373; font-size: 12px; }

/* ─── Delete Account Button ─────────────────────────────── */

.acc-delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 2px solid #dc2626;
  border-radius: var(--acc-radius);
  background: #fff;
  color: #dc2626;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.acc-delete-btn:hover { background: #fef2f2; }
.acc-delete-btn i { font-size: 15px; }

/* ─── Delete Modal ──────────────────────────────────────── */

.acc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 100000;
  align-items: flex-end;
  justify-content: center;
}

.acc-modal-overlay.open { display: flex; }

.acc-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
  animation: accSlideUp .3s ease;
}

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

.acc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--acc-border);
  flex-shrink: 0;
}

.acc-modal-header h2 { font-size: 18px; font-weight: 700; color: var(--acc-text); }

.acc-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: var(--acc-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.acc-modal-close:hover { background: #e5e7eb; }

.acc-modal-body {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.acc-modal-desc {
  font-size: 14px;
  color: var(--acc-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.acc-reasons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.acc-reason {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--acc-border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--acc-text);
  cursor: pointer;
  transition: border-color 0.2s;
}

.acc-reason:hover { border-color: var(--acc-green); }
.acc-reason input[type="radio"] { accent-color: var(--acc-green); }

.acc-reason-textarea {
  width: 100%;
  border: 1px solid var(--acc-border);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  color: var(--acc-text);
  resize: none;
  outline: none;
  font-family: inherit;
}

.acc-reason-textarea:focus { border-color: var(--acc-green); }
.acc-reason-textarea::placeholder { color: #9ca3af; }

.acc-modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px 20px;
  flex-shrink: 0;
  border-top: 1px solid var(--acc-border);
}

.acc-modal-cancel {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--acc-border);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--acc-text);
  cursor: pointer;
  transition: background 0.2s;
}

.acc-modal-cancel:hover { background: #f9fafb; }

.acc-modal-confirm {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #dc2626;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.acc-modal-confirm:hover { background: #b91c1c; }

/* ─── Wishlist Panel ────────────────────────────────────── */

.wishlist-panel[hidden] { display: none; }

.wishlist-panel {
  position: fixed;
  inset: 0;
  z-index: 100500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.wishlist-panel__dialog {
  width: min(520px, 100%);
  max-height: 70vh;
  overflow: auto;
  border-radius: var(--acc-radius-lg);
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.wishlist-panel__dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--acc-border);
}

.wishlist-panel__dialog h2 { font-size: 18px; font-weight: 700; }

.wishlist-panel__dialog header button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: #f5f5f5;
  color: var(--acc-text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-panel__items {
  display: grid;
  gap: 10px;
  padding: 14px 16px 18px;
}

.wishlist-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius-sm);
}

.wishlist-item img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
}

.wishlist-item strong { display: block; font-size: 14px; font-weight: 600; }
.wishlist-item small { display: block; margin-top: 3px; color: var(--acc-muted); font-size: 12px; }

.wishlist-item__remove {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #ffebee;
  color: #e53935;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-item__remove:hover { background: #e53935; color: #fff; }

.wishlist-empty {
  padding: 28px 10px;
  color: var(--acc-muted);
  text-align: center;
  font-size: 13px;
}

/* ─── Collapsible Sections ─────────────────────────────── */

.acc-collapsible[hidden] { display: none; }

.acc-collapsible {
  animation: accCollapseIn .3s ease;
}

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

.acc-menu-toggle .acc-menu-arrow {
  transition: transform 0.3s;
}

.acc-menu-toggle.open .acc-menu-arrow {
  transform: rotate(90deg);
}

.acc-sub-title {
  font-size: 12px;
  color: var(--acc-muted);
  margin-bottom: 8px;
  margin-top: -6px;
}

/* ─── Terms Items ──────────────────────────────────────── */

.tc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 14px;
  border-bottom: 1px solid var(--acc-green);
}

.tc-item:last-child { border-bottom: none; }

.tc-item-content { flex: 1; }

.tc-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--acc-text);
  margin-bottom: 2px;
}

.tc-item-desc {
  font-size: 12px;
  color: var(--acc-muted);
  line-height: 1.5;
}

/* ─── Notification Toggle ──────────────────────────────── */

.np-setting {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--acc-green);
}

.np-setting:last-child { border-bottom: none; }

.np-setting-info { flex: 1; }

.np-setting-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--acc-text);
}

.np-setting-desc {
  font-size: 12px;
  color: var(--acc-muted);
  margin-top: 1px;
}

.np-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.np-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.np-toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.3s;
}

.np-toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.np-toggle input:checked + .np-toggle-slider { background: var(--acc-green); }
.np-toggle input:checked + .np-toggle-slider::before { transform: translateX(20px); }

/* ─── Responsive ────────────────────────────────────── */

@media (min-width: 768px) {
  .acc-shell {
    max-width: 100%;
    padding: 0 24px 30px;
  }

  .acc-header {
    padding: 12px 24px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .acc-logo img {
    height: 40px;
    width: 40px;
  }

  .acc-logo-name {
    font-size: 18px;
  }

  .acc-banner {
    min-height: auto;
    padding: 24px 28px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .acc-banner-carousel {
    height: 80px;
  }

  .acc-banner-text h2 {
    font-size: 26px;
  }

  .acc-section-title {
    font-size: 19px;
  }

  .acc-quick-grid {
    gap: 10px;
  }

  .acc-quick-card {
    padding: 10px 10px;
  }

  .acc-quick-info strong {
    font-size: 12px;
  }

  .acc-quick-info span {
    font-size: 11px;
  }

  .acc-menu-item {
    padding: 16px 18px;
  }

  .acc-menu-info strong {
    font-size: 15px;
  }

  .acc-menu-icon {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  .acc-shell {
    max-width: 100%;
    padding: 0 32px 40px;
  }

  .acc-logo-name {
    font-size: 20px;
  }

  .acc-banner {
    min-height: auto;
    padding: 28px 36px;
  }

  .acc-banner-carousel {
    height: 88px;
  }

  .acc-banner-text h2 {
    font-size: 30px;
  }

  .acc-quick-card {
    padding: 20px 18px;
  }

  .acc-menu-item {
    padding: 20px 24px;
  }

  .acc-menu-info strong {
    font-size: 16px;
  }

  .acc-menu-info span {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .acc-modal {
    max-height: 100dvh;
    border-radius: 16px 16px 0 0;
  }

  .acc-modal-footer {
    padding: 12px 16px 16px;
  }
}
