:root {
    --theme: #e31b23;
    --theme-dark: #b3131a;
    --bg: #fff7f7;
    --text: #222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", Arial, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    overflow: hidden;
}

.phone-frame {
    background: #fff;
    width: 90vw;
    max-width: 420px;
    height: 100%;
    max-height: calc(90vw * 16 / 9);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    padding-bottom: 60px;
}

.content-area::-webkit-scrollbar {
    display: none;
}

nav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav .logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

nav .logo span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--theme-dark);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    border: none;
    background: transparent;
}

.menu-toggle span {
    background: var(--theme-dark);
    height: 3px;
    width: 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul {
    list-style: none;
    display: none;
    position: absolute;
    top: 65px;
    right: 10px;
    background: #fff;
    flex-direction: column;
    width: 190px;
    padding: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
    z-index: 99;
}

nav ul.show {
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: var(--theme-dark);
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    display: block;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

nav ul li a:hover {
    background: var(--theme);
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box {
    max-width: 90%;
    margin: 20px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 25px 20px;
    animation: fadeIn 0.8s ease;
}

.box img {
    width: 100px;
    border-radius: 22px;
    margin-bottom: 15px;
}

h1 {
    font-size: 1.4rem;
    color: var(--theme-dark);
    margin-bottom: 10px;
}

p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    flex: 1;
    background: var(--theme);
    color: white;
    padding: 10px 0;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(227, 27, 35, 0.4);
}

.btn.secondary {
    background: #fff;
    color: var(--theme-dark);
    border: 1px solid var(--theme);
    box-shadow: none;
}

.btn:hover {
    background: var(--theme-dark);
    transform: translateY(-2px);
    color: #fff;
}

.btn.secondary:hover {
    background: var(--theme);
    color: #fff;
}

.content {
    background: #fff;
    margin: 10px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.content h2,
.content h3 {
    color: var(--theme-dark);
    border-bottom: 2px solid #ffd5d5;
    padding-bottom: 6px;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

ul {
    padding-left: 18px;
}

ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

ol {
    padding-left: 18px;
    margin-bottom: 10px;
}

ol li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.88rem;
}

th,
td {
    border: 1px solid #f0d0d0;
    padding: 8px;
    text-align: left;
}

th {
    background: var(--theme);
    color: #fff;
}

tr:nth-child(even) {
    background: #fff4f4;
}

.note {
    font-size: 0.78rem;
    color: #777;
    margin-top: 8px;
}

footer {
    background: #fff;
    text-align: center;
    font-size: 0.78rem;
    color: #777;
    padding: 12px;
    border-top: 1px solid #eee;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    line-height: 1.4;
}

footer a {
    color: var(--theme);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 480px) {
    body {
        background: var(--bg);
        height: 100dvh;
    }

    .phone-frame {
        width: 100%;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        max-height: none;
    }
}

a {
    color: var(--theme);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    color: var(--theme-dark);
    text-decoration: underline;
}