:root {
    --bg: #f4fbfb;
    --panel: rgba(255, 255, 255, 0.86);
    --panel-strong: #ffffff;
    --border: rgba(14, 99, 139, 0.14);
    --text: #0d2940;
    --muted: #5e7488;
    --green: #1fa145;
    --green-deep: #0d7d32;
    --blue: #1092d4;
    --blue-deep: #0b5396;
    --gold: #f1b100;
    --danger: #dc3b58;
    --success: #138d57;
    --shadow: 0 30px 70px rgba(8, 52, 89, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(31, 161, 69, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(16, 146, 212, 0.18), transparent 30%),
        linear-gradient(180deg, #f6fcfc 0%, #eef8fb 100%);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(31, 161, 69, 0.08), transparent 18%),
        radial-gradient(circle at 80% 24%, rgba(16, 146, 212, 0.08), transparent 18%),
        radial-gradient(circle at 28% 72%, rgba(15, 94, 165, 0.07), transparent 16%),
        radial-gradient(circle at 74% 78%, rgba(31, 161, 69, 0.06), transparent 15%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        url("../images/logo.png") 90px 120px / 110px 110px repeat,
        url("../images/logo.png") 260px 280px / 110px 110px repeat;
    opacity: 0.075;
    mix-blend-mode: multiply;
    filter: saturate(0.98) contrast(1.05);
    pointer-events: none;
    z-index: 0;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    position: relative;
}

.mesh {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 15%, rgba(31, 161, 69, 0.13), transparent 24%),
        radial-gradient(circle at 84% 20%, rgba(16, 146, 212, 0.12), transparent 25%),
        radial-gradient(circle at 50% 85%, rgba(241, 177, 0, 0.08), transparent 24%);
    z-index: 0;
}

.site-nav,
.app-topbar,
.layout,
.hero,
.content-wrap,
.auth-shell {
    position: relative;
    z-index: 1;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 6vw;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background:
        conic-gradient(from 190deg, var(--green-deep), var(--green), var(--blue), var(--blue-deep), var(--green-deep));
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.3), 0 18px 30px rgba(16, 146, 212, 0.2);
    position: relative;
}

.brand-mark::after {
    content: "$";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff9cf;
    font-size: 1.2rem;
    font-weight: 700;
}

.brand-logo-wrap {
    overflow: hidden;
}

.brand-logo-wrap::after {
    display: none;
}

.brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brand strong {
    display: block;
    font-size: 2rem;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #06233b;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-eyebrow {
    display: block;
    margin-top: 6px;
    font-size: 0.62rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: #708499;
}

.brand-home {
    gap: 16px;
}

.brand-home .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
}

.brand-home strong {
    font-size: 3.1rem;
    line-height: 0.86;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand strong.brand-title {
    background: linear-gradient(90deg, #1fa145 0%, #138f63 42%, #0d5ea5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    text-shadow: none;
}

.brand-home .brand-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.26em;
    margin-top: 4px;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-links a,
.sidebar-nav a,
.ghost-link {
    color: var(--muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.sidebar-nav a:hover,
.ghost-link:hover {
    color: var(--blue-deep);
    transform: translateY(-1px);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 38px;
    padding: 30px 6vw 64px;
    align-items: center;
}

.hero-single {
    grid-template-columns: minmax(0, 920px);
    justify-content: start;
}

.hero-copy h1,
.section-heading h2,
.auth-card h1,
.panel-heading h2 {
    margin: 0 0 16px;
    font-family: "Space Grotesk", sans-serif;
    line-height: 0.96;
}

.hero-copy h1 {
    font-size: clamp(3rem, 7vw, 6rem);
}

.gradient-text {
    background: linear-gradient(110deg, var(--green) 12%, var(--blue-deep) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.hero-actions,
.inline-actions,
.stat-grid,
.feature-grid,
.admin-grid,
.list-grid,
.form-grid,
.metrics-grid,
.quick-links {
    display: grid;
    gap: 18px;
}

.hero-actions {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 28px;
}

.button,
.button-outline,
.button-danger,
.button-ghost {
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button {
    color: #fff;
    background: linear-gradient(120deg, var(--green) 0%, var(--blue) 100%);
    box-shadow: 0 18px 30px rgba(16, 146, 212, 0.18);
}

.button-outline {
    background: rgba(255, 255, 255, 0.6);
    color: var(--blue-deep);
    border: 1px solid rgba(16, 146, 212, 0.22);
}

.button-danger {
    color: #fff;
    background: linear-gradient(120deg, #f2556d 0%, #d22d57 100%);
}

.button-ghost {
    background: transparent;
    padding: 0;
    color: var(--blue-deep);
}

.button:hover,
.button-outline:hover,
.button-danger:hover {
    transform: translateY(-2px);
}

.hero-card,
.card,
.metric-card,
.task-card,
.table-card,
.auth-card,
.feature-card,
.info-card,
.panel,
.welcome-banner {
    background: var(--panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius-xl);
}

.hero-card {
    padding: 28px;
    overflow: hidden;
}

.coin-stage {
    min-height: 460px;
    position: relative;
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(231, 247, 250, 0.95)),
        radial-gradient(circle at center, rgba(31, 161, 69, 0.12), transparent 54%);
}

.coin {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #fff5a8 0, #ffd44f 22%, #f4b101 60%, #ce8500 100%);
    position: relative;
    box-shadow: inset 0 8px 18px rgba(255, 255, 255, 0.35), 0 35px 60px rgba(195, 122, 0, 0.22);
}

.coin::before {
    content: "$";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff5b3;
    font-family: "Space Grotesk", sans-serif;
    font-size: 7rem;
    font-weight: 700;
}

.arc {
    position: absolute;
    border-radius: 999px;
    border: 22px solid transparent;
}

.arc-green {
    width: 310px;
    height: 220px;
    border-left-color: var(--green);
    border-bottom-color: #0d7d5a;
    transform: rotate(-18deg);
}

.arc-blue {
    width: 330px;
    height: 330px;
    border-right-color: var(--blue);
    border-top-color: var(--blue-deep);
    transform: rotate(22deg);
}

.metric-ribbon {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.metric-ribbon div,
.metric-card,
.info-card,
.feature-card,
.task-card,
.panel {
    padding: 20px;
}

.metric-ribbon strong,
.metric-card strong,
.value {
    display: block;
    font-size: 1.5rem;
    font-family: "Space Grotesk", sans-serif;
}

.section {
    padding: 24px 6vw 72px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 22px;
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(31, 161, 69, 0.22), rgba(16, 146, 212, 0.1));
}

.feature-card h3,
.card h3,
.panel-heading h2 {
    margin: 0 0 8px;
    font-family: "Space Grotesk", sans-serif;
}

.support-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.support-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-card p {
    margin: 0;
}

.support-action {
    margin-top: auto;
    padding-top: 10px;
}

.support-action .button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    text-align: center;
}

.support-email {
    margin-top: auto;
    padding-top: 10px;
    font-weight: 700;
    color: var(--blue-deep);
    word-break: break-word;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 18px;
}

.auth-card {
    width: min(100%, 520px);
    padding: 30px;
}

.auth-card-wide {
    width: min(100%, 1160px);
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    overflow: hidden;
}

.auth-visual {
    padding: 36px;
    background:
        linear-gradient(180deg, rgba(12, 84, 150, 0.97), rgba(15, 121, 86, 0.94)),
        linear-gradient(120deg, var(--blue), var(--green));
    color: #fff;
}

.auth-visual h2 {
    margin: 0 0 14px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
}

.auth-visual p,
.auth-visual li {
    color: rgba(255, 255, 255, 0.84);
}

.auth-form-wrap {
    padding: 32px;
    background: rgba(255, 255, 255, 0.96);
}

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

.field,
.field-full {
    display: grid;
    gap: 8px;
}

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

.password-field-wrap {
    position: relative;
}

.password-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.password-plain {
    padding-right: 54px;
    -webkit-text-security: disc;
}

.password-toggle:checked ~ .password-plain {
    -webkit-text-security: none;
}

.password-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: rgba(9, 51, 92, 0.7);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(16, 146, 212, 0.16);
    cursor: pointer;
    user-select: none;
}

.password-eye::before {
    content: "";
    width: 18px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 18px / 12px;
    display: block;
    box-sizing: border-box;
}

.password-eye::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.password-toggle:checked ~ .password-eye {
    color: var(--blue);
    background: rgba(16, 146, 212, 0.12);
    border-color: rgba(16, 146, 212, 0.3);
}

.password-toggle:checked ~ .password-eye::before {
    opacity: 0.7;
}

.password-toggle:checked ~ .password-eye::after {
    width: 7px;
    height: 2px;
    border-radius: 999px;
    transform: translate(-50%, -50%) rotate(-30deg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

label {
    font-size: 0.92rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(13, 84, 150, 0.14);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(245, 250, 252, 0.95);
    color: var(--text);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(16, 146, 212, 0.5);
    box-shadow: 0 0 0 4px rgba(16, 146, 212, 0.12);
}

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

.flash {
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-weight: 600;
}

.flash-success {
    background: rgba(19, 141, 87, 0.12);
    color: var(--success);
    border: 1px solid rgba(19, 141, 87, 0.22);
}

.flash-error {
    background: rgba(220, 59, 88, 0.09);
    color: var(--danger);
    border: 1px solid rgba(220, 59, 88, 0.18);
}

.layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
}

.nav-state {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sidebar-backdrop {
    display: none;
}

.sidebar {
    background: linear-gradient(180deg, #0d416e 0%, #0f7d64 100%);
    color: #fff;
    padding: 24px 22px;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 18px 0 30px rgba(13, 66, 110, 0.18);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-nav a {
    padding: 14px 16px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.82);
}

.sidebar-nav a.is-active,
.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: none;
}

.content-wrap {
    padding: 24px;
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

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

.welcome-banner {
    padding: 28px;
    margin-bottom: 24px;
    background:
        linear-gradient(135deg, rgba(12, 84, 150, 0.94), rgba(15, 121, 86, 0.94)),
        linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
}

.welcome-banner p,
.welcome-banner .muted {
    color: rgba(255, 255, 255, 0.82);
}

.is-locked {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

.join-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 21, 35, 0.45);
    backdrop-filter: blur(3px);
    z-index: 25;
}

.join-popup-card {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 960px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 80px rgba(5, 34, 56, 0.22);
    z-index: 30;
}

.join-popup-card h2 {
    margin: 12px 0;
    font-family: "Space Grotesk", sans-serif;
}

.join-popup-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 18px;
}

.join-channel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 110px;
    text-align: center;
}

.join-channel-card .button {
    width: 100%;
    max-width: 180px;
}

.proof-preview {
    margin: 12px 0 10px;
}

.proof-thumb {
    display: block;
    width: min(220px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(13, 84, 150, 0.14);
    box-shadow: 0 14px 28px rgba(5, 34, 56, 0.12);
    background: rgba(245, 250, 252, 0.95);
}

.metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.metric-card small,
.stat-caption {
    color: var(--muted);
    font-size: 0.9rem;
}

.metric-card.highlight {
    background:
        linear-gradient(135deg, rgba(31, 161, 69, 0.1), rgba(16, 146, 212, 0.12)),
        rgba(255, 255, 255, 0.88);
}

.badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.badge {
    background: rgba(241, 177, 0, 0.16);
    color: #9b6700;
}

.status-pill.pending {
    background: rgba(241, 177, 0, 0.15);
    color: #8d6905;
}

.status-pill.approved,
.status-pill.active {
    background: rgba(19, 141, 87, 0.12);
    color: var(--success);
}

.status-pill.rejected,
.status-pill.banned {
    background: rgba(220, 59, 88, 0.12);
    color: var(--danger);
}

.status-pill.suspended,
.status-pill.inactive {
    background: rgba(13, 41, 64, 0.08);
    color: var(--text);
}

.stat-grid,
.quick-links {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.task-grid,
.admin-grid,
.list-grid {
    display: grid;
    gap: 20px;
}

.task-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.info-row,
.table-actions,
.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.table-card {
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(13, 84, 150, 0.08);
    vertical-align: top;
}

th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

tr:last-child td {
    border-bottom: 0;
}

.empty-state {
    padding: 26px;
    text-align: center;
    color: var(--muted);
}

.copy-box {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(245, 250, 252, 0.95);
    border: 1px solid rgba(13, 84, 150, 0.1);
    border-radius: 18px;
    padding: 10px;
}

.copy-box input {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 10px;
}

.copy-button {
    white-space: nowrap;
    padding: 12px 18px;
}

.sidebar-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(13, 84, 150, 0.12);
    background: rgba(255, 255, 255, 0.75);
    color: var(--blue-deep);
    cursor: pointer;
}

.footer-note {
    color: var(--muted);
    text-align: center;
    padding: 18px;
}

@media (max-width: 1080px) {
    .hero,
    .auth-card-wide {
        grid-template-columns: 1fr;
    }

    .metric-ribbon {
        position: static;
        margin-top: 26px;
    }
}

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

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 280px;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        z-index: 20;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(3, 21, 34, 0.34);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 15;
    }

    .nav-state:checked ~ .layout .sidebar {
        transform: translateX(0);
    }

    .nav-state:checked ~ .layout .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-toggle {
        display: inline-grid;
        place-items: center;
    }
}

@media (max-width: 720px) {
    .site-nav {
        flex-wrap: wrap;
        padding: 18px;
        align-items: stretch;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .nav-actions .button,
    .nav-actions .ghost-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .brand-home {
        gap: 12px;
    }

    .brand-home .brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        flex-shrink: 0;
    }

    .brand-home strong,
    .brand strong {
        font-size: 2rem;
        line-height: 0.92;
    }

    .brand-eyebrow,
    .brand-home .brand-eyebrow {
        font-size: 0.52rem;
        letter-spacing: 0.18em;
    }

    .hero-copy h1 {
        line-height: 1.02;
        font-size: clamp(2.4rem, 12vw, 3.6rem);
    }

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

    .hero-actions .button,
    .hero-actions .button-outline {
        width: 100%;
        text-align: center;
    }

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

    .content-wrap,
    .section,
    .hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero {
        gap: 24px;
        padding-top: 20px;
        padding-bottom: 42px;
    }

    .auth-shell {
        padding: 18px 12px;
    }

    .auth-card,
    .auth-form-wrap,
    .auth-visual {
        padding: 22px 18px;
    }

    .app-topbar,
    .panel-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .join-popup-card {
        width: min(94vw, 94vw);
        max-height: calc(100vh - 24px);
        padding: 20px 16px;
        border-radius: 22px;
    }

    .join-popup-grid {
        grid-template-columns: 1fr;
    }

    .join-channel-card {
        min-height: 86px;
        padding: 16px;
    }

    .join-channel-card .button,
    .button,
    .button-outline,
    .button-danger {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .copy-box {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-box input {
        width: 100%;
        min-width: 0;
        padding: 6px 4px;
        word-break: break-all;
    }

    .copy-button {
        width: 100%;
    }

    .support-action .button-outline {
        min-width: 0;
        width: 100%;
    }

    .table-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 640px;
    }

    th,
    td {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .site-nav,
    .content-wrap,
    .section,
    .hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .nav-actions {
        grid-template-columns: 1fr;
    }

    .brand-home strong,
    .brand strong {
        font-size: 1.72rem;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .metric-card,
    .panel,
    .feature-card,
    .info-card,
    .task-card,
    .welcome-banner {
        padding: 16px;
    }

    .badge,
    .status-pill {
        font-size: 0.74rem;
        padding: 7px 10px;
    }

    .sidebar {
        width: min(84vw, 280px);
    }
}
