/* ── Appartmant Account Center – Public CSS ─────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --ac-primary:   #6366f1;
    --ac-primary-d: #4f46e5;
    --ac-accent:    #a78bfa;
    --ac-dark:      #0f172a;
    --ac-dark-2:    #1e293b;
    --ac-text:      #1e293b;
    --ac-muted:     #64748b;
    --ac-white:     #ffffff;
    --ac-bg:        #f8fafc;
    --ac-border:    #e2e8f0;
    --ac-radius:    14px;
    --ac-shadow:    0 4px 24px rgba(99,102,241,.12);
    --ac-shadow-lg: 0 20px 60px rgba(0,0,0,.1);
    --ac-success:   #059669;
    --ac-danger:    #dc2626;
    --ac-warning:   #d97706;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

.ac-body {
    font-family: 'Inter', sans-serif;
    color: var(--ac-text);
    background: var(--ac-white);
    line-height: 1.65;
    min-height: 100vh;
}

/* ── Navbar ── */
.ac-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(15,23,42,.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 14px 0;
}
.ac-nav .ac-container {
    display: flex; align-items: center; justify-content: space-between;
}
.ac-nav-brand {
    color: #fff; font-weight: 800; font-size: 1.1rem;
    display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.ac-nav-brand .brand-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--ac-primary), var(--ac-accent));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; color: #fff;
}
.ac-nav-back {
    color: rgba(255,255,255,.65); font-size: .85rem;
    display: flex; align-items: center; gap: 6px; text-decoration: none;
    transition: color .2s;
}
.ac-nav-back:hover { color: #fff; }

/* ── Container ── */
.ac-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ── */
.ac-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
    padding: 130px 0 80px;
    position: relative; overflow: hidden; text-align: center;
}
.ac-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 25% 50%, rgba(99,102,241,.35) 0%, transparent 55%),
        radial-gradient(circle at 75% 30%, rgba(167,139,250,.25) 0%, transparent 50%);
}
.ac-hero-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.ac-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    padding: 6px 18px; border-radius: 30px;
    font-size: .78rem; font-weight: 500;
    margin-bottom: 24px; backdrop-filter: blur(8px);
}
.ac-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800; color: #fff; line-height: 1.15;
    margin-bottom: 16px;
}
.ac-hero h1 span {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ac-hero p { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 520px; margin: 0 auto 40px; }

/* ── Steps Bar ── */
.ac-steps {
    display: flex; justify-content: center; align-items: center;
    gap: 0; margin-top: 40px; position: relative; z-index: 2;
}
.ac-step {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    min-width: 100px;
}
.ac-step-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.6); font-size: .8rem; font-weight: 700;
    transition: all .3s;
}
.ac-step.active .ac-step-circle { background: var(--ac-primary); border-color: var(--ac-primary); color: #fff; }
.ac-step.done   .ac-step-circle { background: var(--ac-success);  border-color: var(--ac-success);  color: #fff; }
.ac-step-label  { font-size: .72rem; color: rgba(255,255,255,.5); font-weight: 500; }
.ac-step.active .ac-step-label { color: rgba(255,255,255,.9); }
.ac-step-line   { flex: 1; height: 2px; background: rgba(255,255,255,.15); max-width: 60px; }

/* ── Main Section ── */
.ac-main { padding: 64px 0 80px; background: var(--ac-bg); }

/* ── App Grid ── */
.ac-section-title {
    text-align: center; margin-bottom: 40px;
}
.ac-section-title h2 {
    font-size: 1.6rem; font-weight: 800; color: var(--ac-dark); margin-bottom: 8px;
}
.ac-section-title p { color: var(--ac-muted); font-size: .95rem; }

.ac-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px; margin-bottom: 48px;
}
.ac-app-card {
    background: #fff;
    border: 2px solid var(--ac-border);
    border-radius: 16px; padding: 24px 16px 20px;
    text-align: center; cursor: pointer;
    transition: all .25s;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    position: relative;
}
.ac-app-card:hover { border-color: var(--ac-primary); transform: translateY(-3px); box-shadow: var(--ac-shadow); }
.ac-app-card.selected {
    border-color: var(--ac-primary);
    background: rgba(99,102,241,.04);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.ac-app-card .selected-check {
    position: absolute; top: 10px; right: 10px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--ac-primary); color: #fff;
    font-size: .7rem; display: none;
    align-items: center; justify-content: center;
}
.ac-app-card.selected .selected-check { display: flex; }
.ac-app-icon {
    width: 72px; height: 72px; border-radius: 16px;
    object-fit: cover; box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.ac-app-icon-ph {
    width: 72px; height: 72px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(167,139,250,.15));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--ac-primary);
}
.ac-app-name { font-size: .9rem; font-weight: 700; color: var(--ac-dark); line-height: 1.3; }

/* ── Form Card ── */
.ac-form-card {
    background: #fff; border: 1px solid var(--ac-border);
    border-radius: 20px; padding: 40px;
    box-shadow: var(--ac-shadow-lg);
    max-width: 640px; margin: 0 auto;
    display: none;
}
.ac-form-card.visible { display: block; animation: slideUp .35s ease; }
@keyframes slideUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

.ac-form-title {
    font-size: 1.2rem; font-weight: 700; color: var(--ac-dark);
    margin-bottom: 6px; display: flex; align-items: center; gap: 10px;
}
.ac-form-subtitle { color: var(--ac-muted); font-size: .88rem; margin-bottom: 28px; }

.ac-selected-app {
    display: flex; align-items: center; gap: 12px;
    background: rgba(99,102,241,.06); border: 1px solid rgba(99,102,241,.2);
    border-radius: 10px; padding: 12px 16px; margin-bottom: 24px;
}
.ac-selected-app img { width: 40px; height: 40px; border-radius: 10px; }
.ac-selected-app span { font-weight: 600; color: var(--ac-dark); font-size: .9rem; }
.ac-change-app { margin-left: auto; font-size: .8rem; color: var(--ac-primary); cursor: pointer; text-decoration: underline; }

/* ── Form Elements ── */
.ac-form-group { margin-bottom: 20px; }
.ac-form-group label {
    display: block; font-size: .83rem; font-weight: 600;
    color: var(--ac-text); margin-bottom: 7px;
}
.ac-form-group label span { color: var(--ac-muted); font-weight: 400; }
.ac-input {
    width: 100%; border: 1.5px solid var(--ac-border);
    border-radius: 10px; padding: 12px 14px;
    font-family: 'Inter', sans-serif; font-size: .9rem;
    color: var(--ac-text); outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: var(--ac-bg);
}
.ac-input:focus {
    border-color: var(--ac-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
    background: #fff;
}
.ac-textarea { min-height: 100px; resize: vertical; }
.ac-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }

.ac-checkbox-group {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(239,68,68,.05); border: 1px solid rgba(239,68,68,.2);
    border-radius: 10px; padding: 14px;
}
.ac-checkbox-group input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; cursor: pointer; accent-color: var(--ac-danger); }
.ac-checkbox-group label { font-size: .85rem; color: #991b1b; cursor: pointer; }

/* ── Buttons ── */
.ac-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 10px;
    font-family: 'Inter', sans-serif; font-size: .92rem; font-weight: 600;
    cursor: pointer; border: none; transition: all .25s; text-decoration: none;
}
.ac-btn-primary {
    background: linear-gradient(135deg, var(--ac-primary), var(--ac-accent));
    color: #fff; box-shadow: 0 4px 16px rgba(99,102,241,.35); width: 100%; justify-content: center;
}
.ac-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,.45); }
.ac-btn-danger  { background: var(--ac-danger); color: #fff; }
.ac-btn-outline { background: transparent; border: 2px solid var(--ac-border); color: var(--ac-muted); }
.ac-btn-outline:hover { border-color: var(--ac-primary); color: var(--ac-primary); }

/* ── Alert ── */
.ac-alert {
    padding: 14px 18px; border-radius: 10px;
    font-size: .88rem; display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 20px;
}
.ac-alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.ac-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.ac-alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.ac-alert-icon    { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ── Success / Info Pages ── */
.ac-result-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--ac-bg); padding: 40px 24px;
}
.ac-result-card {
    background: #fff; border: 1px solid var(--ac-border);
    border-radius: 24px; padding: 56px 48px;
    max-width: 520px; width: 100%; text-align: center;
    box-shadow: var(--ac-shadow-lg);
}
.ac-result-icon {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin: 0 auto 24px;
}
.ac-result-icon.success { background: rgba(5,150,105,.1); color: var(--ac-success); }
.ac-result-icon.pending { background: rgba(99,102,241,.1); color: var(--ac-primary); }
.ac-result-icon.cancelled { background: rgba(14,165,233,.1); color: #0ea5e9; }
.ac-result-icon.error   { background: rgba(220,38,38,.1); color: var(--ac-danger); }
.ac-result-card h1 { font-size: 1.6rem; font-weight: 800; color: var(--ac-dark); margin-bottom: 12px; }
.ac-result-card p  { color: var(--ac-muted); font-size: .95rem; line-height: 1.7; margin-bottom: 28px; }
.ac-result-info {
    background: var(--ac-bg); border-radius: 12px; padding: 18px;
    font-size: .85rem; color: var(--ac-muted); line-height: 1.9; margin-bottom: 28px; text-align: left;
}

/* ── FAQ ── */
.ac-faq { padding: 72px 0; }
.ac-faq-item {
    border: 1px solid var(--ac-border); border-radius: 12px;
    margin-bottom: 10px; overflow: hidden;
}
.ac-faq-q {
    padding: 18px 22px; font-weight: 600; font-size: .92rem;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    background: #fff; transition: background .2s;
}
.ac-faq-q:hover { background: var(--ac-bg); }
.ac-faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; font-size: .88rem; color: var(--ac-muted); line-height: 1.7; }
.ac-faq-a.open { max-height: 200px; padding: 16px 22px; }

/* ── Footer ── */
.ac-footer {
    background: var(--ac-dark); color: rgba(255,255,255,.5);
    padding: 32px 0; text-align: center; font-size: .83rem;
}
.ac-footer a { color: var(--ac-accent); text-decoration: none; }
.ac-footer a:hover { color: #fff; }

/* ── Spinner ── */
.ac-spinner {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
    animation: spin .7s linear infinite; display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 640px) {
    .ac-form-card { padding: 24px; }
    .ac-result-card { padding: 36px 24px; }
    .ac-apps-grid { grid-template-columns: repeat(2, 1fr); }
    .ac-hero { padding: 100px 0 60px; }
    .ac-step-line { max-width: 32px; }
}
