/* NurS App PGP - style.css
   Bahasa visual: "proof sheet / nota cetak" — selaras dengan landing page.
   Dipakai oleh: login.php, payment.php (via includes/header_public.php) */

:root {
    --paper:       #FCFCF9;
    --paper-alt:   #F2EFE6;
    --ink:         #17150F;
    --muted:       #726C5E;
    --line:        #DBD6C7;
    --magenta:     #E8117D;
    --magenta-dk:  #C40E69;
    --cyan:        #00AEEF;
    --yellow:      #FFD400;
    --ok:          #158A45;
    --danger:      #D93025;
    --radius:      14px;
    --shadow:      0 20px 44px -24px rgba(23,21,15,0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body {
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

:focus-visible { outline: 2.5px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ─── Typography ─── */
h1, h2, h3 { color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1rem; }
p { color: var(--muted); margin-bottom: 1rem; }
a { color: var(--magenta-dk); text-decoration: none; }
a:hover { color: var(--magenta); }
small { font-size: 13px; color: var(--muted); }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background-color: var(--ink);
    color: var(--paper);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.15s;
    min-height: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn:hover { background-color: var(--magenta); transform: translateY(-1px); }
.btn-accent { background-color: var(--magenta); color: #fff; }
.btn-accent:hover { background-color: var(--magenta-dk); }
.btn-danger { background-color: var(--danger); color: #fff; }
.btn-danger:hover { background-color: #b42318; }
.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--ink);
    color: var(--ink);
}
.btn-outline:hover { background-color: var(--ink); color: var(--paper); }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: unset; width: auto; display: inline-block; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Forms ─── */
.form-group { margin-bottom: 1.2rem; }
label { display: block; margin-bottom: 0.4rem; font-size: 14px; font-weight: 600; color: var(--ink); }
input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    background-color: #fff;
    color: var(--ink);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: #B4AF9F; }
input:focus, select:focus, textarea:focus {
    border-color: var(--magenta);
    box-shadow: 0 0 0 3px rgba(232,17,125,0.12);
}
select option { background: #fff; }
textarea { resize: vertical; min-height: 80px; }

/* ─── Cards ─── */
.card {
    background-color: #fff;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--line);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

/* Sudut siku (crop-mark) — gema halus dari signature landing page */
.card-marked { position: relative; }
.card-marked::before, .card-marked::after,
.card-marked .crop-r::before, .card-marked .crop-r::after { content: ''; position: absolute; background: var(--line); }
.card-marked::before { width: 12px; height: 1.5px; top: -1px; left: -1px; }
.card-marked::after  { width: 1.5px; height: 12px; top: -1px; left: -1px; }

/* ─── Alerts ─── */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 1.2rem; font-size: 14px; line-height: 1.5; }
.alert-error   { background: rgba(217,48,37,0.07);  color: #B42318; border: 1px solid rgba(217,48,37,0.25); }
.alert-success { background: rgba(21,138,69,0.08);  color: var(--ok); border: 1px solid rgba(21,138,69,0.25); }
.alert-warning { background: rgba(255,212,0,0.18);  color: #8A6D00; border: 1px solid rgba(255,212,0,0.4); }
.alert-info    { background: var(--paper-alt);      color: var(--muted); border: 1px solid var(--line); }

/* ─── Navbar ─── */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }
.navbar-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.navbar-nav { display: flex; align-items: center; gap: 16px; }
.navbar-nav a { font-size: 14px; color: var(--muted); }
.navbar-nav a:hover { color: var(--ink); }

/* ─── Hero / Landing ─── */
.hero { text-align: center; padding: 50px 0 30px; }
.hero h1 { font-size: 2.2rem; line-height: 1.2; color: var(--ink); margin-bottom: 1rem; }
.hero p { font-size: 1.05rem; max-width: 560px; margin: 0 auto 1.5rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(232,17,125,0.08); color: var(--magenta-dk);
    border: 1px solid rgba(232,17,125,0.2); border-radius: 99px;
    padding: 5px 14px; font-size: 13px; font-weight: 600; margin-bottom: 1.5rem;
}

/* ─── Feature List ─── */
.feature-list { list-style: none; text-align: left; margin-bottom: 1.5rem; }
.feature-list li { padding: 6px 0; color: var(--muted); font-size: 15px; display: flex; align-items: flex-start; gap: 8px; }
.feature-list li::before { content: '✓'; flex-shrink: 0; margin-top: 1px; color: var(--ok); font-weight: 800; }

/* ─── Login Tabs ─── */
.tab-nav { display: flex; gap: 4px; margin-bottom: 24px; background: var(--paper-alt); border-radius: 99px; padding: 4px; }
.tab-btn {
    flex: 1; padding: 10px; background: transparent; border: none; border-radius: 99px;
    color: var(--muted); font-size: 14.5px; font-weight: 700; cursor: pointer; transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.tab-btn.active { background: var(--ink); color: var(--paper); }
.tab-btn:not(.active):hover { color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Logo Float Card ─── */
.logo-float {
    width: 72px; height: 72px; border-radius: 16px; object-fit: cover; display: block;
    margin: 0 auto 16px auto; border: 3px solid #fff; box-shadow: var(--shadow);
}

/* ─── Nota (kartu pembayaran) ─── */
.nota { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 26px; position: relative; box-shadow: var(--shadow); }
.nota-perf { position: absolute; top: -1px; left: 0; right: 0; height: 14px;
    background: radial-gradient(circle at 10px 0, transparent 6px, #FCFCF9 6.5px) top left/20px 14px repeat-x; }
.nota-head { text-align: center; margin-bottom: 22px; }
.nota-head .app { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.nota-head .tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }
.nota-price { text-align: center; padding: 18px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 20px; }
.nota-price .amount { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 36px; letter-spacing: -0.02em; color: var(--ink); }
.nota-price .note { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.bank-info { text-align: left; background: var(--paper-alt); border-radius: 10px; padding: 16px; margin: 0 0 22px; }
.bank-info-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.bank-info-row:last-child { border-bottom: none; }
.bank-info-row span:first-child { color: var(--muted); }
.bank-info-row strong { color: var(--ink); font-weight: 700; }
.nota-foot { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ─── Loading Spinner ─── */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Status Badges ─── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-active  { background: rgba(21,138,69,0.12);  color: var(--ok); }
.badge-pending { background: rgba(255,212,0,0.25);  color: #8A6D00; }
.badge-trial   { background: rgba(0,174,239,0.12);  color: #0087B8; }
.badge-expired { background: rgba(217,48,37,0.1);   color: var(--danger); }

/* ─── Utilities ─── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--muted); }
.text-accent { color: var(--magenta-dk); }
.text-danger { color: var(--danger); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; } .align-center { align-items: center; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.divider { border: none; border-top: 1px dashed var(--line); margin: 20px 0; }

@media (max-width: 400px) {
    .hero h1 { font-size: 1.7rem; }
}
