/* moved from /index.css to unify page css under /css/ */
/* index.css - 帳號中心首頁 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
    "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(1400px 800px at 15% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(1400px 800px at 110% 0%, rgba(129, 140, 248, 0.22), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

html,
body,
body *{
  cursor: auto;
}

html,
body,
body *{
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
body *::-webkit-scrollbar{
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

body[data-page="index"] button,
body[data-page="index"] [role="button"],
body[data-page="index"] a[href],
body[data-page="index"] [data-nav],
body[data-page="index"] .ac-btn,
body[data-page="index"] .ac-lang-wrapper,
body[data-page="index"] .account-widget-slot{
  cursor: pointer !important;
}

body[data-page="index"] input:not([type="button"]):not([type="submit"]):not([type="reset"]),
body[data-page="index"] textarea,
body[data-page="index"] [contenteditable="true"]{
  cursor: text !important;
}

body[data-page="index"] select{
  cursor: pointer !important;
}

.ac-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 12px 24px 24px;
}

/* Header */
.ac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.ac-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.ac-logo-link:hover {
  text-decoration: underline;
}

.ac-header-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.ac-btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.ac-btn-primary:active {
  filter: brightness(0.98);
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.ac-btn-outline:hover {
  background: #ffffff;
}

/* Main */
.ac-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hero */
.ac-hero {
  width: 100%;
  max-width: 960px;
  margin: 40px auto 28px;
  text-align: center;
}

.ac-hero-inner {
  padding: 24px 16px;
}

.ac-hero-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 800;
  letter-spacing: 0.02em;
  /* IMPORTANT: prevent line overlap on iOS Safari.
     A global fixed line-height rule exists for readability; headings must override it. */
  line-height: 1.12;
}

.ac-hero-highlight {
  background: linear-gradient(120deg, #38bdf8, #a855f7, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ac-hero-subtitle {
  margin: 0 auto 24px;
  max-width: 560px;
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
}

.ac-hero-actions {
  display: flex;
  justify-content: center;
}

/* Features */
.ac-features {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.ac-feature-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.35);
  padding: 18px 20px 16px;
  text-align: left;
}

.ac-feature-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #2563eb;
}

.ac-feature-text {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

/* Footer */
.ac-footer {
  margin-top: 28px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

/* RWD */
@media (max-width: 960px) {
  .ac-features {
    grid-template-columns: 1fr;
  }

  .ac-feature-card {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .ac-page {
    padding: 8px 12px 20px;
  }

  .ac-hero {
    margin: 32px auto 20px;
  }

  .ac-hero-inner {
    padding: 18px 8px;
  }

  .ac-hero-title {
    font-size: 28px;
  }
}


/* Readability
   Use a relative line-height to avoid overlapping large headings (notably iOS Safari).
   Headings that need tighter rhythm should override locally. */
body, .ac-page, .ac-main, .ac-card, .ac-flow{line-height:1.6;}


/* Header brand logo */
.ac-logo-link{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.ac-logo-link .ac-brand-logo{height:32px;width:auto;max-height:32px;display:block;object-fit:contain;flex:0 0 auto}
@media (max-width:640px){.ac-logo-link .ac-brand-logo{height:32px;width:auto;max-height:32px;display:block;object-fit:contain;flex:0 0 auto}}

/* LunaV home: preserve account-center layout, only adjust brand text wrapping safety */
.ac-logo-link span{white-space:nowrap}






/* 2026-04-04 simplified shadow tuning */
:root{--lv-shadow-sm:0 1px 2px rgba(15,23,42,.04);--lv-shadow-md:0 2px 6px rgba(15,23,42,.06);--lv-shadow-lg:0 8px 24px rgba(15,23,42,.12)}

.home-hero,.home-card,.entry-card,.permission-card,.feature-card{box-shadow:var(--lv-shadow-md)!important}
.primary-btn,.cta-btn{box-shadow:0 4px 10px rgba(79,70,229,.16)!important}
