:root {
    --ink: #17231f;
    --muted: #6b7771;
    --paper: #f5f7f6;
    --card: #ffffff;
    --line: #d7e1dc;
    --green: #176b52;
    --green-dark: #0e4938;
    --coral: #e97b5c;
    --yellow: #f3c969;
    --shadow: 0 8px 24px rgba(23, 35, 31, .1);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', sans-serif; }
h1, h2, h3, .brand { font-family: 'Space Grotesk', sans-serif; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
.site-header { align-items: center; background: var(--card); box-shadow: 0 1px 0 var(--line); display: flex; justify-content: space-between; left: 0; margin: 0; max-width: none; padding: 18px 34px; position: fixed; right: 0; top: 0; width: 100%; z-index: 1000; }
.brand { align-items: center; color: var(--ink); display: flex; font-size: 19px; font-weight: 700; gap: 10px; }
.brand-mark { align-items: center; background: var(--coral); border-radius: 50%; color: white; display: inline-flex; font-size: 16px; height: 34px; justify-content: center; transform: rotate(-8deg); width: 34px; }
.brand-logo { border-radius: 8px; height: 36px; object-fit: contain; width: 36px; }
nav { align-items: center; display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.nav-button { background: var(--green); border-radius: 8px; color: white; min-height: 48px; padding: 14px 18px; }
.app-header-actions { align-items: center; display: flex; }
.logout-icon { align-items: center; background: #fff0ed; border: 1px solid #f1c4b4; border-radius: 10px; color: #9f3e28; display: inline-flex; font-size: 24px; height: 42px; justify-content: center; line-height: 1; width: 42px; }
.logout-icon:hover { background: #fbded6; color: #8d3220; }
.page-shell { margin: 0 auto; max-width: 1320px; min-height: calc(100vh - 140px); padding: 108px 34px 34px; }
.site-footer { color: var(--muted); font-size: 13px; margin: 0 auto; max-width: 1180px; padding: 35px 28px; }
.minimal-page-shell { max-width: none; min-height: 100vh; padding: 0; }
.hero { align-items: center; display: grid; gap: 70px; grid-template-columns: 1.1fr .9fr; min-height: 570px; }
.eyebrow { color: var(--coral); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.03; margin: 18px 0 24px; max-width: 690px; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 550px; }
.initiator { border-left: 3px solid var(--coral); color: var(--muted); font-size: 14px; line-height: 1.5; margin: 25px 0; padding: 3px 0 3px 14px; }
.initiator strong { color: var(--ink); display: block; font-size: 15px; }
.hero-art { background: var(--green); border-radius: 28px; box-shadow: 14px 16px 0 var(--yellow); min-height: 360px; overflow: hidden; padding: 42px; position: relative; transform: rotate(2deg); }
.home-packages { margin-bottom: 80px; }
.hero-art:before, .hero-art:after { border: 1px solid rgba(255,255,255,.35); border-radius: 50%; content: ''; height: 250px; position: absolute; width: 250px; }
.hero-art:before { right: -55px; top: 35px; }
.hero-art:after { bottom: -100px; left: -60px; }
.art-note { background: var(--yellow); box-shadow: 8px 10px 0 rgba(0,0,0,.12); color: var(--ink); display: grid; font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 600; height: 190px; place-items: center; padding: 25px; position: absolute; right: 16%; text-align: center; top: 23%; transform: rotate(-6deg); width: 230px; }
.art-label { bottom: 24px; color: rgba(255,255,255,.75); font-size: 11px; font-weight: 700; left: 28px; letter-spacing: .16em; position: absolute; }
.button { border: 0; border-radius: 8px; cursor: pointer; display: inline-block; font: inherit; font-weight: 700; min-height: 48px; padding: 14px 20px; transition: box-shadow .2s, transform .2s; }
.button:hover { box-shadow: 0 4px 10px rgba(23, 35, 31, .16); transform: translateY(-1px); }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-dark); color: white; }
.button-secondary { background: #e8eee5; color: var(--green-dark); margin-left: 10px; }
.auth-wrap { display: grid; margin: 35px auto; max-width: 960px; place-items: center; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); max-width: 900px; padding: 42px 48px; width: 100%; }
.auth-card h1 { font-size: 34px; margin: 0 0 8px; }
.auth-card > p { color: var(--muted); line-height: 1.55; margin-top: 0; }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: auto; }
label { font-size: 13px; font-weight: 700; }
input, textarea { background: #fcfdf9; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; min-height: 48px; padding: 13px 14px; width: 100%; }
input:focus { border-color: var(--green); outline: 3px solid rgba(30,107,80,.13); }
textarea { line-height: 1.55; min-height: 130px; resize: vertical; }
textarea:focus { border-color: var(--green); outline: 3px solid rgba(30,107,80,.13); }
.form-actions { align-items: center; display: flex; grid-column: auto; justify-content: space-between; margin-top: 5px; }
.auth-link { color: var(--muted); font-size: 13px; margin-top: 23px; text-align: center; }
.profile-page-wrap { margin-bottom: 120px; }
.required-mark { color: var(--coral); font-size: 11px; }
.profile-actions { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 30px; }
.profile-action-heading h2 { font-size: 25px; margin: 8px 0 18px; }
.password-form { margin-top: 0; }
.alert { border-radius: 6px; font-size: 14px; margin: 0 0 18px; padding: 13px 15px; }
.alert-error { background: #fff0ed; color: #9f3e28; }
.alert-success { background: #e7f4eb; color: #23623d; }
.login-body {
    background: #f4f2ee;
}
.login-screen {
    align-items: center;
    background: #f4f2ee;
    display: grid;
    min-height: 100vh;
    padding: 32px 16px;
    place-items: center;
}
.login-phone {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    max-width: 500px;
    overflow: hidden;
    width: 100%;
}
.login-head {
    background: #fbfbf9;
    border-bottom: 1px solid var(--line);
    padding: 18px 22px 16px;
}
.login-brand {
    align-items: center;
    color: var(--green-dark);
    display: inline-flex;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
    gap: 10px;
}
.login-brand span {
    align-items: center;
    background: var(--green);
    border-radius: 10px;
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    height: 28px;
    justify-content: center;
    transform: rotate(-8deg);
    width: 28px;
}
.login-brand:hover { color: var(--green-dark); }
.login-card {
    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: 26px 22px 30px;
    width: 100%;
}
.login-card h1 {
    color: var(--ink);
    font-size: clamp(30px, 3vw, 38px);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 18px;
    text-align: center;
}
.login-card .alert { font-size: 12px; margin-bottom: 12px; padding: 10px 12px; }
.login-form { display: grid; gap: 14px; width: 100%; }
.login-field {
    align-items: center;
    background: #f7faf7;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
}
.login-field span {
    align-items: center;
    background: rgba(23, 107, 82, .12);
    border-radius: 10px;
    color: var(--green-dark);
    display: inline-flex;
    flex: 0 0 26px;
    font-size: 12px;
    font-weight: 800;
    height: 26px;
    justify-content: center;
}
.login-field input {
    background: transparent;
    border: 0;
    color: var(--ink);
    font-size: 14px;
    min-height: 46px;
    outline: 0;
    padding: 0;
}
.login-field input:focus { border-color: transparent; outline: 0; }
.login-field input::placeholder { color: #8b938d; }
.login-submit {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    margin-top: 8px;
    min-height: 52px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.login-submit:hover {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    box-shadow: 0 12px 18px rgba(23, 107, 82, .18);
    transform: translateY(-1px);
}
.login-links {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
    width: 100%;
}
.login-links a { color: var(--green); font-weight: 700; }
@media (max-width: 760px) {
    .login-screen {
        padding: 0;
    }
    .login-phone {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
        min-height: 100vh;
    }
    .login-head {
        padding: 16px 18px 14px;
    }
    .login-card {
        padding: 24px 18px 28px;
    }
    .login-card h1 {
        font-size: 30px;
    }
    .login-form {
        gap: 12px;
    }
    .login-field {
        border-radius: 12px;
        min-height: 50px;
    }
    .login-submit {
        letter-spacing: .1em;
        min-height: 50px;
    }
    .login-links {
        margin-top: 16px;
    }
}
.dashboard { padding-bottom: 8px; padding-top: 42px; }
.listing-page { padding-bottom: 130px; }
.dashboard h1 { font-size: 46px; margin: 12px 0; }
.dashboard-subtitle { color: var(--muted); font-size: 17px; }
.dashboard-summary { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
.summary-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 5px 18px rgba(23, 35, 31, .06); padding: 22px 18px; }
.summary-label { color: var(--muted); display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-bottom: 12px; text-transform: uppercase; }
.summary-card strong { display: block; font-size: 32px; line-height: 1; margin-bottom: 8px; }
.summary-card small { color: var(--muted); font-size: 12px; font-weight: 700; }
.dashboard-panel { background: rgba(255,255,255,.2); border: 1px solid rgba(23,35,31,.04); border-radius: 18px; margin-top: 26px; padding: 22px 18px; }
.profile-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.profile-item { background: var(--card); border-radius: 10px; border-top: 3px solid var(--coral); box-shadow: 0 3px 12px rgba(23, 35, 31, .06); padding: 20px; }
.profile-item small { color: var(--muted); display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; text-transform: uppercase; }
.profile-item strong { font-size: 16px; line-height: 1.4; }
.history-list { display: grid; gap: 14px; margin-top: 18px; }
.history-item { align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); display: flex; gap: 14px; justify-content: space-between; padding: 16px 18px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.history-item:hover { border-color: #a9cabb; box-shadow: 0 6px 18px rgba(23,35,31,.08); color: var(--ink); transform: translateY(-1px); }
.history-tag { background: #e8eee5; border-radius: 999px; color: var(--green-dark); display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em; margin-bottom: 8px; padding: 5px 8px; text-transform: uppercase; }
.history-item h3 { font-size: 18px; margin: 0; }
.history-detail { color: var(--muted); display: grid; font-size: 12px; gap: 6px; text-align: right; }
.history-detail small { font-size: 12px; }
.history-detail-link { color: var(--green); font-size: 12px; font-weight: 800; margin-top: 2px; }
.dashboard-packages { margin-top: 24px; padding-bottom: 130px; }
.section-heading-row { align-items: end; display: flex; justify-content: space-between; margin-bottom: 18px; }
.section-heading-row h2 { font-size: 30px; margin: 8px 0 0; }
.package-filters { align-items: end; display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.package-search-field { flex: 1 1 280px; }
.package-category-field { flex: 0 1 230px; }
.package-filters label { color: var(--muted); display: block; margin-bottom: 7px; }
.package-filters input, .package-filters select { min-height: 46px; }
.package-filters select { background: #fcfdf9; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; min-height: 48px; padding: 12px 14px; width: 100%; }
.package-filter-button { min-height: 48px; }
.clear-package-filter { align-items: center; display: inline-flex; font-size: 13px; font-weight: 700; min-height: 48px; padding: 0 4px; }
.dashboard-package-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.dashboard-package-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 5px 18px rgba(23, 35, 31, .07); overflow: hidden; }
.dashboard-package-card img { aspect-ratio: 16 / 9; display: block; object-fit: cover; width: 100%; }
.dashboard-package-body { padding: 20px; }
.package-card-topline { align-items: center; display: flex; justify-content: space-between; }
.package-card-topline-actions { align-items: center; display: flex; gap: 8px; }
.share-package-btn { align-items: center; background: #f5f7f6; border: 1px solid var(--line); border-radius: 50%; color: var(--green-dark); cursor: pointer; display: inline-flex; height: 36px; justify-content: center; padding: 0; position: relative; width: 36px; }
.share-package-btn:hover { background: #e7f4eb; }
.share-package-btn svg { display: block; pointer-events: none; }
.share-package-btn.is-copied { background: #e7f4eb; border-color: var(--green-dark); }
.share-package-btn.is-copied::after { background: var(--ink); border-radius: 6px; bottom: calc(100% + 8px); color: #fff; content: 'Tersalin!'; font-size: 11px; font-weight: 700; left: 50%; padding: 4px 9px; position: absolute; transform: translateX(-50%); white-space: nowrap; }
.favorite-form { margin: 0; }
.favorite-button { background: #f5f7f6; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); cursor: pointer; font-size: 18px; height: 38px; line-height: 1; width: 38px; }
.favorite-button:hover, .favorite-button.is-favorite { background: #fff1eb; border-color: #f1c4b4; color: var(--coral); }
.search-form { margin: 28px 0 24px; max-width: 720px; }
.search-form label { color: var(--muted); display: block; margin-bottom: 8px; }
.search-row { align-items: center; display: flex; gap: 10px; }
.search-row input { flex: 1; }
.history-chapter { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.package-category-pill { background: #e8eee5; border-radius: 999px; color: var(--green-dark); display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 6px 10px; text-transform: uppercase; }
.dashboard-package-card h3 { font-size: 22px; line-height: 1.25; margin: 13px 0 8px; }
.package-detail-link { margin-top: 12px; text-align: center; width: 100%; }
.dashboard-package-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.publisher-line strong { color: var(--green-dark); }
.dashboard-package-meta { background: #f5f7f6; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; margin: 16px 0; padding: 12px; }
.dashboard-package-meta span { color: var(--green-dark); font-size: 13px; font-weight: 700; }
.join-form { display: grid; gap: 10px; margin-top: 16px; }
.join-form label { margin-bottom: -2px; }
.join-form select { background: #fcfdf9; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; min-height: 48px; padding: 12px 14px; width: 100%; }
.join-form select:focus { border-color: var(--green); outline: 3px solid rgba(30,107,80,.13); }
.join-form .button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.chapter-count { color: var(--muted); font-size: 12px; font-weight: 700; }
.joined-box, .empty-card { background: #e7f4eb; border: 1px solid #cde8d6; border-radius: 10px; color: #23623d; font-size: 14px; font-weight: 700; line-height: 1.45; margin-top: 16px; padding: 13px 14px; }
.joined-box.muted, .empty-card { background: var(--card); border-color: var(--line); color: var(--muted); }
.dashboard-bottom-nav { background: #ffffff; border: 1px solid var(--line); border-radius: 18px 18px 0 0; bottom: 0; box-shadow: 0 -10px 28px rgba(23,35,31,.14); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; left: 50%; max-width: 760px; min-height: 82px; padding: 10px 8px 14px; position: fixed !important; transform: translateX(-50%); width: calc(100% - 20px); z-index: 2147483000; }
.dashboard-bottom-nav a { align-items: center; color: var(--muted); display: flex; flex-direction: column; font-size: 10px; font-weight: 700; gap: 4px; justify-content: center; min-height: 58px; padding: 6px 4px; text-align: center; }
.dashboard-bottom-nav a.is-active { background: rgba(23,107,82,.08); border-radius: 12px; color: var(--green-dark); }
.nav-icon { align-items: center; background: rgba(23,107,82,.08); border-radius: 10px; display: inline-flex; font-size: 18px; height: 28px; justify-content: center; width: 28px; }
.package-detail-page { margin: 0 auto; max-width: 1080px; padding: 34px 0 130px; }
.back-link { display: inline-block; font-size: 13px; font-weight: 700; margin-bottom: 24px; }
.package-detail-intro h1 { font-size: 42px; margin: 10px 0 8px; }
.package-detail-intro p { color: var(--muted); margin: 0 0 28px; }
.package-tabs { background: #ffffff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 18px rgba(23,35,31,.08); display: grid; gap: 6px; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 20px; overflow: hidden; padding: 6px; scrollbar-width: thin; width: 100%; }
.package-tabs a { align-items: center; background: #ffffff; border: 1px solid var(--line); border-radius: 9px; color: var(--green-dark); display: flex; font-size: 13px; font-weight: 700; justify-content: center; min-height: 54px; padding: 10px 8px; text-align: center; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.package-tabs a:hover { background: #f5faf7; border-color: #a9cabb; color: var(--green-dark); transform: translateY(-1px); }
.package-tabs a:nth-child(1), .package-tabs a:nth-child(2), .package-tabs a:nth-child(3), .package-tabs a:nth-child(4), .package-tabs a:nth-child(5), .package-tabs a:nth-child(6) { background: #ffffff; }
.package-tabs a.is-active { background: var(--green); color: #fff; box-shadow: 0 5px 12px rgba(14,73,56,.2); }
.package-tabs a.is-locked { opacity: 0.6; background: #f8fafc; color: var(--muted); border-color: #e2e8f0; }
.package-tabs a.is-locked:hover { background: #f1f5f9; border-color: #cbd5e1; transform: none; }
.package-detail-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 26px; }
.package-detail-card h2 { margin-top: 0; }
.package-about-grid { display: grid; gap: 28px; grid-template-columns: minmax(220px, .8fr) 1.2fr; }
.package-detail-thumbnail { border-radius: 12px; max-height: 340px; object-fit: cover; width: 100%; }
.package-description { color: var(--muted); line-height: 1.7; }
.package-facility-list { background: #f5f7f6; border: 1px solid var(--line); border-radius: 10px; margin: 16px 0; padding: 14px 18px; }
.package-facility-list h3 { font-size: 15px; margin: 0 0 8px; }
.package-facility-list ul { margin: 0; padding-left: 18px; }
.package-facility-list li { color: var(--green-dark); font-size: 14px; font-weight: 600; }
.package-template-download { margin-top: 12px; }
.chapter-choice-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.chapter-choice { border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; padding: 16px; }
.chapter-choice.is-taken { background: #f5f7f6; color: var(--muted); }
.chapter-choice span { line-height: 1.45; }
.chapter-choice small { font-weight: 700; }
.detail-form { display: grid; gap: 12px; margin-top: 20px; max-width: none; width: 100%; }
.detail-form label { display: grid; gap: 7px; width: 100%; }
.detail-form input, .detail-form select, .detail-form textarea, .detail-form button { width: 100%; }
.inline-form { display: inline-flex; margin-top: 16px; }
.review-comments { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }
.comment-item { background: #f5f7f6; border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; padding: 12px 14px; }
.comment-item strong, .comment-item small { display: block; }
.comment-item small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.comment-item p { line-height: 1.5; margin-bottom: 0; }
.payment-account { background: #f5f7f6; border: 1px solid var(--line); border-radius: 12px; line-height: 1.6; margin: 18px 0; padding: 16px; }
.publication-list { display: grid; gap: 12px; }
.publication-item { border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 6px; padding: 14px; }
.publication-item span { color: var(--muted); font-size: 13px; }

/* Share Modal Popup */
.share-modal-overlay { align-items: center; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(4px); display: flex; inset: 0; justify-content: center; padding: 16px; position: fixed; z-index: 2147483647; animation: fadeInModal 0.2s ease-out; }
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
.share-modal-card { background: #ffffff; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.25); max-height: 90vh; max-width: 520px; overflow-y: auto; padding: 24px; position: relative; width: 100%; }
.share-modal-header { align-items: center; border-bottom: 1px solid var(--line, #e2e8f0); display: flex; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; }
.share-modal-header h3 { font-size: 18px; font-weight: 700; margin: 0; color: var(--ink, #0f172a); }
.share-modal-close { background: #f1f5f9; border: none; border-radius: 50%; color: #64748b; cursor: pointer; font-size: 22px; height: 32px; line-height: 1; width: 32px; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease; }
.share-modal-close:hover { background: #e2e8f0; color: #0f172a; }
.share-modal-subtitle { color: #64748b; font-size: 13px; margin: 0 0 16px; }
.pwa-install-overlay { align-items: center; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(4px); display: flex; inset: 0; justify-content: center; padding: 16px; position: fixed; z-index: 2147483647; animation: fadeInModal 0.2s ease-out; }
.pwa-install-card { background: #ffffff; border-radius: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.25); max-height: 90vh; max-width: 380px; overflow-y: auto; padding: 28px 24px 24px; position: relative; text-align: center; width: 100%; }
.pwa-install-close { background: #f1f5f9; border: none; border-radius: 50%; color: #64748b; cursor: pointer; font-size: 22px; height: 32px; line-height: 1; position: absolute; right: 14px; top: 14px; width: 32px; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease; }
.pwa-install-close:hover { background: #e2e8f0; color: #0f172a; }
.pwa-install-icon { display: flex; justify-content: center; margin-bottom: 6px; }
.pwa-install-icon img { width: clamp(32px, 4vw, 46px); height: clamp(32px, 4vw, 46px); object-fit: contain; border-radius: 12px; }
.pwa-install-card h3 { color: var(--ink, #0f172a); font-size: 19px; margin: 0 0 10px; }
.pwa-install-desc { color: #475569; font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.pwa-install-steps { color: #475569; font-size: 14px; line-height: 1.7; margin: 0 0 16px; padding-left: 20px; text-align: left; }
.pwa-install-actions { display: flex; flex-direction: column; gap: 10px; }
.pwa-install-actions .button { margin-left: 0; width: 100%; }
.share-options-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; }
@media (max-width: 480px) { .share-options-grid { grid-template-columns: 1fr; } }
.share-option-btn { align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; color: #0f172a; cursor: pointer; display: flex; gap: 12px; padding: 12px 14px; text-decoration: none; transition: all 0.15s ease; text-align: left; font: inherit; width: 100%; }
.share-option-btn:hover { border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.share-option-btn.wa-btn:hover { background: #f0fdf4; border-color: #86efac; color: #166534; }
.share-option-btn.wabiz-btn:hover { background: #f0fdf4; border-color: #86efac; color: #166534; }
.share-option-btn.ig-btn:hover { background: #fdf2f8; border-color: #fbcfe8; color: #9d174d; }
.share-option-btn.fb-btn:hover { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.share-icon { align-items: center; display: flex; flex-shrink: 0; justify-content: center; width: 28px; height: 28px; }
.share-icon svg { display: block; height: 26px; width: 26px; }
.share-label strong { display: block; font-size: 13px; font-weight: 700; }
.share-label small { color: #64748b; display: block; font-size: 11px; margin-top: 2px; }
.share-copy-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; }
.share-copy-box label { color: #475569; display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.share-copy-box textarea { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; color: #334155; font-family: inherit; font-size: 12px; line-height: 1.5; min-height: 90px; padding: 8px 10px; resize: vertical; width: 100%; box-sizing: border-box; }
.share-copy-btn { width: 100%; margin-top: 10px; justify-content: center; }
.share-copy-status { font-size: 12px; margin-top: 6px; text-align: center; }
.share-copy-status.is-success { color: #166534; font-weight: 600; }
@media (max-width: 760px) { .page-shell { padding-top: 84px; } }
@media (max-width: 900px) { .package-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .package-detail-page { padding-top: 20px; } .package-detail-intro h1 { font-size: 32px; } .package-detail-card { padding: 20px 16px; } .package-about-grid { grid-template-columns: 1fr; } .package-tabs { display: flex; margin-left: -4px; margin-right: -4px; overflow-x: auto; } .package-tabs a { flex: 0 0 142px; font-size: 12px; min-height: 50px; padding: 11px 12px; } .chapter-choice-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .login-screen { align-items: stretch; display: block; min-height: 100dvh; padding: 0; } .login-phone { border: 0; border-radius: 0; box-shadow: none; min-height: 100dvh; width: 100%; } .login-phone:before { display: none; } .login-hero { height: 238px; } .login-card { padding: 28px 18px 32px; width: 100%; } .login-form, .login-submit, .login-field { width: 100%; } }
@media (max-width: 760px) { .site-header { padding: 12px 16px; } .brand { font-size: 17px; } .site-header nav { gap: 7px; } .site-header nav > a:not(.nav-button) { display: none; } .nav-button { min-height: 44px; padding: 12px 15px; } .page-shell { min-height: calc(100vh - 110px); padding: 8px 16px 150px; } .site-footer { padding: 26px 16px; } .hero { gap: 32px; grid-template-columns: 1fr; min-height: auto; padding: 42px 0 28px; } .hero h1 { font-size: 44px; margin-top: 14px; } .hero p { font-size: 16px; line-height: 1.55; } .hero .button { display: block; text-align: center; width: 100%; } .button-secondary { margin-left: 0; margin-top: 10px; } .hero-art { min-height: 250px; } .art-note { font-size: 22px; height: 155px; right: 14%; width: 190px; } .auth-wrap { margin: 22px auto; } .form-grid, .profile-grid { grid-template-columns: 1fr; } .dashboard-summary { display: flex; flex-wrap: nowrap; gap: 14px; margin-right: -16px; overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 16px 14px 2px; scroll-snap-type: x mandatory; scrollbar-width: thin; } .dashboard-summary .summary-card { flex: 0 0 calc(100vw - 34px); scroll-snap-align: start; } .dashboard-package-grid { display: flex; flex-wrap: nowrap; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; } .dashboard-package-grid .dashboard-package-card { flex: 0 0 min(86vw, 360px); scroll-snap-align: start; } .package-filters { align-items: stretch; flex-direction: column; gap: 10px; } .package-search-field, .package-category-field { flex-basis: auto; width: 100%; } .package-filter-button, .clear-package-filter { justify-content: center; width: 100%; } .field.full, .form-actions { grid-column: auto; } .form-actions { align-items: stretch; flex-direction: column; gap: 14px; } .form-actions .button { width: 100%; } .auth-card { border-radius: 14px; padding: 28px 20px; } .auth-card h1 { font-size: 30px; } .dashboard { padding-top: 28px; } .dashboard h1 { font-size: 38px; line-height: 1.05; } .section-heading-row { align-items: stretch; flex-direction: column; } .section-heading-row h2 { font-size: 26px; } .dashboard-panel { padding: 18px 14px; } .history-item { align-items: flex-start; flex-direction: column; } .history-detail { text-align: left; } .dashboard-bottom-nav { border-left: 0; border-radius: 16px 16px 0 0; border-right: 0; bottom: 0 !important; gap: 2px; left: 0; max-width: none; padding: 8px 6px max(8px, env(safe-area-inset-bottom)); transform: none; width: 100%; } .dashboard-bottom-nav a { font-size: 10px; min-height: 56px; } .dashboard-bottom-nav .nav-icon { font-size: 18px; height: 30px; width: 30px; } .search-row { align-items: stretch; flex-direction: column; } .search-row .button { width: 100%; } }
