/* ═══════════════════════════════════════════════
   DATE NIGHT PLANNER — style.css  v2.0.0
   ═══════════════════════════════════════════════ */

:root {
    --cream:       #FAF7F2;
    --warm-white:  #FFF8F0;
    --blush:       #F2D9D0;
    --rose:        #C9847A;
    --deep-rose:   #8B4A44;
    --wine:        #4A1E1A;
    --gold:        #C4A35A;
    --gold-light:  #E8D5A3;
    --text-dark:   #2A1A16;
    --text-mid:    #6B4A44;
    --text-light:  #A08070;
    --border:      rgba(74,30,26,0.12);
    --border-md:   rgba(74,30,26,0.22);
    --radius-sm:   6px;
    --radius-md:   8px;
    --radius-lg:   12px;
}

/* ─── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    min-height: 100vh;
}

/* ─── PIN GATE ──────────────────────────────── */
.pin-gate {
    position: fixed; inset: 0; z-index: 9000;
    background: var(--wine);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.pin-gate.hidden { display: none; }

.pin-box {
    background: var(--warm-white);
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.pin-icon  { font-size: 40px; margin-bottom: 12px; }
.pin-title { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; color: var(--wine); margin-bottom: 6px; }
.pin-sub   { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }

.pin-input {
    width: 100%; border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px; font-size: 20px;
    text-align: center; letter-spacing: 0.3em;
    outline: none; background: var(--cream);
    transition: border-color 0.2s; margin-bottom: 12px;
    font-family: 'DM Sans', sans-serif;
}
.pin-input:focus { border-color: var(--rose); }

.pin-btn {
    width: 100%; background: var(--wine); color: var(--warm-white);
    border: none; border-radius: var(--radius-md);
    padding: 12px; font-size: 15px; font-weight: 500;
    cursor: pointer; font-family: 'DM Sans', sans-serif;
    transition: background 0.2s; margin-bottom: 10px;
}
.pin-btn:hover    { background: var(--deep-rose); }
.pin-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.pin-error {
    font-size: 12px; color: #cc3333;
    background: #fff0f0; border-radius: var(--radius-sm);
    padding: 8px 12px; margin-top: 6px;
}
.pin-error.hidden { display: none; }

/* ─── COVER ──────────────────────────────────── */
.cover {
    background: var(--wine);
    padding: 60px 40px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cover::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(196,163,90,0.08);
}
.cover::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(201,132,122,0.10);
}
.cover-eyebrow {
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 16px;
}
.cover-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px; font-weight: 300;
    color: var(--warm-white); line-height: 1.1; margin-bottom: 8px;
}
.cover-title em { font-style: italic; color: var(--gold-light); }
.cover-sub {
    font-size: 13px; color: rgba(255,248,240,0.50);
    letter-spacing: 0.04em; margin-top: 14px;
}
.cover-divider {
    width: 60px; height: 1px;
    background: var(--gold); margin: 20px auto; opacity: 0.6;
}

/* ─── PAGE WRAPPER ───────────────────────────── */
.page {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 32px;
}

/* ─── SECTION HEADER ─────────────────────────── */
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px; font-weight: 300; color: var(--gold);
    line-height: 1; min-width: 28px;
}
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px; font-weight: 400; color: var(--wine);
}
.section-title small {
    display: block; font-family: 'DM Sans', sans-serif;
    font-size: 11px; font-weight: 400; color: var(--text-light);
    letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1px;
}

/* ─── DIVIDER ────────────────────────────────── */
.page-divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ─── FIELD BASE ─────────────────────────────── */
.field-group  { margin-bottom: 18px; }
.field-label  {
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.10em; text-transform: uppercase;
    color: var(--text-light); margin-bottom: 6px; display: block;
}
.field-input,
.field-textarea,
.field-select {
    width: 100%; border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: 'DM Sans', sans-serif; font-size: 14px;
    color: var(--text-dark); background: var(--warm-white);
    outline: none; transition: border-color 0.2s;
    -webkit-appearance: none;
}
.field-input:focus,
.field-textarea:focus,
.field-select:focus { border-color: var(--rose); }
.field-input::placeholder,
.field-textarea::placeholder { color: var(--text-light); font-weight: 300; }
.field-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

/* ─── GRIDS ──────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ─── HIGHLIGHT CARD ─────────────────────────── */
.highlight-card {
    background: linear-gradient(135deg, #4A1E1A 60%, #8B4A44);
    border-radius: var(--radius-lg);
    padding: 24px; color: white; position: relative; overflow: hidden;
}
.highlight-card::after {
    content: '♡'; position: absolute; right: 20px; top: 16px;
    font-size: 64px; color: rgba(255,255,255,0.06);
}
.hl-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
.hl-input {
    background: transparent; border: none;
    border-bottom: 1px solid rgba(255,255,255,0.20);
    color: white; font-family: 'Cormorant Garamond', serif;
    font-size: 28px; font-weight: 300; width: 100%; outline: none; padding: 4px 0;
}
.hl-input::placeholder { color: rgba(255,255,255,0.30); font-style: italic; }
.hl-sub { font-size: 12px; color: rgba(255,255,255,0.50); margin-top: 8px; }

/* ─── ACTIVITY LIST ──────────────────────────── */
.activity-list {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px;
}
.activity-item {
    display: flex; align-items: center; gap: 8px;
    background: var(--warm-white); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 8px 12px;
}
.activity-drag {
    color: var(--text-light); font-size: 14px; cursor: grab; flex-shrink: 0;
}
.activity-input {
    flex: 1; border: none; background: transparent;
    font-family: 'DM Sans', sans-serif; font-size: 13px;
    color: var(--text-dark); outline: none;
}
.activity-input::placeholder { color: var(--text-light); }
.activity-del {
    background: none; border: none; color: var(--text-light);
    font-size: 13px; cursor: pointer; padding: 2px 4px; flex-shrink: 0;
    transition: color 0.15s;
}
.activity-del:hover { color: #cc3333; }
.activity-add-btn {
    width: 100%; background: none;
    border: 1px dashed rgba(74,30,26,0.2); border-radius: var(--radius-sm);
    padding: 8px; font-size: 12px; color: var(--text-light);
    cursor: pointer; font-family: 'DM Sans', sans-serif; transition: border-color 0.15s;
}
.activity-add-btn:hover { border-color: var(--rose); color: var(--rose); }

/* ─── MOOD SELECTOR ──────────────────────────── */
.mood-grid {
    display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-bottom: 6px;
}
.mood-btn {
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--warm-white); padding: 10px 4px 8px;
    text-align: center; cursor: pointer; transition: all 0.15s;
}
.mood-btn:hover  { border-color: var(--rose); }
.mood-btn.active { border-color: var(--rose); background: #FFF0ED; }
.mood-btn .emoji { font-size: 22px; display: block; margin-bottom: 4px; }
.mood-btn .label { font-size: 10px; color: var(--text-light); letter-spacing: 0.04em; }

/* Edit modal mood grid smaller */
.edit-mood-grid .mood-btn { padding: 6px 3px 5px; }
.edit-mood-grid .mood-btn .emoji { font-size: 18px; }

/* ─── VIBE TAGS ──────────────────────────────── */
.vibe-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.vibe-tag {
    border: 1px solid var(--border); border-radius: 20px;
    padding: 6px 14px; font-size: 12px; color: var(--text-mid);
    cursor: pointer; background: var(--warm-white); transition: all 0.15s;
}
.vibe-tag:hover  { border-color: var(--rose); color: var(--deep-rose); }
.vibe-tag.active { background: var(--deep-rose); color: white; border-color: var(--deep-rose); }

/* ─── MOMENT / PLAN LIST ─────────────────────── */
.moment-list   { display: flex; flex-direction: column; gap: 10px; }
.moment-item   {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--warm-white); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 12px 14px;
}
.moment-checkbox {
    width: 18px; height: 18px; min-width: 18px;
    border: 1.5px solid var(--border); border-radius: 4px;
    cursor: pointer; margin-top: 2px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; background: white; font-size: 11px; color: white;
}
.moment-checkbox.checked { background: var(--wine); border-color: var(--wine); }
.moment-text  { font-size: 13px; color: var(--text-dark); line-height: 1.5; flex: 1; outline: none; }
.moment-text.done { text-decoration: line-through; color: var(--text-light); }
.add-plan-btn {
    margin-top: 10px; background: none;
    border: 1px dashed rgba(74,30,26,0.2); border-radius: var(--radius-sm);
    padding: 8px 16px; font-size: 12px; color: var(--text-light);
    cursor: pointer; width: 100%; font-family: 'DM Sans', sans-serif;
    transition: border-color 0.15s;
}
.add-plan-btn:hover { border-color: var(--rose); color: var(--rose); }

/* ─── BUDGET SLIDER ──────────────────────────── */
.budget-track { position: relative; margin: 8px 0 4px; }
.budget-track input[type=range] {
    width: 100%; -webkit-appearance: none;
    height: 4px; background: var(--border); border-radius: 2px; outline: none; cursor: pointer;
}
.budget-track input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--wine); cursor: pointer;
}
.budget-val { font-size: 13px; font-weight: 500; color: var(--wine); margin-top: 4px; }

/* ─── PHOTO ──────────────────────────────────── */
.photo-placeholder {
    border: 1.5px dashed rgba(74,30,26,0.2); border-radius: 10px;
    padding: 28px 20px; text-align: center; color: var(--text-light);
    cursor: pointer; transition: border-color 0.2s;
    background: var(--warm-white); position: relative; overflow: hidden;
}
.photo-placeholder:hover { border-color: var(--rose); }
.photo-placeholder input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#photo-preview { max-width: 100%; border-radius: 8px; display: none; }
.ph-icon { font-size: 28px; margin-bottom: 8px; }
.ph-text  { font-size: 12px; }

/* ─── STAR RATING ────────────────────────────── */
.star-row { display: flex; gap: 6px; align-items: center; }
.star {
    font-size: 24px; cursor: pointer; color: #ddd;
    transition: color 0.1s; line-height: 1; user-select: none;
}
.star.lit { color: var(--gold); }

/* ─── QUOTE BLOCK ────────────────────────────── */
.quote-block {
    background: var(--wine); border-radius: 10px;
    padding: 24px 28px; position: relative; overflow: hidden;
}
.quote-block::before {
    content: '"'; font-family: 'Cormorant Garamond', serif;
    font-size: 120px; color: rgba(255,255,255,0.05);
    position: absolute; top: -20px; left: 16px; line-height: 1;
}
.quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px; font-style: italic; color: var(--warm-white);
    line-height: 1.6; position: relative; outline: none;
}
.quote-names {
    margin-top: 12px; font-size: 12px; color: var(--gold-light);
    letter-spacing: 0.06em; position: relative;
}

/* ─── SAVE BUTTON ────────────────────────────── */
.save-area  { text-align: center; padding: 32px 0 48px; }
.save-btn {
    background: var(--wine); color: var(--warm-white);
    border: none; border-radius: var(--radius-md);
    padding: 14px 40px; font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
    cursor: pointer; transition: background 0.2s;
}
.save-btn:hover { background: var(--deep-rose); }
.save-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.save-note { margin-top: 12px; font-size: 12px; color: var(--text-light); }
.outline-btn {
    border: 1px solid var(--border-md); background: none; border-radius: var(--radius-sm);
    padding: 10px 16px; font-size: 13px; color: var(--text-mid);
    cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.15s;
}
.outline-btn:hover { border-color: var(--rose); color: var(--deep-rose); }

/* ─── TOAST ──────────────────────────────────── */
.toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
    background: var(--wine); color: white;
    padding: 12px 28px; border-radius: 30px;
    font-size: 13px; z-index: 9999; transition: opacity 0.3s;
    box-shadow: 0 4px 16px rgba(74,30,26,0.25);
}
.toast.hidden { opacity: 0; pointer-events: none; }

/* ─── TABS ───────────────────────────────────── */
.tab-row {
    display: flex; gap: 4px; margin-bottom: 20px;
    border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.tab-btn {
    background: none; border: none; border-bottom: 2px solid transparent;
    padding: 10px 18px; font-size: 13px; font-weight: 500;
    color: var(--text-light); cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s; margin-bottom: -1px;
}
.tab-btn:hover  { color: var(--deep-rose); }
.tab-btn.active { color: var(--wine); border-bottom-color: var(--wine); }
.tab-btn-admin  { margin-left: auto; }

.tab-panel { }
.tab-panel.hidden { display: none; }

/* ─── STATS ROW ──────────────────────────────── */
.stats-row {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 24px;
}
.stat-card {
    background: var(--warm-white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px 14px; text-align: center;
}
.stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 6px; }
.stat-val   { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--wine); }

/* ─── TABLE TOOLBAR ──────────────────────────── */
.table-toolbar {
    display: flex; flex-wrap: wrap; gap: 10px;
    align-items: center; margin-bottom: 16px;
}

/* ─── CUSTOM TABLE ───────────────────────────── */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--warm-white);
}
.dn-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px; font-family: 'DM Sans', sans-serif;
}
.dn-table thead {
    background: var(--wine); color: var(--warm-white);
    position: sticky; top: 0; z-index: 2;
}
.dn-table thead th {
    padding: 13px 14px; text-align: left;
    font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
    white-space: nowrap; cursor: pointer; user-select: none;
}
.dn-table thead th:hover { background: var(--deep-rose); }
.dn-table thead th.sort-asc::after  { content: ' ↑'; color: var(--gold-light); }
.dn-table thead th.sort-desc::after { content: ' ↓'; color: var(--gold-light); }

.dn-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.12s; }
.dn-table tbody tr:last-child { border-bottom: none; }
.dn-table tbody tr:hover { background: #FFF0EB; }
.dn-table tbody td { padding: 12px 14px; vertical-align: middle; color: var(--text-dark); }

/* Pinned row highlight */
.row-pinned { background: #FFF9EC !important; }
.row-pinned:hover { background: #FFF4DD !important; }

.td-id     { color: var(--text-light); font-size: 12px; width: 40px; }
.td-pin    { width: 36px; padding: 8px 6px !important; }
.td-couple { font-weight: 500; }
.td-date   { white-space: nowrap; }
.td-sub    { font-size: 11px; color: var(--text-light); }
.td-loc    { max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-vibe   { font-size: 11px; color: var(--text-mid); max-width: 110px; }
.td-budget { white-space: nowrap; font-weight: 500; color: var(--deep-rose); }
.td-stars  { color: var(--gold); font-size: 12px; line-height: 1.6; }
.td-moment { font-size: 12px; color: var(--text-mid); max-width: 180px; }
.td-actions { white-space: nowrap; }

.empty-row { text-align: center; color: var(--text-light); padding: 40px 0 !important; font-style: italic; }

/* ─── PIN BUTTON ─────────────────────────────── */
.pin-row-btn {
    background: none; border: none; cursor: pointer;
    font-size: 16px; padding: 2px; line-height: 1;
    transition: transform 0.15s;
}
.pin-row-btn:hover { transform: scale(1.2); }

/* ─── MOOD BADGES ────────────────────────────── */
.mood-badge {
    display: inline-block; padding: 3px 10px;
    border-radius: 20px; font-size: 11px; font-weight: 500;
}
.mood-romantic { background: #FFF0ED; color: #8B4A44; }
.mood-fun      { background: #FFF8E0; color: #8B6800; }
.mood-chill    { background: #E8F4F0; color: #2E6B56; }
.mood-spicy    { background: #FDE8E0; color: #8B2000; }
.mood-special  { background: #F0EAF8; color: #5A3080; }

/* ─── ACTION BUTTONS ─────────────────────────── */
.action-btn {
    border: 1px solid var(--border); background: white;
    border-radius: var(--radius-sm); padding: 5px 8px;
    cursor: pointer; font-size: 13px; margin-right: 3px;
    transition: all 0.12s;
}
.view-btn:hover  { border-color: var(--rose);  background: #FFF0ED; }
.edit-btn:hover  { border-color: var(--gold);  background: #FFFBEC; }
.share-btn:hover { border-color: #7B68EE;      background: #F0EEFF; }
.del-btn:hover   { border-color: #cc3333;      background: #fff0f0; }

/* ─── PAGINATION ─────────────────────────────── */
.pagination {
    display: flex; justify-content: center; gap: 6px;
    padding: 20px 0 0;
}
.page-btn {
    border: 1px solid var(--border); background: var(--warm-white);
    border-radius: var(--radius-sm); padding: 7px 13px;
    font-size: 13px; cursor: pointer; font-family: 'DM Sans', sans-serif;
    color: var(--text-mid); transition: all 0.12s;
}
.page-btn:hover    { border-color: var(--rose); color: var(--deep-rose); }
.page-btn.active   { background: var(--wine); color: white; border-color: var(--wine); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── ANALYTICS ──────────────────────────────── */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.chart-card {
    background: var(--warm-white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px 16px;
}
.chart-card-wide { grid-column: 1 / -1; }
.chart-title {
    font-size: 13px; font-weight: 500; color: var(--wine);
    letter-spacing: 0.04em; margin-bottom: 14px;
}

/* ─── SETTINGS ───────────────────────────────── */
.settings-card {
    background: var(--warm-white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    max-width: 480px;
}
.settings-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--wine); margin-bottom: 8px; }
.settings-desc  { font-size: 13px; color: var(--text-mid); margin-bottom: 18px; line-height: 1.6; }

/* ─── MODALS ─────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(42,26,22,0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 24px;
    transition: opacity 0.2s;
}
.modal-overlay.hidden { display: none; }

.modal-box {
    background: var(--cream); border-radius: var(--radius-lg);
    max-width: 540px; width: 100%; max-height: 88vh;
    overflow-y: auto; padding: 32px; position: relative;
}
.modal-box-wide { max-width: 720px; }

.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; font-size: 18px;
    cursor: pointer; color: var(--text-light); padding: 4px 8px;
}
.modal-close:hover { color: var(--wine); }

.modal-row { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.modal-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 3px; }
.modal-val   { font-size: 14px; color: var(--text-dark); line-height: 1.5; }



/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 640px) {
    .page            { padding: 24px 16px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .stats-row       { grid-template-columns: 1fr 1fr; }
    .mood-grid       { grid-template-columns: repeat(3,1fr); }
    .cover-title     { font-size: 38px; }
    .table-toolbar   { flex-direction: column; align-items: stretch; }
    .analytics-grid  { grid-template-columns: 1fr; }
    .tab-row         { flex-wrap: wrap; }
    .tab-btn-admin   { margin-left: 0; }
}

@media print {
    .save-area, #table-page, .table-toolbar, .pagination,
    .pin-gate, .modal-overlay { display: none; }
    .cover { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ═══════════════════════════════════════════════
   WIZARD STEP BUILDER — tab-wizard
   ═══════════════════════════════════════════════ */
 
/* ─── STEPS WRAP ─────────────────────────────── */
#lwiz-steps-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 4px;
}
 
/* ─── SINGLE STEP CARD ───────────────────────── */
.lwiz-step {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.15s;
}
.lwiz-step:hover {
    box-shadow: 0 2px 12px rgba(74,30,26,0.08);
}
 
/* dragging state */
.lwiz-step.dragging {
    opacity: 0.5;
    box-shadow: 0 8px 24px rgba(74,30,26,0.18);
}
.lwiz-step.drag-over {
    border-color: var(--rose);
    box-shadow: 0 0 0 2px rgba(201,132,122,0.25);
}
 
/* ─── STEP HEADER (drag handle + label + delete) */
.lwiz-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--wine);
    cursor: default;
    user-select: none;
}
.lwiz-drag-handle {
    color: rgba(255,248,240,0.40);
    font-size: 16px;
    cursor: grab;
    flex-shrink: 0;
    line-height: 1;
}
.lwiz-drag-handle:active { cursor: grabbing; }
 
.lwiz-step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
    flex-shrink: 0;
}
.lwiz-step-label-preview {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--warm-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'DM Sans', sans-serif;
}
 
.lwiz-delete-btn {
    background: none;
    border: 1px solid rgba(255,248,240,0.20);
    border-radius: var(--radius-sm);
    color: rgba(255,248,240,0.55);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}
.lwiz-delete-btn:hover {
    background: rgba(204,51,51,0.25);
    border-color: rgba(204,51,51,0.5);
    color: #ffcccc;
}
 
/* ─── STEP BODY ──────────────────────────────── */
.lwiz-step-body {
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
 
/* ─── ROW: Statement + Sub-text ─────────────── */
.lwiz-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
 
.lwiz-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.lwiz-field-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-light);
}
.lwiz-field-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--text-dark);
    background: var(--cream);
    outline: none;
    transition: border-color 0.2s;
}
.lwiz-field-input:focus { border-color: var(--rose); }
.lwiz-field-input::placeholder { color: var(--text-light); font-weight: 300; }
 
/* ─── FIELD CHECKBOX GRID ────────────────────── */
.lwiz-fields-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2px;
}
 
.lwiz-fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
 
.lwiz-field-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    color: var(--text-mid);
    background: var(--cream);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    font-family: 'DM Sans', sans-serif;
}
.lwiz-field-chip:hover {
    border-color: var(--rose);
    color: var(--deep-rose);
}
.lwiz-field-chip input[type="checkbox"] {
    display: none; /* hidden — chip itself acts as toggle */
}
.lwiz-field-chip.checked {
    background: var(--deep-rose);
    border-color: var(--deep-rose);
    color: white;
}
.lwiz-field-chip .chip-check {
    font-size: 10px;
    display: none;
}
.lwiz-field-chip.checked .chip-check {
    display: inline;
}
 
/* ─── SAVE / ADD BUTTONS ─────────────────────── */
#lwiz-add-step {
    /* inherits .outline-btn — just override what's needed */
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
 
#lwiz-save-btn {
    /* inherits .save-btn */
}
 
/* ─── STATUS MESSAGE ─────────────────────────── */
#lwiz-msg {
    min-height: 20px;
    transition: opacity 0.3s;
}
#lwiz-msg.success { color: #2E6B56; }
#lwiz-msg.error   { color: #cc3333; }
 
/* ─── EMPTY STATE ────────────────────────────── */
#lwiz-steps-wrap:empty::after {
    content: 'Belum ada step. Klik "+ Add Step" untuk mulai.';
    display: block;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    font-style: italic;
    padding: 32px 0;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
 
/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 640px) {
    .lwiz-row-2 { grid-template-columns: 1fr; }
    .lwiz-step-header { padding: 10px 12px; }
    .lwiz-step-body { padding: 14px 12px; }
}
 
/* ═══════════════════════════════════════════════
   WIZARD INLINE (tab-wizard) — v3.0.0
   ═══════════════════════════════════════════════ */
 
/* ─── EMPTY STATE ─── */
.wiz-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-light);
}
 
/* ─── PROGRESS (inline, tidak fixed) ─── */
.wiz-inline-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 18px;
    margin-bottom: 20px;
}
.wiz-inline-hearts {
    display: flex;
    gap: 6px;
    flex: 1;
}
.wiz-inline-heart {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.25s;
}
.wiz-inline-heart.done   { background: var(--wine); }
.wiz-inline-heart.active { background: var(--rose); transform: scale(1.35); }
.wiz-inline-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
    letter-spacing: 0.04em;
}
 
/* ─── STEPS CONTAINER ─── */
.wiz-inline-wrap { position: relative; }
 
.wiz-inline-step {
    display: none;
    flex-direction: column;
    gap: 20px;
}
.wiz-inline-step.active {
    display: flex;
    animation: wizFadeUp .3s ease;
}
@keyframes wizFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
 
/* ─── MASCOT + STATEMENT ─── */
.wiz-inline-mascot {
    font-size: 44px;
    text-align: center;
    line-height: 1;
}
.wiz-inline-statement {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 300;
    color: var(--wine);
    text-align: center;
    line-height: 1.25;
}
.wiz-inline-sub {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
    margin-top: -10px;
}
 
/* ─── FIELDS ─── */
.wiz-inline-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.wiz-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wiz-field-lbl {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-light);
}
.wiz-field-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--warm-white);
    outline: none;
    transition: border-color 0.2s;
}
.wiz-field-input:focus { border-color: var(--rose); }
.wiz-field-input::placeholder { color: var(--text-light); font-weight: 300; }
.wiz-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
 
/* ─── MOOD GRID ─── */
.wiz-mood-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.wiz-mood-btn {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--warm-white);
    padding: 10px 4px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}
.wiz-mood-btn:hover   { border-color: var(--rose); }
.wiz-mood-btn.selected { border-color: var(--rose); background: #FFF0ED; }
.wiz-mood-btn .emoji  { font-size: 22px; display: block; margin-bottom: 4px; }
.wiz-mood-btn .label  { font-size: 10px; color: var(--text-light); }
 
/* ─── ACTIVITY CHIPS ─── */
.wiz-activity-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.wiz-activity-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 13px;
    color: var(--text-mid);
    background: var(--warm-white);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.wiz-activity-chip:hover { border-color: var(--rose); color: var(--deep-rose); }
.wiz-activity-chip.selected { background: var(--deep-rose); border-color: var(--deep-rose); color: white; }
.wiz-chip-check { font-size: 10px; display: none; }
.wiz-activity-chip.selected .wiz-chip-check { display: inline; }
 
.wiz-activity-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.wiz-activity-add-row .wiz-field-input { flex: 1; padding: 9px 12px; font-size: 13px; }
.wiz-add-chip-btn {
    background: var(--warm-white);
    border: 1.5px solid var(--border-md);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--wine);
    cursor: pointer;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
}
.wiz-add-chip-btn:hover { border-color: var(--rose); background: #FFF0ED; }
 
/* ─── BUDGET DISPLAY ─── */
.wiz-budget-display {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 300;
    color: var(--wine);
    text-align: center;
}
 
/* ─── STAR ROW ─── */
.wiz-star-row { display: flex; gap: 8px; }
.wiz-star {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.1s;
    user-select: none;
}
.wiz-star.lit { color: var(--gold); }
 
/* ─── PLAN LIST ─── */
.wiz-plan-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}
.wiz-plan-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
}
.wiz-plan-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--text-dark);
    outline: none;
}
.wiz-plan-del {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    transition: color 0.15s;
}
.wiz-plan-del:hover { color: #cc3333; }
.wiz-plan-add {
    background: none;
    border: 1px dashed rgba(74,30,26,0.2);
    border-radius: var(--radius-sm);
    padding: 8px;
    width: 100%;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.15s;
}
.wiz-plan-add:hover { border-color: var(--rose); color: var(--rose); }
 
/* ─── PHOTO ZONE ─── */
.wiz-photo-zone {
    border: 1.5px dashed rgba(74,30,26,0.2);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    background: var(--warm-white);
    position: relative;
    overflow: hidden;
    color: var(--text-light);
    transition: border-color 0.2s;
}
.wiz-photo-zone:hover { border-color: var(--rose); }
.wiz-photo-zone input[type=file] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}

/* ─── Mouse ─── */
.wiz-intro-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px 32px;
    gap: 0;
}
.wiz-intro-mascot {
    font-size: 64px;
    margin-bottom: 20px;
    animation: wiz-float 3s ease-in-out infinite;
}
@keyframes wiz-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
.wiz-intro-statement {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 300;
    color: var(--wine, #4A1E1A);
    line-height: 1.3;
    margin-bottom: 36px;
    max-width: 480px;
}
.wiz-intro-btns {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    min-height: 120px;
    position: relative;
}
.wiz-intro-yes,
.wiz-intro-no {
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 32px;
    transition: transform 0.2s, font-size 0.3s, padding 0.3s, opacity 0.3s;
    white-space: nowrap;
}
.wiz-intro-yes {
    background: var(--wine, #4A1E1A);
    color: #FFF8F0;
    box-shadow: 0 4px 16px rgba(74,30,26,0.25);
}
.wiz-intro-yes:hover { transform: scale(1.05); }
.wiz-intro-no {
    background: #FFF8F0;
    color: var(--wine, #4A1E1A);
    border: 1px solid rgba(74,30,26,0.2);
    /* mode run: pakai position absolute saat kabur */
}
.wiz-intro-no.mode-run {
    position: absolute;
    /* JS yang ngatur left/top */
    transition: left 0.25s cubic-bezier(.17,.67,.47,1.3), top 0.25s cubic-bezier(.17,.67,.47,1.3);
}
.wiz-intro-mode-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}
.wiz-intro-mode-label {
    font-size: 11px;
    color: var(--text-light, #A08070);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.wiz-mode-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-mid, #6B4A3A);
    cursor: pointer;
    background: rgba(74,30,26,0.05);
    border-radius: 20px;
    padding: 4px 10px;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s;
}
.wiz-mode-toggle:has(input:checked) {
    background: rgba(74,30,26,0.10);
    border-color: rgba(74,30,26,0.20);
    font-weight: 500;
}
.wiz-mode-toggle input { display: none; }

 
/* ─── REVIEW CARD ─── */
.wiz-review-card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wiz-review-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.wiz-review-icon { font-size: 18px; width: 26px; flex-shrink: 0; }
.wiz-review-key  { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-light); margin-bottom: 2px; }
.wiz-review-val  { font-size: 14px; color: var(--text-dark); line-height: 1.45; }
.wiz-review-divider { border: none; border-top: 1px solid var(--border); }
 
/* ─── BUTTONS ─── */
.wiz-inline-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.wiz-inline-next,
.wiz-inline-btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: var(--wine);
    color: var(--warm-white);
    border: none;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}
.wiz-inline-next:hover,
.wiz-inline-btn-primary:hover { background: var(--deep-rose); transform: translateY(-1px); }
.wiz-inline-next:active,
.wiz-inline-btn-primary:active { transform: translateY(0); }
.wiz-inline-next:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
 
.wiz-inline-btn-outline {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: var(--wine);
    border: 2px solid var(--border-md);
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.wiz-inline-btn-outline:hover { border-color: var(--rose); color: var(--deep-rose); }
 
.wiz-inline-back {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    padding: 6px;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.15s;
}
.wiz-inline-back:hover { color: var(--wine); }
 
/* ─── SUCCESS ─── */
.wiz-success-block {
    text-align: center;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.wiz-success-icon  { font-size: 60px; }
.wiz-success-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 300;
    color: var(--wine);
}
.wiz-success-sub {
    font-size: 14px;
    color: var(--text-light);
    max-width: 280px;
    line-height: 1.6;
}

.wizard-link-card { background: #fff8f0; border: 1px solid #e8c5cc; border-radius: 12px; padding: 20px; }
.wl-title  { font-weight: 600; color: var(--wine); margin-bottom: 4px; }
.wl-sub    { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.wl-link-wrap { display: flex; gap: 8px; }
.wl-link-input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: white; }
.wl-copy-btn { background: var(--wine); color: white; border: none; border-radius: 6px; padding: 10px 16px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.wl-copy-btn:hover { background: var(--deep-rose); } 
 
/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .wiz-mood-grid   { grid-template-columns: repeat(3, 1fr); }
    .wiz-inline-statement { font-size: 22px; }
}