* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: #10131d;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background:
        radial-gradient(circle at 10% 5%, rgba(0, 235, 214, 0.18), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(255, 177, 22, 0.16), transparent 32%),
        linear-gradient(145deg, #10131d 0%, #122a4d 45%, #0d4c48 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    padding-bottom: 86px;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    background: rgba(16, 19, 29, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #00e6d0, #007bff);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 230, 208, 0.24);
}

.brand-name {
    font-size: 17px;
    font-weight: 900;
    line-height: 1.1;
}

.brand-subtitle {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    font-weight: 700;
}

.install-help-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: #ffb116;
    color: #151515;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(255, 177, 22, 0.28);
}

.app-main {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 18px 14px 0;
}

.hero-card,
.notice-card,
.quick-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.085);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-card {
    border-radius: 28px;
    padding: 24px 18px;
    overflow: hidden;
    position: relative;
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -80px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255, 177, 22, 0.20);
    filter: blur(2px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0, 230, 208, 0.14);
    color: #62fff0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.hero-card h1 {
    margin: 14px 0 10px;
    max-width: 520px;
    font-size: 31px;
    line-height: 1.05;
    letter-spacing: -0.9px;
}

.hero-card p {
    margin: 0;
    max-width: 540px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.primary-btn,
.secondary-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 14px;
}

.primary-btn {
    background: #ffb116;
    color: #151515;
    box-shadow: 0 12px 24px rgba(255, 177, 22, 0.25);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.quick-card {
    min-height: 126px;
    border-radius: 22px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quick-icon {
    font-size: 25px;
}

.quick-title {
    display: block;
    margin-top: auto;
    font-size: 15px;
    font-weight: 900;
}

.quick-desc {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.25;
}

.notice-card {
    margin-top: 14px;
    border-radius: 20px;
    padding: 14px;
}

.notice-card strong {
    display: block;
    font-size: 14px;
    font-weight: 900;
}

.notice-card p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12.5px;
    line-height: 1.45;
}

.bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(10, 13, 28, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.bottom-nav a {
    min-height: 42px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11.5px;
    font-weight: 900;
}

.bottom-nav a:first-child {
    background: rgba(255, 177, 22, 0.18);
    color: #ffcf5a;
}

.install-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-end;
    padding: 12px;
    background: rgba(0, 0, 0, 0.48);
}

.install-modal.show {
    display: flex;
}

.install-modal__box {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    border-radius: 26px;
    padding: 20px 18px;
    background: #ffffff;
    color: #151515;
    position: relative;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.30);
}

.install-modal__box h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.1;
}

.install-modal__box ol {
    margin: 0;
    padding-left: 20px;
}

.install-modal__box li {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.35;
}

.install-modal__box p {
    margin: 12px 0 0;
    color: #444;
    font-size: 13px;
    line-height: 1.45;
}

.install-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f7;
    color: #111;
    font-size: 24px;
    line-height: 1;
}

@media (min-width: 768px) {
    .app-main {
        padding-top: 28px;
    }

    .hero-card {
        padding: 34px;
    }

    .hero-card h1 {
        font-size: 44px;
    }

    .quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
