:root {
    color-scheme: dark;
    --bg: #1a0f08;
    --panel: rgba(48, 26, 14, 0.86);
    --panel-strong: #4a2711;
    --text: #fff8ea;
    --muted: #ffdcb4;
    --line: rgba(255, 196, 87, 0.28);
    --accent: #ffd166;
    --accent-strong: #ffb703;
    --accent-two: #ff7a3d;
    --accent-three: #fff06a;
    --hot: #ff4f79;
    --danger: #ff6b6b;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 209, 102, 0.34), transparent 28%),
        radial-gradient(circle at 82% 8%, rgba(255, 122, 61, 0.26), transparent 24%),
        radial-gradient(circle at 76% 78%, rgba(255, 79, 121, 0.16), transparent 28%),
        linear-gradient(135deg, #1a0f08 0%, #2b160b 52%, #140b07 100%);
    background-attachment: fixed;
    color: var(--text);
}

body.has-custom-bg {
    background:
        linear-gradient(135deg, rgba(26, 15, 8, 0.88), rgba(54, 26, 10, 0.74)),
        radial-gradient(circle at 14% 12%, rgba(255, 209, 102, 0.3), transparent 30%),
        radial-gradient(circle at 82% 8%, rgba(255, 122, 61, 0.26), transparent 25%),
        var(--custom-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(26, 15, 8, 0.8);
    backdrop-filter: blur(10px);
}

.nav {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 0 24px rgba(255, 183, 3, 0.5);
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 2px solid rgba(255, 209, 102, 0.7);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 28px rgba(255, 122, 61, 0.42);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-size: 13px;
    padding: 9px 13px;
    border-radius: 999px;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-links a.minecraft-nav {
    padding-left: 13px;
    border: 1px solid rgba(74, 198, 63, 0.5);
    background:
        linear-gradient(180deg, rgba(81, 205, 58, 0.95) 0 38%, rgba(119, 76, 36, 0.95) 38% 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 6px, transparent 6px 12px);
    color: #fff8ea;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 0 rgba(0, 0, 0, 0.18),
        0 0 18px rgba(81, 205, 58, 0.25);
}

.nav-links a.minecraft-nav:hover,
.nav-links a.minecraft-nav.active {
    background:
        linear-gradient(180deg, rgba(96, 226, 68, 1) 0 38%, rgba(136, 86, 40, 1) 38% 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 6px, transparent 6px 12px);
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 122, 61, 0.2));
    color: var(--text);
    transform: translateY(-1px);
}

.nav-links a.logout-nav {
    background: linear-gradient(135deg, #ff3b3b, #ff7a3d);
    color: #fff8ea;
    box-shadow: 0 10px 28px rgba(255, 59, 59, 0.2);
}

.nav-links a.logout-nav:hover {
    background: linear-gradient(135deg, #ff2020, #ff6930);
    color: #fff8ea;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text);
    padding: 8px 10px;
}

.page {
    min-height: calc(100vh - 136px);
}

.hero {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 136px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 36px;
    align-items: center;
    padding: 56px 0;
}

.hero-copy h1,
.section h1,
.section h2 {
    margin: 0 0 14px;
    line-height: 1.05;
}

.hero-copy h1 {
    font-size: clamp(44px, 7vw, 84px);
    color: #ffffff;
    text-shadow: 0 0 38px rgba(255, 183, 3, 0.3);
}

.hero-copy p,
.section p {
    color: var(--muted);
    line-height: 1.7;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #06131c;
}

.primary:hover {
    filter: saturate(1.15) brightness(1.05);
}

.secondary {
    border: 1px solid rgba(255, 204, 77, 0.32);
    background: rgba(255, 204, 77, 0.12);
    color: var(--text);
}

.hero-panel,
.support-box,
.profile-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    padding: 24px;
    box-shadow: var(--shadow);
}

.hero-panel {
    display: grid;
    gap: 16px;
}

.hero-panel strong,
.support-box strong {
    font-size: 22px;
}

.hero-panel span,
.support-box span {
    display: block;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    color: var(--muted);
}

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.grid-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.grid-section article,
.team-grid article {
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(76, 201, 255, 0.1), rgba(45, 245, 183, 0.06)),
        var(--panel);
    padding: 22px;
    box-shadow: var(--shadow);
}

.grid-section article:nth-child(2),
.team-grid article:nth-child(2n) {
    background:
        linear-gradient(145deg, rgba(255, 204, 77, 0.12), rgba(255, 92, 138, 0.08)),
        var(--panel);
}

.form-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    align-items: start;
}

.register-form,
.login-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    padding: 22px;
    box-shadow: var(--shadow);
}

.login-form {
    max-width: 520px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(7, 19, 31, 0.9);
    color: var(--text);
    padding: 12px;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(255, 209, 102, 0.44);
    border-color: var(--accent);
}

textarea {
    resize: vertical;
}

.full {
    grid-column: 1 / -1;
}

.notice {
    grid-column: 1 / -1;
    border-radius: 18px;
    padding: 12px 14px;
    font-weight: 800;
}

.success {
    background: rgba(56, 211, 159, 0.14);
    color: var(--accent);
}

.warning {
    background: rgba(255, 209, 102, 0.16);
    color: var(--accent-three);
}

.error {
    background: rgba(255, 107, 107, 0.14);
    color: var(--danger);
}

.split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.discord-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 64px;
}

.discord-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 340px;
    gap: 28px;
    align-items: center;
    min-height: 340px;
}

.discord-hero h1 {
    margin: 0 0 16px;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1;
}

.discord-hero p {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.7;
}

.discord-button {
    background: linear-gradient(135deg, #5865f2, #8b5cf6);
    color: #fff;
}

.discord-invite-card,
.discord-card,
.discord-workflow,
.discord-events {
    border: 1px solid rgba(88, 101, 242, 0.42);
    border-radius: 26px;
    background:
        radial-gradient(circle at 20% 0%, rgba(88, 101, 242, 0.24), transparent 38%),
        var(--panel);
    box-shadow: var(--shadow);
}

.discord-invite-card {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 12px;
    padding: 26px;
}

.discord-invite-card img {
    width: 92px;
    height: 92px;
    border-radius: 26px;
}

.discord-invite-card strong {
    font-size: 26px;
}

.discord-invite-card span,
.discord-status small {
    color: var(--muted);
    line-height: 1.5;
}

.discord-status {
    display: grid;
    gap: 4px;
    width: 100%;
    border-radius: 18px;
    background: rgba(88, 101, 242, 0.14);
    padding: 12px;
}

.discord-status b {
    color: #7dff9d;
}

.discord-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.discord-card {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 22px;
}

.discord-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #5865f2, #ff7a3d);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.discord-card h2,
.discord-workflow h2,
.discord-events h2 {
    margin: 0;
}

.discord-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.5;
}

.discord-card b {
    color: var(--text);
}

.discord-workflow,
.discord-events {
    margin-top: 18px;
    padding: 22px;
}

.discord-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.discord-steps article,
.discord-event-list article {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 209, 102, 0.08);
    padding: 14px;
}

.discord-steps b {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865f2, #8b5cf6);
    color: #fff;
    margin-bottom: 10px;
}

.discord-steps span,
.discord-event-list span {
    color: var(--muted);
    line-height: 1.5;
}

.discord-event-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.discord-event-list article {
    display: grid;
    gap: 8px;
}

.server-ip {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(45, 245, 183, 0.14), rgba(76, 201, 255, 0.16));
    padding: 18px 20px;
    color: var(--accent-three);
    font-size: 18px;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.team-grid article {
    display: grid;
    gap: 10px;
}

.team-grid span {
    color: var(--muted);
}

.vip-page {
    min-height: calc(100vh - 136px);
}

.vip-intro {
    max-width: 760px;
    margin: 0 0 24px;
}

.vip-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-top: 30px;
}

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

.vip-card {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: start;
    grid-template-rows: auto auto auto auto 1fr auto;
    gap: 18px;
    min-height: 640px;
    border: 1px solid rgba(255, 196, 87, 0.32);
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 209, 102, 0.16), transparent 30%),
        rgba(48, 26, 14, 0.9);
    padding: 30px 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.vip-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-two));
    pointer-events: none;
}

.vip-silver {
    border-color: rgba(255, 220, 180, 0.34);
}

.vip-gold,
.vip-plus {
    border-color: rgba(255, 209, 102, 0.62);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 209, 102, 0.18), transparent 30%),
        rgba(52, 29, 13, 0.94);
}

.vip-diamond {
    border-color: rgba(255, 122, 61, 0.55);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 122, 61, 0.18), transparent 30%),
        rgba(48, 26, 14, 0.94);
}

.vip-card strong {
    margin-top: 6px;
    color: #fff8ea;
    font-size: 26px;
    line-height: 1;
}

.vip-plan-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 38px;
}

.vip-price {
    color: var(--accent);
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

.vip-gold .vip-price,
.vip-plus .vip-price {
    color: var(--accent-three);
}

.vip-diamond .vip-price {
    color: var(--accent-two);
}

.vip-card small {
    color: var(--muted);
    font-weight: 800;
}

.vip-card ul {
    position: relative;
    display: grid;
    gap: 16px;
    margin: 6px 0 0;
    padding: 0;
    color: var(--muted);
    line-height: 1.35;
    list-style: none;
    align-content: start;
    min-height: 230px;
}

.vip-card li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.vip-card li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 900;
}

.vip-gold li::before,
.vip-plus li::before {
    color: var(--accent-three);
}

.vip-diamond li::before {
    color: var(--accent-two);
}

.vip-popular {
    position: absolute;
    top: 16px;
    right: 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #1a0f08;
    padding: 8px 16px;
    font-size: 12px;
    text-transform: uppercase;
}

.vip-buy {
    position: relative;
    align-self: end;
    margin-top: auto;
    width: 100%;
    justify-self: stretch;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #1a0f08;
}

.vip-buy-gold {
    background: linear-gradient(135deg, var(--accent-three), var(--accent-strong));
    color: #1a0f08;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
}

th {
    background: var(--panel-strong);
}

td {
    color: var(--muted);
}

.support-box {
    min-width: min(100%, 360px);
    display: grid;
    gap: 14px;
}

.support-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 64px;
}

.support-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: center;
}

.support-hero h1 {
    margin: 0 0 14px;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
}

.support-hero p {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.7;
}

.support-fast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.support-status-card,
.support-form,
.support-side article,
.support-faq {
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 209, 102, 0.2), transparent 34%),
        var(--panel);
    box-shadow: var(--shadow);
}

.support-status-card,
.support-side article {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.support-status-card strong {
    font-size: 24px;
}

.support-status-card span,
.support-side span,
.support-faq span {
    color: var(--muted);
    line-height: 1.5;
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    gap: 18px;
    align-items: start;
    margin-top: 22px;
}

.support-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px;
}

.support-form h2 {
    grid-column: 1 / -1;
    margin: 0;
}

.support-side {
    display: grid;
    gap: 16px;
}

.support-side h2 {
    margin: 0;
}

.support-faq {
    margin-top: 18px;
    padding: 22px;
}

.support-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.support-faq-grid article {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 209, 102, 0.08);
    padding: 14px;
}

.footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 36px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(26, 15, 8, 0.68);
    backdrop-filter: blur(12px);
}

.modal-backdrop.open {
    display: flex;
}

.modal-card {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 10%, rgba(255, 209, 102, 0.18), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(255, 122, 61, 0.16), transparent 28%),
        rgba(48, 26, 14, 0.96);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
    padding: 28px;
}

.modal-card h2 {
    margin: 0 44px 10px 0;
    font-size: clamp(28px, 4vw, 42px);
}

.modal-copy {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 209, 102, 0.32);
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.12);
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.modal-form {
    box-shadow: none;
}

.login-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 209, 102, 0.08);
    padding: 14px;
}

.login-strip strong {
    align-self: center;
}

.social-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 36px;
    align-items: center;
    padding: 56px 0 28px;
}

.social-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
}

.social-hero p {
    color: var(--muted);
    line-height: 1.7;
}

.guest-banner,
.post-composer,
.profile-header,
.messages-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
    gap: 24px;
    align-items: start;
    border-top: 1px solid var(--line);
}

.guest-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

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

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.post-card,
.empty-feed,
.conversation-list,
.chat-box {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
}

.post-user img,
.post-user span,
.profile-avatar img,
.profile-avatar span {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #1a0f08;
    font-weight: 900;
}

.post-user small {
    display: block;
    color: var(--muted);
}

.post-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: rgba(0, 0, 0, 0.18);
}

.post-caption {
    margin: 0;
    padding: 14px 14px 0;
    color: var(--text);
    line-height: 1.55;
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
}

.mini-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid rgba(255, 209, 102, 0.28);
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.1);
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.mini-action.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #1a0f08;
}

.mini-action.like-pop {
    animation: likeButtonBounce 520ms ease both;
}

.mini-action.like-pop::after {
    content: "✓";
    position: absolute;
    left: 50%;
    top: -18px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #1a0f08;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
    transform: translateX(-50%) scale(0.4);
    animation: likeCheckPop 520ms ease both;
    pointer-events: none;
}

.mini-action.like-pop::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 209, 102, 0.7);
    border-radius: 999px;
    transform: translateX(-50%) scale(0.2);
    animation: likeRingPop 520ms ease both;
    pointer-events: none;
}

@keyframes likeButtonBounce {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes likeCheckPop {
    0% {
        opacity: 0;
        transform: translate(-50%, 12px) scale(0.35) rotate(-25deg);
    }
    45% {
        opacity: 1;
        transform: translate(-50%, -8px) scale(1.12) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -28px) scale(0.9) rotate(8deg);
    }
}

@keyframes likeRingPop {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.2);
    }
    35% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(1.25);
    }
}

.empty-feed {
    padding: 28px;
}

.profile-header {
    grid-template-columns: auto minmax(0, 1fr);
}

.profile-avatar img,
.profile-avatar span {
    width: 138px;
    height: 138px;
    border-radius: 36px;
    font-size: 54px;
    box-shadow: var(--shadow);
}

.profile-info h1 {
    margin: 0 0 8px;
    font-size: clamp(36px, 5vw, 60px);
}

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.profile-stats strong {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.1);
    padding: 9px 13px;
}

.avatar-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
}

.messages-layout {
    grid-template-columns: 320px minmax(0, 1fr);
}

.conversation-list,
.chat-box {
    padding: 20px;
}

.conversation-list a {
    display: block;
    border-radius: 16px;
    padding: 12px;
    color: var(--muted);
}

.conversation-list a.active,
.conversation-list a:hover {
    background: rgba(255, 209, 102, 0.12);
    color: var(--text);
}

.message-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.message {
    max-width: 72%;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 209, 102, 0.1);
    padding: 12px;
}

.message.mine {
    justify-self: end;
    background: rgba(255, 122, 61, 0.18);
}

.message p {
    margin: 6px 0;
    color: var(--text);
}

.message small {
    color: var(--muted);
}

.message-form {
    display: grid;
    gap: 12px;
}

.dm-layout {
    grid-template-columns: 340px minmax(0, 1fr);
}

.dm-sidebar {
    display: grid;
    gap: 12px;
}

.dm-sidebar a {
    display: grid;
    gap: 4px;
}

.dm-sidebar a small {
    color: var(--muted);
}

.dm-group-form {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 209, 102, 0.08);
    padding: 12px;
}

.dm-group-form select {
    min-height: 120px;
}

.dm-friends-card {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 122, 61, 0.08);
    padding: 12px;
}

.dm-sidebar-title {
    display: grid;
    gap: 2px;
}

.dm-sidebar-title small,
.dm-empty-text {
    color: var(--muted);
}

.dm-friend-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 209, 102, 0.28);
    border-radius: 16px;
    background: rgba(255, 209, 102, 0.08);
    padding: 8px;
}

.dm-friend-row img,
.dm-friend-row > span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: var(--sun-gradient);
    color: #1f0d06;
    font-family: "Arial Black", Arial, sans-serif;
}

.dm-friend-row div {
    min-width: 0;
}

.dm-friend-row strong,
.dm-friend-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-friend-row b {
    border-radius: 999px;
    background: var(--sun-gradient);
    color: #1f0d06;
    font-size: 12px;
    padding: 7px 10px;
}

.dm-chat {
    display: grid;
    gap: 16px;
}

.dm-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.dm-chat-head h1,
.dm-chat-head p {
    margin: 0;
}

.dm-chat-head span {
    color: var(--muted);
}

.dm-message-list {
    max-height: 58vh;
    overflow: auto;
    padding-right: 6px;
}

.chat-media {
    width: min(100%, 360px);
    max-height: 360px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    margin-top: 8px;
}

.chat-audio {
    width: min(100%, 360px);
    margin-top: 8px;
}

.dm-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    padding: 24px 0 64px;
}

.dm-messenger-panel,
.dm-chat-window {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(20, 8, 4, 0.9);
    box-shadow: var(--shadow);
}

.dm-messenger-panel {
    height: calc(100vh - 150px);
    min-height: 620px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    padding: 18px;
}

.dm-panel-head,
.dm-chat-title,
.floating-dm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dm-panel-head h1,
.dm-chat-title h1,
.floating-dm-head h2 {
    margin: 0;
}

.dm-icon-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--sun-gradient);
    color: #1f0d06;
    cursor: pointer;
    font: 900 24px/1 "Arial Black", Arial, sans-serif;
}

.dm-search {
    margin: 14px 0 10px;
}

.dm-search input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255, 209, 102, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 12px 16px;
}

.dm-tabs,
.floating-dm-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.dm-tabs a,
.floating-dm-tabs a {
    white-space: nowrap;
    border-radius: 999px;
    color: var(--text);
    padding: 9px 12px;
    font-weight: 800;
}

.dm-tabs a.active,
.dm-tabs a:hover,
.floating-dm-tabs a:hover {
    background: rgba(255, 168, 76, 0.22);
    color: var(--sun);
}

.dm-list,
.floating-dm-list {
    overflow: auto;
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 8px;
}

.dm-list-item,
.floating-dm-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    color: var(--text);
    padding: 10px;
}

.dm-list-item.active,
.dm-list-item:hover,
.floating-dm-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dm-list-avatar img,
.dm-list-avatar span,
.floating-dm-item > span {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: var(--sun-gradient);
    color: #1f0d06;
    font-family: "Arial Black", Arial, sans-serif;
}

.dm-list-item div,
.floating-dm-item div {
    min-width: 0;
}

.dm-list-item strong,
.dm-list-item small,
.floating-dm-item strong,
.floating-dm-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-list-item small,
.floating-dm-item small,
.dm-chat-title span {
    color: var(--muted);
}

.dm-unread-dot,
.floating-dm-button b,
.floating-dm-item b {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ff3434;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.dm-chat-window {
    min-height: 620px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 20px;
}

.dm-chat-title {
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.dm-message-stream {
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 4px;
}

.dm-bubble {
    width: fit-content;
    max-width: min(520px, 82%);
    border: 1px solid rgba(255, 209, 102, 0.26);
    border-radius: 20px 20px 20px 6px;
    background: rgba(255, 168, 76, 0.12);
    padding: 12px;
}

.dm-bubble.mine {
    align-self: flex-end;
    border-radius: 20px 20px 6px 20px;
    background: rgba(255, 122, 61, 0.22);
}

.dm-bubble p {
    margin: 6px 0;
}

.dm-bubble small {
    color: var(--muted);
}

.dm-compose {
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.dm-compose textarea,
.dm-compose input[type="file"],
.dm-compose select {
    width: 100%;
}

.dm-compose label {
    border: 1px dashed rgba(255, 209, 102, 0.28);
    border-radius: 16px;
    padding: 12px;
}

.dm-compose > div {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.dm-empty-state {
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    gap: 10px;
}

.dm-group-modal {
    max-width: 520px;
}

.floating-dm {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
}

.floating-dm-button {
    position: relative;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff2f2f 0%, #ff7a1a 48%, #ffd447 100%);
    color: #170703;
    box-shadow:
        0 0 0 4px rgba(255, 212, 71, 0.2),
        0 0 26px rgba(255, 75, 32, 0.55),
        0 18px 42px rgba(0, 0, 0, 0.48);
    padding: 0;
    cursor: pointer;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    font-family: "Arial Black", Arial, sans-serif;
    letter-spacing: 0;
    animation: dmPulse 2.4s ease-in-out infinite;
}

.floating-dm-icon {
    width: 34px;
    height: 34px;
    display: block;
    fill: currentColor;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.24));
}

.floating-dm-button b {
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 28px;
    height: 28px;
    border: 2px solid #fff4d0;
    box-shadow: 0 8px 18px rgba(255, 52, 52, 0.42);
}

@keyframes dmPulse {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.floating-dm-panel {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: min(360px, calc(100vw - 28px));
    max-height: min(660px, calc(100vh - 110px));
    display: none;
    grid-template-rows: auto auto 1fr;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(16, 18, 22, 0.97);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    padding: 16px;
}

.floating-dm.open .floating-dm-panel {
    display: grid;
}

.floating-dm-head a,
.floating-dm-head button {
    color: var(--sun);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 800;
}

.floating-dm-list-head a,
.floating-dm-tabs {
    display: none;
}

.floating-dm-panel.chat-open {
    grid-template-rows: 1fr;
}

.floating-dm-panel.chat-open > .floating-dm-list-head,
.floating-dm-panel.chat-open > .floating-dm-list {
    display: none;
}

.floating-dm-thread {
    display: none;
    min-height: 0;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
}

.floating-dm-thread.active {
    display: grid;
}

.floating-dm-back {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 168, 76, 0.18) !important;
    color: var(--sun) !important;
    font-size: 24px;
}

.floating-dm-messages {
    min-height: 260px;
    max-height: 390px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.floating-dm-bubble {
    width: fit-content;
    max-width: 86%;
    border-radius: 18px 18px 18px 6px;
    background: rgba(255, 168, 76, 0.14);
    border: 1px solid rgba(255, 209, 102, 0.22);
    padding: 10px;
}

.floating-dm-bubble.mine {
    align-self: flex-end;
    border-radius: 18px 18px 6px 18px;
    background: linear-gradient(135deg, rgba(255, 122, 61, 0.52), rgba(255, 209, 102, 0.28));
}

.floating-dm-bubble p {
    margin: 5px 0;
}

.floating-dm-bubble small,
.floating-dm-thread small,
.floating-dm-empty {
    color: var(--muted);
}

.floating-dm-bubble img,
.floating-dm-bubble video {
    width: min(100%, 230px);
    max-height: 240px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    margin-top: 8px;
}

.floating-dm-bubble audio {
    width: min(100%, 230px);
    margin-top: 8px;
}

.floating-dm-compose {
    display: grid;
    gap: 8px;
    border-top: 1px solid rgba(255, 209, 102, 0.18);
    padding-top: 10px;
}

.floating-dm-compose textarea {
    width: 100%;
    resize: none;
    border-radius: 16px;
    border: 1px solid rgba(255, 209, 102, 0.22);
    background: rgba(5, 14, 24, 0.94);
    color: var(--text);
    padding: 10px 12px;
}

.floating-dm-compose > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.floating-dm-compose label,
.floating-dm-compose button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    padding: 10px 14px;
}

.floating-dm-compose label {
    background: rgba(255, 168, 76, 0.16);
    color: var(--sun);
}

.floating-dm-compose label input {
    display: none;
}

.floating-dm-compose button {
    background: var(--sun-gradient);
    color: #1f0d06;
}

.dm-message-form {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.dm-file-label {
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 12px;
}

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

.call-page {
    display: grid;
    place-items: center;
}

.call-card {
    width: min(760px, 100%);
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 28px;
}

.call-card h1,
.call-card p {
    margin: 0;
}

.call-card p {
    color: var(--muted);
}

#localPreview {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.28);
    object-fit: cover;
}

.call-link {
    font-size: 14px;
}

.insta-shell {
    width: calc(100% - 32px);
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 560px) 300px;
    gap: 24px;
    align-items: start;
    justify-content: center;
    padding: 24px 0 56px;
}

.feed-column {
    width: 100%;
    max-width: 560px;
    display: grid;
    gap: 16px;
}

.feed-topbar,
.composer-card,
.rail-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.feed-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
}

.feed-topbar h1 {
    margin: 0;
    font-size: 28px;
}

.story-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 14px;
}

.story-row a,
.story-row button {
    display: grid;
    justify-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
}

.story-row span {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        linear-gradient(var(--panel), var(--panel)) padding-box,
        linear-gradient(135deg, var(--accent), var(--accent-two), var(--hot)) border-box;
    border: 3px solid transparent;
    color: var(--accent);
    font-weight: 900;
}

.story-row span.story-icon {
    overflow: hidden;
    background: #1a0f08;
}

.story-row span.story-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.story-row small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.composer-card {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.feed-column > .composer-card {
    display: none;
}

.post-modal-form {
    box-shadow: none;
}

.composer-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.composer-user img,
.composer-user span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #1a0f08;
    font-weight: 900;
}

.composer-user small {
    display: block;
    color: var(--muted);
}

.locked-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.insta-feed {
    display: grid;
    gap: 16px;
}

.insta-feed .post-card {
    width: 100%;
}

.insta-empty {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 12px;
    padding: 38px 28px;
}

.empty-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #1a0f08;
    font-size: 42px;
    font-weight: 900;
}

.right-rail {
    position: static;
    display: grid;
    gap: 16px;
    width: 300px;
}

.rail-card {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.rail-card.profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rail-card h2,
.rail-card p {
    margin: 0;
}

.rail-card p,
.rail-card span {
    color: var(--muted);
    line-height: 1.55;
}

.rail-card span {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.profile-page {
    width: calc(100% - 32px);
    max-width: 980px;
    margin: 0 auto;
    padding: 34px 0 54px;
}

.insta-profile-head {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 28px;
}

.profile-avatar-xl img,
.profile-avatar-xl span {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    font-size: 58px;
    border: 3px solid rgba(255, 209, 102, 0.55);
}

.insta-profile-info {
    display: grid;
    gap: 16px;
}

.profile-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.profile-title-row h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1;
}

.insta-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
}

.insta-stats strong {
    color: var(--text);
}

.profile-bio p {
    margin: 6px 0 0;
    color: var(--muted);
}

.profile-settings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.settings-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 18px;
}

.settings-card h2 {
    margin: 0;
    font-size: 20px;
}

.profile-tabs {
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding: 18px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
}

.profile-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.profile-post-tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.18);
}

.profile-post-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.profile-post-tile:hover img {
    transform: scale(1.04);
    filter: brightness(0.72);
}

.tile-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 16px;
    text-align: center;
    color: var(--text);
    background: rgba(26, 15, 8, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-post-tile:hover .tile-overlay {
    opacity: 1;
}

.tile-overlay span {
    font-weight: 900;
}

.tile-overlay small {
    color: var(--muted);
}

.delete-post-button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b6b, #ff9f43);
    color: #1a0f08;
    cursor: pointer;
    font-weight: 900;
    min-height: 38px;
    padding: 0 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.delete-post-button:hover {
    filter: brightness(1.08);
}

.minecraft-page {
    width: calc(100% - 32px);
    max-width: 1120px;
    margin: 0 auto;
    padding: 42px 0 60px;
}

.minecraft-hero {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 14px;
    min-height: 320px;
    align-content: center;
}

.minecraft-hero h1 {
    margin: 0;
    font-size: clamp(44px, 7vw, 84px);
    line-height: 1;
}

.minecraft-hero p {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.server-ip-center {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    border: 1px solid rgba(76, 198, 63, 0.55);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(81, 205, 58, 0.22) 0 38%, rgba(119, 76, 36, 0.24) 38% 100%),
        rgba(48, 26, 14, 0.92);
    box-shadow: var(--shadow);
    padding: 12px 14px 12px 24px;
}

.server-ip-center code {
    color: var(--accent-three);
    font-size: clamp(18px, 3vw, 30px);
    font-weight: 900;
}

.copy-ip-button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #1a0f08;
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
}

.copy-ip-button.copied {
    transform: scale(1.08);
}

.copy-status {
    color: var(--muted);
    font-size: 14px;
}

.minecraft-grid,
.mc-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.mc-card,
.mc-admin-panel {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 22px;
}

.mc-card-head h2,
.mc-admin-panel h2 {
    margin: 0 0 16px;
}

.mod-list,
.version-list,
.video-grid {
    display: grid;
    gap: 12px;
}

.mod-item,
.version-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 209, 102, 0.08);
    padding: 14px;
}

.mod-item {
    justify-content: flex-start;
    flex: 1;
}

.mod-admin-row,
.mc-admin-list-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.mod-admin-row form,
.mc-admin-list-row form {
    display: flex;
}

.mod-delete-button {
    min-height: 100%;
    padding: 0 16px;
}

.mod-icon {
    min-width: 54px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #4cc63f 0 38%, #7a4d26 38% 100%);
    color: #fff8ea;
    font-weight: 900;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.mod-item small,
.version-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.version-item b {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #1a0f08;
    padding: 9px 13px;
}

.empty-mini {
    display: grid;
    gap: 6px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 16px;
    color: var(--muted);
}

.video-section {
    margin-top: 18px;
}

.video-card {
    display: grid;
    gap: 10px;
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.28);
}

.mc-admin-panel {
    margin-top: 18px;
}

.mc-admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-dashboard {
    display: grid;
    gap: 20px;
}

.admin-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-title-row h1 {
    margin-bottom: 0;
}

.admin-logout-button {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #ff3b3b, #ff7a3d);
    color: #fff8ea;
    box-shadow: 0 14px 34px rgba(255, 59, 59, 0.22);
}

.admin-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 209, 102, 0.22), transparent 32%),
        var(--panel);
    box-shadow: var(--shadow);
    padding: 22px;
}

.admin-hero-card h2,
.admin-hero-card p {
    margin: 0;
}

.admin-hero-card p {
    margin-top: 8px;
    color: var(--muted);
}

.admin-hero-card strong {
    white-space: nowrap;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #1a0f08;
    padding: 12px 18px;
}

.admin-manage-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-user-list,
.admin-detail-panel {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 18px;
}

.admin-user-list {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 116px);
    overflow: auto;
}

.admin-user-list h2 {
    margin-bottom: 4px;
}

.admin-mini-user {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 209, 102, 0.07);
    padding: 12px;
}

.admin-mini-user.active {
    border-color: rgba(255, 209, 102, 0.72);
    background: rgba(255, 209, 102, 0.14);
}

.admin-mini-user.is-banned {
    border-color: rgba(255, 107, 107, 0.55);
}

.admin-mini-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-mini-main h3,
.admin-mini-main p {
    margin: 0;
}

.admin-mini-main p,
.admin-mini-meta {
    color: var(--muted);
}

.admin-mini-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #1a0f08;
    font-weight: 900;
}

.admin-mini-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.admin-view-button {
    width: 100%;
    min-height: 38px;
}

.admin-detail-panel {
    display: grid;
    gap: 18px;
}

.admin-minecraft-panel {
    display: grid;
    gap: 18px;
}

.admin-mc-forms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-mc-current {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.admin-mc-current section {
    display: grid;
    align-content: start;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 209, 102, 0.07);
    padding: 14px;
}

.admin-mc-current h3,
.admin-mc-current p {
    margin: 0;
}

.admin-mc-current p {
    color: var(--muted);
}

.admin-mc-current .mod-item,
.admin-mc-current .version-item {
    padding: 10px;
}

.admin-detail-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-detail-head h2,
.admin-detail-head p {
    margin: 0;
}

.admin-detail-head p:not(.eyebrow) {
    color: var(--muted);
}

.admin-detail-avatar {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 28px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #1a0f08;
    font-size: 38px;
    font-weight: 900;
}

.admin-detail-form {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.admin-post-section {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.admin-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-post-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 209, 102, 0.07);
    padding: 12px;
}

.admin-post-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.22);
}

.admin-post-form {
    display: grid;
    gap: 10px;
}

.admin-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-post-actions span {
    color: var(--muted);
    font-weight: 800;
}

.admin-user-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-user-card {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 18px;
}

.admin-user-card.is-banned {
    border-color: rgba(255, 107, 107, 0.6);
    background:
        linear-gradient(135deg, rgba(255, 107, 107, 0.12), transparent 42%),
        var(--panel);
}

.admin-user-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-user-head h2,
.admin-user-head p {
    margin: 0;
}

.admin-user-head p {
    color: var(--muted);
}

.admin-user-avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 22px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    color: #1a0f08;
    font-size: 28px;
    font-weight: 900;
}

.ban-badge {
    display: inline-flex;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(255, 107, 107, 0.18);
    color: var(--danger);
    padding: 6px 10px;
}

.admin-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-stats span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.08);
    color: var(--muted);
    padding: 8px 12px;
}

.admin-stats b {
    color: var(--text);
}

.admin-user-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.admin-actions form {
    display: inline-flex;
}

.danger-button {
    background: linear-gradient(135deg, #ff6b6b, #ff9f43);
    color: #1a0f08;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links.open {
        display: flex;
    }

    .hero,
    .discord-hero,
    .support-hero,
    .support-layout,
    .support-faq-grid,
    .social-hero,
    .insta-shell,
    .form-section,
    .grid-section,
    .discord-grid,
    .discord-steps,
    .discord-event-list,
    .guest-banner,
    .post-composer,
    .profile-header,
    .messages-layout,
    .dm-layout,
    .dm-page {
        grid-template-columns: 1fr;
    }

    .dm-messenger-panel {
        height: auto;
        min-height: 0;
        max-height: 520px;
    }

    .right-rail {
        position: static;
    }

    .insta-profile-head,
    .profile-settings,
    .minecraft-grid,
    .mc-admin-grid,
    .admin-manage-layout,
    .admin-mc-forms,
    .admin-mc-current,
    .admin-user-grid,
    .admin-user-form,
    .admin-post-grid {
        grid-template-columns: 1fr;
    }

    .vip-pricing-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-user-list {
        position: static;
        max-height: none;
    }

    .support-form {
        grid-template-columns: 1fr;
    }

    .profile-avatar-xl {
        justify-self: center;
    }

    .insta-profile-info {
        text-align: center;
    }

    .profile-title-row,
    .insta-stats {
        justify-content: center;
    }

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

    .login-strip {
        grid-template-columns: 1fr;
    }

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

    .split,
    .dm-chat-head,
    .dm-chat-title,
    .admin-title-row,
    .admin-hero-card,
    .footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .register-form,
    .login-form,
    .team-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: auto;
    }

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

    .vip-pricing-grid {
        grid-template-columns: 1fr;
    }

    .vip-pricing-grid-four {
        grid-template-columns: 1fr;
    }

    .mod-admin-row,
    .mc-admin-list-row {
        flex-direction: column;
    }

    .mod-delete-button {
        min-height: 42px;
        width: 100%;
    }

    .floating-dm {
        right: 14px;
        bottom: 14px;
    }

    .dm-page {
        width: calc(100% - 20px);
    }

    .dm-chat-window {
        min-height: 520px;
        padding: 14px;
    }

    .dm-bubble {
        max-width: 92%;
    }
}
