/* ═══════════════════════════════════════════════════════════
   AstroL — Inner Pages Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Page Layout ────────────────────────────────────── */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 120px 24px 80px;
}

.page-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9000;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 40px rgba(0,0,0,0.4);
    padding: 12px 0;
}
.page-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.page-nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-nav__link {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: all var(--transition);
}
.page-nav__link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.page-nav__link--active { color: var(--purple-light); }

/* ─── Glass Card ─────────────────────────────────────── */
.glass {
    background: rgba(15, 15, 36, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 40px;
}

/* ─── Service Detail ─────────────────────────────────── */
.svc-detail {
    max-width: 800px;
    margin: 0 auto;
}
.svc-detail__icon {
    font-size: 4rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px var(--purple-glow));
}
.svc-detail__image {
    width: calc(100% + 80px);
    margin: -40px -40px 24px;
    height: 300px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}
.svc-detail__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.svc-detail__category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}
.svc-detail__title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}
.svc-detail__desc {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
    white-space: pre-wrap;
}
.svc-detail__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.svc-detail__price {
    font-family: var(--ff-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

/* ─── Auth Forms ─────────────────────────────────────── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
}
.auth-card__header {
    text-align: center;
    margin-bottom: 32px;
}
.auth-card__icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}
.auth-card__title {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    font-weight: 600;
}
.auth-card__subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 6px;
}
.auth-card .form-group { margin-bottom: 18px; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.auth-card__footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--text-dim);
}
.auth-card__footer a {
    color: var(--purple-light);
    font-weight: 500;
}
.auth-card__footer a:hover { text-decoration: underline; }

.auth-errors {
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #ff8080;
}

/* ─── Cabinet ────────────────────────────────────────── */
.cabinet {
    max-width: 900px;
    margin: 0 auto;
}
.cabinet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}
.cabinet__greeting {
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 600;
}
.cabinet__zodiac {
    font-size: 1.1rem;
    color: var(--gold);
}

.cabinet__section {
    margin-bottom: 40px;
}
.cabinet__section-title {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.profile-item {
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.profile-item__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.profile-item__value {
    font-size: 1rem;
    color: var(--text);
}

/* Orders table */
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 16px;
    align-items: center;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: all var(--transition);
}
.order-row:hover { background: var(--bg-card-hover); }
.order-row__service { font-weight: 500; }
.order-row__date { color: var(--text-dim); font-size: 0.85rem; }
.order-row__amount { color: var(--gold); font-weight: 600; }

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.status-badge--pending    { background: rgba(255,200,60,0.15);  color: #ffc83c; }
.status-badge--paid       { background: rgba(80,200,120,0.15);  color: #50c878; }
.status-badge--processing { background: rgba(100,150,255,0.15); color: #6496ff; }
.status-badge--completed  { background: rgba(155,109,255,0.15); color: #9b6dff; }
.status-badge--cancelled  { background: rgba(255,80,80,0.1);    color: #ff5050; }

/* ─── Admin Panel ────────────────────────────────────── */
.admin-layout {
    max-width: 1100px;
    margin: 0 auto;
}
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}
.admin-header__title {
    font-family: var(--ff-display);
    font-size: 2.2rem;
    font-weight: 700;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
}
.stat-card__value {
    font-family: var(--ff-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--purple-light);
}
.stat-card__label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.admin-section {
    margin-bottom: 48px;
}
.admin-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.admin-section__title {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.9rem;
    vertical-align: middle;
}
.admin-table tr:hover td {
    background: rgba(255,255,255,0.02);
}
.admin-table__actions {
    display: flex;
    gap: 8px;
}
.admin-table__actions a,
.admin-table__actions button {
    padding: 6px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}
.action-edit {
    background: rgba(155, 109, 255, 0.15);
    color: var(--purple-light);
}
.action-edit:hover { background: rgba(155, 109, 255, 0.25); }
.action-delete {
    background: rgba(255, 80, 80, 0.1);
    color: #ff6060;
}
.action-delete:hover { background: rgba(255, 80, 80, 0.2); }

/* Admin form */
.admin-form {
    max-width: 700px;
    margin: 0 auto;
}
.admin-form .glass { padding: 48px; }
.admin-form__title {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 32px;
}
.admin-form__actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ─── Payment Success ────────────────────────────────── */
.payment-success {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 60px 40px;
}
.payment-success__icon {
    font-size: 4rem;
    margin-bottom: 20px;
}
.payment-success__title {
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.payment-success__text {
    color: var(--text-dim);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ─── Edit Profile ───────────────────────────────────── */
.edit-profile {
    max-width: 600px;
    margin: 0 auto;
}
.edit-profile__title {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .order-row { grid-template-columns: 1fr 1fr; }
    .admin-table { font-size: 0.8rem; }
    .admin-table th, .admin-table td { padding: 10px 8px; }
    .glass { padding: 24px; }
    .admin-form .glass { padding: 24px; }
}
