@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&family=ZCOOL+KuaiLe&display=swap");

:root {
    --font-display: "ZCOOL KuaiLe", "STKaiti", cursive;
    --font-body: "Chakra Petch", "PingFang SC", "Microsoft YaHei", sans-serif;
    --bg-1: #0b1714;
    --bg-2: #13251f;
    --bg-3: #1f3b33;
    --surface: #f6f1e7;
    --surface-2: #fff8ee;
    --ink: #1b2a24;
    --ink-soft: #4a5b53;
    --accent: #f4a261;
    --accent-2: #2a9d8f;
    --accent-3: #e76f51;
    --outline: rgba(27, 42, 36, 0.14);
    --shadow-sm: 0 10px 20px rgba(10, 18, 16, 0.12);
    --shadow-lg: 0 20px 45px rgba(7, 14, 12, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(130deg, var(--bg-1), var(--bg-2) 40%, var(--bg-3));
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(244, 162, 97, 0.25), transparent 45%),
        radial-gradient(circle at 82% 10%, rgba(42, 157, 143, 0.25), transparent 40%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 80px);
    opacity: 0.85;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Crect width='1' height='1' x='12' y='18' fill='%23ffffff' fill-opacity='0.12'/%3E%3Crect width='1' height='1' x='28' y='56' fill='%23ffffff' fill-opacity='0.12'/%3E%3Crect width='1' height='1' x='52' y='30' fill='%23ffffff' fill-opacity='0.12'/%3E%3Crect width='1' height='1' x='70' y='64' fill='%23ffffff' fill-opacity='0.12'/%3E%3C/svg%3E");
    opacity: 0.2;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(42, 157, 143, 0.6);
    outline-offset: 3px;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px;
}

.page {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.navbar {
    background: rgba(246, 241, 231, 0.92);
    border: 1px solid var(--outline);
    border-radius: 999px;
    padding: 10px 18px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    color: #0b1714;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    box-shadow: inset 0 0 0 1px rgba(27, 42, 36, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-text {
    font-size: 1rem;
    color: var(--ink);
}

.nav-brand:hover {
    transform: translateY(-1px);
}

.nav-brand:hover .brand-mark {
    transform: rotate(-4deg);
    box-shadow: 0 10px 20px rgba(11, 18, 16, 0.18);
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: var(--accent-2);
    color: #081713;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    color: var(--ink);
}

h1 {
    font-size: clamp(2.4rem, 3vw + 1.2rem, 3.6rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.6rem, 1.5vw + 1rem, 2.2rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.35rem;
    line-height: 1.3;
}

.page-title {
    margin: 0 0 18px;
    color: var(--surface-2);
    text-shadow: 0 14px 30px rgba(8, 12, 10, 0.3);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--accent-3);
    font-weight: 700;
}

.lead {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 520px;
}

.hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    background: linear-gradient(145deg, rgba(246, 241, 231, 0.95), rgba(255, 248, 238, 0.9));
    border: 1px solid var(--outline);
    border-radius: 30px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: rise 0.8s ease-out both;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 60px;
    background: linear-gradient(140deg, rgba(244, 162, 97, 0.45), rgba(42, 157, 143, 0.2));
    transform: rotate(12deg);
    opacity: 0.9;
    animation: float 8s ease-in-out infinite;
}

.hero-content {
    grid-column: 1 / 8;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
}

.stat {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(27, 42, 36, 0.1);
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(11, 18, 16, 0.16);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}

.hero-panel {
    grid-column: 8 / 13;
    background: rgba(255, 248, 238, 0.96);
    border: 1px solid rgba(27, 42, 36, 0.12);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.hero-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.panel-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-3);
    font-weight: 700;
}

.panel-chip,
.section-chip {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid rgba(42, 157, 143, 0.35);
    background: rgba(42, 157, 143, 0.15);
    color: var(--accent-2);
    white-space: nowrap;
}

.section {
    background: rgba(246, 241, 231, 0.95);
    border: 1px solid var(--outline);
    border-radius: 26px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    animation: rise 0.7s ease-out both;
    scroll-margin-top: 110px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-header p {
    color: var(--ink-soft);
    margin-top: 6px;
}

.announcement-container {
    background: linear-gradient(150deg, #12231e, #1c3b32);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(244, 162, 97, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 30px rgba(11, 18, 16, 0.35);
    color: #f9f4e7;
    position: relative;
    overflow: hidden;
}

.announcement-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(244, 162, 97, 0.12), transparent 50%);
    opacity: 0.8;
    pointer-events: none;
}

.announcement-content {
    min-height: 140px;
    position: relative;
    z-index: 1;
}

.announcement-item {
    display: none;
    animation: fadeUp 0.5s ease;
}

.announcement-item.active {
    display: block;
}

.announcement-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f4d7b2;
    border: 1px solid rgba(244, 162, 97, 0.45);
    background: rgba(244, 162, 97, 0.2);
    margin-bottom: 10px;
}

.announcement-text {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 10px;
    word-break: break-word;
}

.announcement-date {
    font-size: 0.8rem;
    opacity: 0.75;
    text-align: right;
}

.announcement-dots {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.dot.active {
    background-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.25);
}

.server-grid,
.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.server-card,
.pack-card {
    background: var(--surface-2);
    border-radius: 20px;
    border: 1px solid var(--outline);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardRise 0.6s ease both;
    animation-delay: calc(var(--delay, 0) * 0.08s);
}

.server-card::after,
.pack-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.8;
}

.server-card:hover,
.pack-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(11, 18, 16, 0.16);
}

.server-card:focus-within,
.pack-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(11, 18, 16, 0.2);
}

.server-card.empty,
.pack-card.empty {
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
    color: var(--ink-soft);
}

.server-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.server-name {
    margin: 0;
}

.server-tag {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(42, 157, 143, 0.25);
    background: rgba(42, 157, 143, 0.12);
    color: var(--accent-2);
    white-space: nowrap;
}

.server-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.server-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.status-online {
    background: rgba(42, 157, 143, 0.18);
    color: var(--accent-2);
    border: 1px solid rgba(42, 157, 143, 0.45);
}

.status-offline {
    background: rgba(231, 111, 81, 0.18);
    color: var(--accent-3);
    border: 1px solid rgba(231, 111, 81, 0.45);
}

.server-players {
    font-weight: 600;
    color: var(--ink);
    background: rgba(244, 162, 97, 0.2);
    border: 1px solid rgba(244, 162, 97, 0.35);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.server-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(27, 42, 36, 0.06);
    color: var(--ink-soft);
    gap: 10px;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.info-value {
    font-weight: 600;
    color: var(--ink);
}

.copy-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(27, 42, 36, 0.18);
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(11, 18, 16, 0.16);
    background: rgba(255, 255, 255, 0.95);
}

.copy-btn.is-copied {
    background: rgba(42, 157, 143, 0.22);
    border-color: rgba(42, 157, 143, 0.5);
    color: #0b1a15;
}

.server-description {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.pack-name {
    margin: 0;
}

.pack-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.pack-count {
    background: rgba(42, 157, 143, 0.12);
    color: var(--accent-2);
    border: 1px solid rgba(42, 157, 143, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pack-description {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.pack-card .download-btn {
    margin-top: auto;
    align-self: flex-start;
}

.btn,
.download-btn,
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-secondary {
    background: rgba(27, 42, 36, 0.08);
    color: var(--ink);
    border: 1px solid rgba(27, 42, 36, 0.2);
}

.btn-secondary:hover {
    background: rgba(27, 42, 36, 0.14);
}

.btn-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary,
.download-btn,
.submit-btn {
    background: var(--accent);
    color: #1a1209;
    border-color: rgba(26, 18, 9, 0.12);
    box-shadow: 0 10px 20px rgba(244, 162, 97, 0.35);
}

.btn-primary:hover,
.download-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(244, 162, 97, 0.4);
}

.btn:active,
.download-btn:active,
.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 18px rgba(244, 162, 97, 0.3);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(27, 42, 36, 0.3);
    color: var(--ink);
}

.btn-ghost:hover {
    background: rgba(27, 42, 36, 0.08);
}

.site-footer {
    margin-top: 10px;
    padding: 28px;
    background: linear-gradient(140deg, #0f1c18, #1d332c);
    color: #f8f1e7;
    border-radius: 26px;
    border: 1px solid rgba(244, 162, 97, 0.2);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
}

.site-footer h3 {
    margin-bottom: 8px;
    color: #f4d7b2;
}

.site-footer p {
    margin: 6px 0;
    color: rgba(248, 241, 231, 0.85);
}

.site-footer img {
    width: 120px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #fef6e8;
    padding: 4px;
    margin-top: 8px;
}

.site-footer a {
    margin-right: 10px;
    color: #f4d7b2;
    font-weight: 700;
}

.copyright {
    align-self: center;
    line-height: 1.7;
}

.form-card,
.login-form {
    background: rgba(246, 241, 231, 0.96);
    border-radius: 22px;
    border: 1px solid var(--outline);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 760px;
    margin: 40px auto;
}

.form-card.narrow,
.login-form {
    max-width: 440px;
}

.form-title {
    margin: 0;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-block {
    width: 100%;
}

.helper-text {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.progress {
    display: none;
    width: 100%;
    height: 8px;
    background: rgba(27, 42, 36, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}

.progress.is-visible {
    display: block;
}

.progress__inner {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.2s ease;
}

.admin-panel {
    background: rgba(246, 241, 231, 0.96);
    border-radius: 22px;
    border: 1px solid var(--outline);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-panel + .admin-panel {
    margin-top: 24px;
}

.admin-panel--toolbar {
    background: linear-gradient(135deg, rgba(246, 241, 231, 0.96), rgba(255, 248, 238, 0.95));
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-panel-title {
    margin: 0;
}

.admin-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table thead tr {
    background: rgba(27, 42, 36, 0.06);
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(27, 42, 36, 0.1);
    vertical-align: top;
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: rgba(27, 42, 36, 0.04);
}

.cell-ellipsis {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--ink);
}

.form-group input,
.form-group textarea,
.login-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(27, 42, 36, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus,
.login-form input:focus {
    border-color: rgba(42, 157, 143, 0.6);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
    outline: none;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(11, 18, 16, 0.18);
}

.btn-edit {
    background: #2a9d8f;
}

.btn-delete {
    background: #e76f51;
}

.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash-message {
    background: rgba(42, 157, 143, 0.9);
    color: #07130f;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash-error {
    background: rgba(231, 111, 81, 0.9);
    color: #fff2e6;
}

.flash-message.is-hidden {
    opacity: 0;
    transform: translateY(-8px);
}

.toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(246, 241, 231, 0.95);
    border-radius: 12px;
    border: 1px solid var(--outline);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast--success {
    background: rgba(42, 157, 143, 0.18);
    border-color: rgba(42, 157, 143, 0.4);
    color: #0b1a15;
}

.toast--error {
    background: rgba(231, 111, 81, 0.18);
    border-color: rgba(231, 111, 81, 0.4);
    color: #3b0f06;
}

.toast.is-hidden {
    opacity: 0;
    transform: translateY(-8px);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(27, 42, 36, 0.1);
}

thead tr {
    background: rgba(27, 42, 36, 0.06);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(12deg);
    }
    50% {
        transform: translateY(12px) rotate(12deg);
    }
    100% {
        transform: translateY(0) rotate(12deg);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        border: 1px solid rgba(27, 42, 36, 0.12);
        border-radius: 16px;
        padding: 12px;
        margin-bottom: 16px;
        background: rgba(255, 255, 255, 0.7);
    }

    .admin-table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border-bottom: none;
    }

    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--ink-soft);
    }

    .admin-actions {
        justify-content: flex-start;
    }

    .cell-ellipsis {
        max-width: none;
        white-space: normal;
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content,
    .hero-panel {
        grid-column: 1 / -1;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        padding: 16px;
    }

    .navbar {
        position: static;
        border-radius: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .nav-brand {
        justify-content: center;
    }

    .hero {
        padding: 22px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 22px;
    }

    .server-grid,
    .pack-grid {
        grid-template-columns: 1fr;
    }

    .server-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    .btn,
    .download-btn,
    .submit-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
