:root {
    --app-bg: #080b10;
    --app-surface: #11161e;
    --app-surface-2: #181f29;
    --app-paper: #ffffff;
    --app-paper-soft: #f4f7fb;
    --app-text: #f8fafc;
    --app-ink: #101828;
    --app-muted: #94a3b8;
    --app-line: rgba(148, 163, 184, 0.22);
    --app-blue: #1570ef;
    --app-cyan: #06b6d4;
    --app-coral: #ff4d67;
    --app-lime: #9be15d;
    --app-yellow: #fdb022;
    --app-green: #12b76a;
    --nav-width: 244px;
    --mobile-nav-height: 68px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--app-bg);
}

body.social-mobile-app,
body.admin-social-body {
    margin: 0;
    background: var(--app-bg);
    color: var(--app-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

button,
input,
textarea,
select {
    font: inherit;
    letter-spacing: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    cursor: pointer;
}

svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

[hidden] {
    display: none !important;
}

.app-layout {
    min-height: 100dvh;
}

.desktop-app-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: var(--nav-width);
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    border-right: 1px solid var(--app-line);
    background: #0b0f15;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 24px;
    font-size: 15px;
    font-weight: 900;
}

.app-brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--app-blue);
    color: #fff;
    font-size: 13px;
}

.desktop-nav-links {
    display: grid;
    gap: 4px;
}

.desktop-nav-links a,
.desktop-nav-bottom a {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 13px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
}

.desktop-nav-links a:hover,
.desktop-nav-links a.active,
.desktop-nav-bottom a:hover {
    background: var(--app-surface-2);
    color: #fff;
}

.desktop-nav-links a.active svg {
    color: var(--app-cyan);
}

.desktop-nav-links a b {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    margin-left: auto;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--app-coral);
    color: #fff;
    font-size: 10px;
}

.desktop-create-button {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
    border-radius: 8px;
    background: var(--app-blue);
    color: #fff;
    font-weight: 900;
}

.desktop-create-button:hover {
    background: #175cd3;
}

.desktop-nav-bottom {
    display: grid;
    gap: 3px;
    margin-top: auto;
}

.app-main {
    min-height: 100dvh;
    margin-left: var(--nav-width);
}

.mobile-bottom-nav {
    display: none;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 40px;
    padding: 0;
    border: 1px solid var(--app-line);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
}

.icon-button:hover {
    background: var(--app-surface-2);
}

.primary-command,
.secondary-command,
.text-command,
.back-command,
.table-command {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
}

.primary-command {
    min-height: 44px;
    padding: 0 18px;
    background: var(--app-blue);
    color: #fff;
}

.primary-command:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.secondary-command {
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: var(--app-ink);
}

.text-command {
    justify-content: flex-start;
    color: var(--app-cyan);
    font-size: 13px;
}

.eyebrow {
    color: var(--app-cyan);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

/* Reels */
.reels-app-main {
    overflow: hidden;
    background: #05070a;
}

.reels-page-layout {
    width: min(100%, 1040px);
    height: 100dvh;
    display: grid;
    grid-template-columns: minmax(360px, 570px) 300px;
    gap: 24px;
    margin: 0 auto;
    padding: 0 18px;
}

.reels-viewport {
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.reels-viewport::-webkit-scrollbar {
    display: none;
}

.reel-slide {
    position: relative;
    height: 100dvh;
    display: grid;
    place-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.reel-media-shell {
    position: relative;
    width: min(100%, 480px);
    height: min(94dvh, 850px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.reel-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.reel-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 25%, transparent 55%, rgba(0, 0, 0, 0.82));
}

.reel-topbar {
    position: absolute;
    inset: 0 0 auto;
    z-index: 5;
    min-height: 64px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 15px;
}

.reel-brand-mobile {
    font-size: 12px;
    font-weight: 900;
}

.reel-feed-tabs {
    display: flex;
    align-items: center;
    gap: 18px;
}

.reel-feed-tabs a {
    position: relative;
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    font-weight: 800;
}

.reel-feed-tabs a.active {
    color: #fff;
}

.reel-feed-tabs a.active::after {
    content: "";
    position: absolute;
    right: 20%;
    bottom: 2px;
    left: 20%;
    height: 3px;
    border-radius: 2px;
    background: var(--app-cyan);
}

.reel-activity-link {
    position: relative;
    justify-self: end;
    display: grid;
    place-items: center;
}

.reel-activity-link b {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--app-coral);
    font-size: 9px;
}

.reel-caption-zone {
    position: absolute;
    right: 86px;
    bottom: 23px;
    left: 16px;
    z-index: 5;
    color: #fff;
}

.creator-line {
    display: flex;
    align-items: center;
    gap: 9px;
}

.creator-name {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 900;
}

.creator-name svg {
    width: 16px;
    color: var(--app-cyan);
}

.follow-pill {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.follow-pill.active {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.17);
}

.reel-caption-zone p {
    max-width: 430px;
    margin: 9px 0 7px;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.45;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.audio-credit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
}

.audio-credit svg {
    width: 15px;
}

.reel-action-rail {
    position: absolute;
    right: 10px;
    bottom: 18px;
    z-index: 6;
    display: grid;
    justify-items: center;
    gap: 13px;
}

.creator-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--app-blue);
    font-size: 15px;
    font-weight: 900;
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-action {
    width: 60px;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
}

.reel-action svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.reel-action span {
    max-width: 58px;
    overflow: hidden;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
}

.reel-action.like-active svg {
    fill: var(--app-coral);
    color: var(--app-coral);
}

.reel-action.save-active svg {
    fill: var(--app-yellow);
    color: var(--app-yellow);
}

.reel-action.danger {
    color: #fecaca;
}

.reel-pause-zone {
    position: absolute;
    inset: 70px 75px 120px 0;
    z-index: 3;
    padding: 0;
    border: 0;
    background: transparent;
}

.reel-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: 160ms ease;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    pointer-events: none;
}

.reel-slide.paused .reel-play-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.reel-comments-drawer {
    position: absolute;
    inset: 3dvh 0 3dvh auto;
    z-index: 20;
    width: min(430px, 88%);
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 8px 0 0 8px;
    background: #fff;
    color: var(--app-ink);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.36);
    transform: translateX(105%);
    transition: transform 220ms ease;
}

.reel-comments-drawer.open {
    transform: translateX(0);
}

.reel-comments-drawer > header {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #eaecf0;
}

.reel-comments-drawer > header div {
    display: grid;
    gap: 2px;
}

.reel-comments-drawer > header span {
    color: #667085;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
}

.reel-comments-drawer .icon-button {
    border-color: #e4e7ec;
    background: #f2f4f7;
    color: var(--app-ink);
}

.reel-comments-list {
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 15px;
}

.reel-comment {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    margin-bottom: 16px;
}

.mini-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--app-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.reel-comment strong {
    font-size: 12px;
}

.reel-comment p {
    margin: 3px 0 4px;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.4;
}

.comment-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.comment-tools button {
    padding: 0;
    border: 0;
    background: none;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.comment-tools button.danger {
    color: #d92d20;
}

.reel-comment-replies {
    margin-top: 12px;
    padding-left: 10px;
    border-left: 2px solid #eaecf0;
}

.reel-comment.reply {
    grid-template-columns: 28px minmax(0, 1fr);
}

.reel-comment.reply .mini-avatar {
    width: 28px;
    height: 28px;
    font-size: 9px;
}

.reel-comment-form {
    display: grid;
    grid-template-columns: 1fr 40px;
    gap: 8px;
    padding: 11px;
    border-top: 1px solid #eaecf0;
    background: #fff;
}

.reel-comment-form input {
    min-width: 0;
    height: 40px;
    padding: 0 13px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
}

.reel-comment-form button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--app-blue);
    color: #fff;
}

.comments-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 50px 20px;
    color: #667085;
    text-align: center;
}

.reels-side-panel {
    align-self: center;
    padding: 20px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: var(--app-surface);
}

.reels-side-panel h2 {
    margin: 3px 0 18px;
    font-size: 19px;
}

.suggested-list {
    display: grid;
    gap: 13px;
}

.suggested-user {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.suggested-user > a:nth-child(2) {
    min-width: 0;
    display: grid;
}

.suggested-user strong,
.suggested-user span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.suggested-user strong {
    font-size: 12px;
}

.suggested-user span {
    color: var(--app-muted);
    font-size: 10px;
}

.follow-small {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    color: var(--app-cyan);
}

.safety-note,
.creator-safety-copy,
.giveaway-rules {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.07);
    color: #cbd5e1;
}

.safety-note svg,
.creator-safety-copy svg,
.giveaway-rules svg {
    flex: 0 0 19px;
    color: var(--app-cyan);
}

.safety-note p,
.creator-safety-copy p,
.giveaway-rules p {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
}

.reels-empty-state {
    align-self: center;
    justify-self: center;
    width: min(100%, 480px);
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 42px 28px;
    text-align: center;
}

.reels-empty-state h1 {
    margin: 0;
    font-size: 28px;
}

.reels-empty-state p {
    margin: 0 0 12px;
    color: var(--app-muted);
}

.empty-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--app-surface-2);
    color: var(--app-cyan);
}

.empty-icon svg {
    width: 30px;
    height: 30px;
}

/* Standard pages */
.standard-app-main {
    min-height: 100dvh;
    background: #eef2f7;
    color: var(--app-ink);
}

.standard-page,
.profile-page,
.giveaway-detail {
    width: min(100% - 36px, 1020px);
    margin: 0 auto;
    padding: 34px 0 100px;
}

.standard-page-header,
.giveaways-header,
.section-heading,
.wallet-history-section > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.standard-page-header h1,
.giveaways-header h1,
.profile-name-row h1,
.giveaway-detail-copy h1 {
    margin: 4px 0 5px;
    color: var(--app-ink);
    font-size: 30px;
    line-height: 1.12;
}

.standard-page-header p,
.giveaways-header p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.app-search {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 8px 8px 8px 15px;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    background: #fff;
}

.app-search svg {
    color: #667085;
}

.app-search input {
    min-width: 0;
    height: 40px;
    border: 0;
    outline: none;
    color: var(--app-ink);
}

.app-search button {
    height: 40px;
    padding: 0 17px;
    border: 0;
    border-radius: 8px;
    background: var(--app-blue);
    color: #fff;
    font-weight: 800;
}

.people-discovery,
.explore-reels-section {
    margin-top: 28px;
}

.section-heading {
    align-items: center;
    margin-bottom: 13px;
}

.section-heading h2 {
    margin: 2px 0 0;
    font-size: 20px;
}

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

.person-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
}

.person-row .mini-avatar {
    width: 44px;
    height: 44px;
    overflow: hidden;
}

.person-row .mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-copy {
    min-width: 0;
    display: grid;
}

.person-copy strong,
.person-copy span,
.person-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-copy strong {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.person-copy strong svg {
    width: 14px;
    color: var(--app-blue);
}

.person-copy span,
.person-copy small {
    color: #667085;
    font-size: 11px;
}

.person-row .follow-pill {
    border-color: #b2ccff;
    background: #eff4ff;
    color: var(--app-blue);
}

.explore-page-header {
    align-items: center;
}

.nearby-command {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 0 14px;
    border: 1px solid #a5f3fc;
    border-radius: 8px;
    background: #ecfeff;
    color: #0e7490;
    font-size: 13px;
    font-weight: 900;
}

.nearby-command svg {
    width: 18px;
}

.explore-search-panel {
    overflow: hidden;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    background: #fff;
}

.explore-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
    gap: 10px;
    padding: 12px;
}

.explore-search-form .app-search {
    border-color: #cfd8e5;
}

.province-filter {
    min-width: 0;
    display: grid;
    grid-template-columns: 20px auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid #cfd8e5;
    border-radius: 8px;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
}

.province-filter svg {
    width: 18px;
    color: #0891b2;
}

.province-filter select {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--app-ink);
    font: inherit;
}

.discovery-type-tabs {
    display: flex;
    gap: 6px;
    padding: 0 12px 12px;
}

.discovery-type-tabs a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f8fafc;
    color: #475467;
    font-size: 12px;
    font-weight: 900;
}

.discovery-type-tabs a.active {
    border-color: var(--app-blue);
    background: var(--app-blue);
    color: #fff;
}

.discovery-type-tabs svg {
    width: 17px;
}

.result-count {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.person-location {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #087d98 !important;
}

.person-location svg {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
}

.explore-reels-grid {
    gap: 7px;
}

.page-empty {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 60px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #667085;
    text-align: center;
}

.page-empty.compact {
    padding: 28px;
}

.page-empty svg {
    width: 34px;
    height: 34px;
    color: var(--app-blue);
}

.page-empty h2,
.page-empty p {
    margin: 0;
}

/* Create */
.create-reel-layout {
    width: min(100% - 36px, 980px);
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(340px, 1fr);
    align-items: center;
    gap: 34px;
    margin: 0 auto;
    padding: 34px 0 100px;
}

.media-preview-stage {
    position: sticky;
    top: 24px;
    width: min(100%, 400px);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 1px solid #26303d;
    border-radius: 8px;
    background: #090d13;
    color: #fff;
}

.media-preview-stage video,
.media-preview-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview-empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    color: var(--app-muted);
}

.media-preview-empty svg {
    width: 38px;
    height: 38px;
    color: var(--app-cyan);
}

.create-reel-form,
.profile-edit-panel,
.admin-form-card {
    display: grid;
    gap: 16px;
    padding: 26px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
}

.create-reel-form header h1 {
    margin: 4px 0 7px;
    font-size: 27px;
}

.create-reel-form header p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.create-reel-form label,
.profile-edit-panel label,
.admin-form-card label,
.report-dialog-card label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.create-reel-form input,
.create-reel-form textarea,
.create-reel-form select,
.profile-edit-panel input,
.profile-edit-panel textarea,
.profile-edit-panel select,
.admin-form-card input,
.admin-form-card textarea,
.admin-form-card select,
.report-dialog-card textarea,
.report-dialog-card select {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--app-ink);
}

.create-reel-form input:focus,
.create-reel-form textarea:focus,
.create-reel-form select:focus,
.profile-edit-panel input:focus,
.profile-edit-panel textarea:focus,
.profile-edit-panel select:focus,
.admin-form-card input:focus,
.admin-form-card textarea:focus,
.admin-form-card select:focus {
    border-color: var(--app-blue);
    box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.12);
}

.upload-dropzone {
    min-height: 132px;
    place-content: center;
    justify-items: center;
    border: 1px dashed #98a2b3 !important;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
}

.upload-dropzone svg {
    color: var(--app-blue);
}

.upload-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.upload-dropzone span {
    color: #667085;
    font-size: 11px;
    font-weight: 500;
}

.creator-safety-copy,
.giveaway-rules {
    border-color: #b2ddff;
    background: #eff8ff;
    color: #344054;
}

.publish-reel-command {
    width: 100%;
}

/* Profile */
.profile-page {
    padding-top: 24px;
}

.profile-cover {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    background: #15202d;
}

.profile-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 11, 16, 0.68), transparent 60%);
}

.profile-report,
.profile-back {
    position: absolute;
    top: 14px;
}

.profile-report {
    right: 14px;
}

.profile-back {
    left: 14px;
}

.profile-identity {
    position: relative;
    margin: -58px 24px 0;
    padding: 0 0 24px 154px;
}

.profile-avatar-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 128px;
    height: 128px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 5px solid #eef2f7;
    border-radius: 50%;
    background: var(--app-blue);
    color: #fff;
    font-size: 35px;
    font-weight: 900;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name-row {
    min-height: 70px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-top: 10px;
}

.profile-name-row h1 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.profile-name-row h1 svg {
    color: var(--app-blue);
}

.profile-name-row span {
    color: #667085;
}

.profile-commands {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-commands .following {
    background: #d1fadf;
    color: #05603a;
}

.profile-commands .icon-button {
    border-color: #d0d5dd;
    background: #fff;
    color: var(--app-ink);
}

.mobile-profile-actions {
    display: none;
}

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 18px;
}

.profile-stats div {
    display: grid;
    gap: 2px;
}

.profile-stats strong {
    font-size: 18px;
}

.profile-stats span {
    color: #667085;
    font-size: 11px;
}

.profile-bio {
    max-width: 650px;
    margin: 18px 0 7px;
    line-height: 1.5;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #667085;
    font-size: 12px;
}

.profile-location svg {
    width: 15px;
}

.profile-edit-panel {
    margin: 12px 0 26px;
}

.profile-edit-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-edit-panel h2 {
    margin: 3px 0 0;
}

.profile-edit-panel .icon-button {
    border-color: #d0d5dd;
    background: #f2f4f7;
    color: var(--app-ink);
}

.form-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.toggle-row {
    grid-template-columns: 20px 1fr !important;
    align-items: center;
}

.toggle-row input {
    width: 18px;
    height: 18px;
    padding: 0;
}

.profile-content-tabs {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    padding: 9px 0;
    border-top: 1px solid #d9e0e8;
}

.profile-content-tabs button,
.profile-content-tabs a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #667085;
    font-weight: 800;
}

.profile-content-tabs .active {
    background: #fff;
    color: var(--app-blue);
}

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

.profile-reel-tile {
    position: relative;
    aspect-ratio: 9 / 13;
    overflow: hidden;
    border-radius: 5px;
    background: #101828;
}

.profile-reel-tile img,
.profile-reel-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-reel-tile > svg {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    filter: drop-shadow(0 1px 3px #000);
}

.profile-reel-tile > span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-shadow: 0 1px 3px #000;
}

.profile-reel-tile > span svg {
    width: 14px;
}

.wallet-history-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
}

.wallet-history-section > header h2 {
    margin: 3px 0 0;
    font-size: 20px;
}

.wallet-history-section > header > strong {
    color: var(--app-blue);
}

.wallet-movement {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-top: 1px solid #eaecf0;
}

.movement-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.movement-icon.credit {
    background: #d1fadf;
    color: #027a48;
}

.movement-icon.debit {
    background: #fee4e2;
    color: #d92d20;
}

.wallet-movement > div {
    display: grid;
}

.wallet-movement span {
    color: #667085;
    font-size: 11px;
}

.wallet-movement > b.credit {
    color: #027a48;
}

.wallet-movement > b.debit {
    color: #d92d20;
}

/* Activity */
.activity-list {
    overflow: hidden;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
}

.activity-item {
    display: grid;
    grid-template-columns: 44px 1fr 20px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eaecf0;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-item.unread {
    background: #f0f9ff;
}

.activity-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eff4ff;
    color: var(--app-blue);
}

.activity-icon.type-giveaway_winner {
    background: #fef0c7;
    color: #b54708;
}

.activity-item > div {
    display: grid;
    gap: 3px;
}

.activity-item strong {
    font-size: 13px;
}

.activity-item span {
    color: #667085;
    font-size: 11px;
}

/* Giveaways */
.giveaways-header {
    align-items: center;
}

.coin-balance {
    min-width: 150px;
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 10px;
    padding: 13px;
    border: 1px solid #fedf89;
    border-radius: 8px;
    background: #fffaeb;
}

.coin-balance svg {
    grid-row: span 2;
    align-self: center;
    color: #dc6803;
}

.coin-balance span {
    color: #7a2e0e;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
}

.coin-balance strong {
    font-size: 21px;
}

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

.giveaway-card {
    overflow: hidden;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
}

.giveaway-media {
    position: relative;
    height: 220px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #101828;
}

.giveaway-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.giveaway-media > span svg {
    width: 46px;
    height: 46px;
    color: var(--app-yellow);
}

.giveaway-media > b {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 6px;
    background: var(--app-lime);
    color: #173806;
    font-size: 10px;
    text-transform: uppercase;
}

.giveaway-card.drawn .giveaway-media > b {
    background: #e4e7ec;
    color: #344054;
}

.giveaway-copy {
    padding: 17px;
}

.giveaway-copy h2 {
    margin: 4px 0;
    font-size: 20px;
}

.giveaway-copy > strong {
    color: #344054;
    font-size: 13px;
}

.giveaway-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0;
}

.giveaway-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #667085;
    font-size: 11px;
}

.giveaway-meta svg {
    width: 15px;
}

.winner-chip,
.entered-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.winner-chip {
    background: #fef0c7;
    color: #93370d;
}

.entered-chip {
    background: #d1fadf;
    color: #05603a;
}

.giveaway-detail {
    padding-top: 28px;
}

.back-command {
    justify-content: flex-start;
    margin-bottom: 16px;
    color: #475467;
    font-size: 12px;
}

.giveaway-detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(340px, 1fr);
    overflow: hidden;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
}

.giveaway-detail-media {
    min-height: 520px;
    display: grid;
    place-items: center;
    background: #101828;
}

.giveaway-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.giveaway-detail-media > span svg {
    width: 64px;
    height: 64px;
    color: var(--app-yellow);
}

.giveaway-detail-copy {
    padding: 32px;
}

.giveaway-detail-copy > p {
    color: #475467;
    line-height: 1.55;
}

.prize-line {
    display: grid;
    gap: 3px;
    padding: 12px 0;
    border-bottom: 1px solid #eaecf0;
}

.prize-line span {
    color: #667085;
    font-size: 11px;
    text-transform: uppercase;
}

.prize-line strong {
    font-size: 17px;
}

.giveaway-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 20px 0;
}

.giveaway-facts > div {
    display: grid;
    grid-template-columns: 28px 1fr;
    padding: 10px;
    border-radius: 8px;
    background: #f5f7fa;
}

.giveaway-facts svg {
    grid-row: span 2;
    align-self: center;
    color: var(--app-blue);
}

.giveaway-facts span {
    color: #667085;
    font-size: 10px;
}

.giveaway-facts strong {
    font-size: 12px;
}

.giveaway-enter-command {
    width: 100%;
}

.giveaway-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #fedf89;
    border-radius: 8px;
    background: #fffaeb;
    color: #7a2e0e;
}

.giveaway-result.entered {
    border-color: #a6f4c5;
    background: #ecfdf3;
    color: #05603a;
}

.giveaway-result > div {
    display: grid;
}

.giveaway-result small {
    margin-top: 3px;
}

/* Modal and toast */
.report-dialog {
    width: min(92vw, 460px);
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: var(--app-ink);
}

.report-dialog::backdrop {
    background: rgba(2, 6, 12, 0.72);
    backdrop-filter: blur(5px);
}

.report-dialog-card {
    display: grid;
    gap: 15px;
    padding: 22px;
}

.report-dialog-card header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.report-dialog-card h2 {
    margin: 3px 0 0;
}

.report-dialog-card .icon-button {
    border-color: #d0d5dd;
    background: #f2f4f7;
    color: var(--app-ink);
}

.app-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100;
    max-width: min(90vw, 430px);
    padding: 11px 15px;
    border-radius: 8px;
    opacity: 0;
    transform: translate(-50%, 20px);
    transition: 180ms ease;
    background: #fff;
    color: var(--app-ink);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    font-size: 13px;
    font-weight: 700;
}

.app-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.app-toast.error {
    background: #fee4e2;
    color: #912018;
}

.page-topbar,
.mobile-only {
    display: none;
}

/* Admin */
.admin-social-body {
    min-height: 100vh;
    background: #eef2f7;
    color: var(--app-ink);
}

.admin-social-nav {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 max(24px, calc((100vw - 1180px) / 2));
    background: #0b0f15;
    color: #fff;
}

.admin-social-nav > a {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 900;
}

.admin-social-nav > a span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--app-blue);
    font-size: 11px;
}

.admin-social-nav > div {
    display: flex;
    gap: 8px;
}

.admin-social-nav > div a {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.admin-social-main {
    width: min(100% - 36px, 1180px);
    margin: 0 auto;
    padding: 34px 0 80px;
}

.admin-social-main.narrow {
    max-width: 780px;
}

.admin-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-hero h1 {
    margin: 4px 0 6px;
    font-size: 30px;
}

.admin-hero p {
    margin: 0;
    color: #667085;
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.admin-metric-grid article {
    display: grid;
    grid-template-columns: 36px 1fr;
    padding: 18px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
}

.admin-metric-grid article > svg {
    grid-row: span 3;
    align-self: start;
    color: var(--app-blue);
}

.admin-metric-grid article.alert > svg {
    color: var(--app-coral);
}

.admin-metric-grid span,
.admin-metric-grid small {
    color: #667085;
}

.admin-metric-grid strong {
    font-size: 28px;
}

.admin-command-grid {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.admin-command-grid > a {
    display: grid;
    grid-template-columns: 42px 1fr 24px;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
}

.admin-command-grid > a > svg:first-child {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 8px;
    background: #eff4ff;
    color: var(--app-blue);
}

.admin-command-grid > a div {
    display: grid;
    gap: 3px;
}

.admin-command-grid span {
    color: #667085;
    font-size: 12px;
}

.admin-table-shell {
    overflow-x: auto;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
}

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

.admin-table th,
.admin-table td {
    padding: 13px;
    border-bottom: 1px solid #eaecf0;
    text-align: left;
    font-size: 12px;
}

.admin-table th {
    color: #667085;
    font-size: 10px;
    text-transform: uppercase;
}

.admin-table td:first-child {
    display: grid;
    gap: 3px;
}

.admin-table td:first-child span {
    color: #667085;
}

.status-badge {
    display: inline-block;
    padding: 5px 7px;
    border-radius: 6px;
    background: #f2f4f7;
    font-size: 10px;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d1fadf;
    color: #05603a;
}

.status-badge.drawn {
    background: #fef0c7;
    color: #93370d;
}

.table-command {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: var(--app-ink);
    font-size: 11px;
}

.table-command.danger {
    border-color: #fecdca;
    color: #d92d20;
}

.empty-table {
    padding: 40px !important;
    color: #667085;
    text-align: center !important;
}

.admin-form-card {
    max-width: 760px;
}

.admin-filter-tabs {
    display: flex;
    gap: 4px;
}

.admin-filter-tabs a {
    padding: 9px 11px;
    border-radius: 7px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.admin-filter-tabs a.active {
    background: #fff;
    color: var(--app-blue);
}

.report-admin-list {
    display: grid;
    gap: 10px;
}

.report-admin-item {
    display: grid;
    grid-template-columns: 145px 1fr auto;
    gap: 16px;
    padding: 16px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
}

.report-type {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #d92d20;
    font-size: 12px;
    font-weight: 800;
}

.report-admin-item p {
    margin: 5px 0;
    color: #475467;
}

.report-admin-item small {
    color: #667085;
}

.report-admin-item form {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 1120px) {
    :root {
        --nav-width: 86px;
    }

    .app-brand > span:last-child,
    .desktop-nav-links a span,
    .desktop-create-button span,
    .desktop-nav-bottom a span {
        display: none;
    }

    .app-brand,
    .desktop-nav-links a,
    .desktop-nav-bottom a {
        justify-content: center;
    }

    .desktop-nav-links a b {
        position: absolute;
        margin: 0 0 25px 25px;
    }

    .reels-page-layout {
        grid-template-columns: minmax(360px, 580px);
        justify-content: center;
    }

    .reels-side-panel {
        display: none;
    }
}

@media (max-width: 760px) {
    .desktop-app-nav {
        display: none;
    }

    .app-main {
        margin-left: 0;
        padding-bottom: var(--mobile-nav-height);
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 60;
        height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: start;
        padding: 7px 8px env(safe-area-inset-bottom);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(8, 11, 16, 0.97);
        color: #94a3b8;
        backdrop-filter: blur(16px);
    }

    .mobile-bottom-nav a {
        min-width: 0;
        display: grid;
        justify-items: center;
        gap: 2px;
        font-size: 9px;
        font-weight: 800;
    }

    .mobile-bottom-nav a.active {
        color: #fff;
    }

    .mobile-bottom-nav svg {
        width: 22px;
        height: 22px;
    }

    .mobile-bottom-nav .mobile-create {
        width: 46px;
        height: 34px;
        place-self: 0 center;
        place-items: center;
        border-radius: 8px;
        background: linear-gradient(90deg, var(--app-cyan) 0 48%, #fff 48% 52%, var(--app-coral) 52%);
        color: #080b10;
    }

    .mobile-bottom-nav .mobile-create svg {
        width: 26px;
        height: 26px;
        padding: 4px;
        border-radius: 6px;
        background: #fff;
    }

    .reels-app-main {
        padding-bottom: var(--mobile-nav-height);
    }

    .reels-page-layout {
        width: 100%;
        height: calc(100dvh - var(--mobile-nav-height));
        display: block;
        padding: 0;
    }

    .reels-viewport,
    .reel-slide {
        height: calc(100dvh - var(--mobile-nav-height));
    }

    .reel-media-shell {
        width: 100vw;
        height: calc(100dvh - var(--mobile-nav-height));
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .reel-brand-mobile {
        visibility: hidden;
    }

    .reel-comments-drawer {
        inset: auto 0 0;
        width: 100%;
        height: min(68dvh, 620px);
        border-radius: 8px 8px 0 0;
        transform: translateY(105%);
    }

    .reel-comments-drawer > header {
        position: relative;
        padding-top: 20px;
        touch-action: none;
    }

    .reel-comments-drawer > header::before {
        position: absolute;
        top: 7px;
        left: 50%;
        width: 42px;
        height: 4px;
        border-radius: 4px;
        background: #cbd5e1;
        content: "";
        transform: translateX(-50%);
    }

    body.comments-active .reels-viewport {
        overflow-y: hidden;
        touch-action: none;
    }

    body.comments-active .reel-comments-list,
    body.comments-active .reel-comment-form {
        touch-action: pan-y;
    }

    .reel-comments-drawer.open {
        transform: translateY(0);
    }

    .reel-action-rail {
        bottom: 16px;
    }

    .standard-app-main {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }

    .standard-page,
    .profile-page,
    .giveaway-detail {
        width: min(100% - 24px, 1020px);
        padding-top: 18px;
    }

    .page-topbar,
    .mobile-only {
        display: flex;
    }

    .page-topbar {
        min-height: 56px;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        background: #fff;
        color: var(--app-ink);
    }

    .page-topbar .icon-button {
        border-color: #e4e7ec;
        background: #f2f4f7;
        color: var(--app-ink);
    }

    .create-reel-layout {
        width: 100%;
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 0 90px;
    }

    .media-preview-stage {
        position: relative;
        top: 0;
        width: 100%;
        max-height: 62dvh;
        border: 0;
        border-radius: 0;
    }

    .create-reel-form {
        padding: 20px 14px;
        border: 0;
        border-radius: 0;
    }

    .profile-cover {
        height: 190px;
    }

    .profile-identity {
        margin: -43px 12px 0;
        padding: 0 0 20px 104px;
    }

    .profile-avatar-large {
        width: 90px;
        height: 90px;
        border-width: 4px;
        font-size: 25px;
    }

    .profile-name-row {
        min-height: 53px;
        align-items: flex-end;
    }

    .profile-name-row h1 {
        max-width: 150px;
        overflow: hidden;
        font-size: 19px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-name-row .secondary-command,
    .profile-commands .primary-command {
        min-height: 36px;
        padding: 0 11px;
        font-size: 11px;
    }

    .profile-stats {
        gap: 15px;
        margin: 22px 0 0 -104px;
    }

    .profile-bio,
    .profile-location {
        margin-left: -104px;
    }

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

    .people-grid,
    .giveaway-grid,
    .giveaway-detail-grid {
        grid-template-columns: 1fr;
    }

    .standard-page-header,
    .giveaways-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .coin-balance {
        width: 100%;
    }

    .giveaway-detail-media {
        min-height: 300px;
        max-height: 55dvh;
    }

    .giveaway-detail-copy {
        padding: 20px;
    }

    .app-toast {
        bottom: calc(var(--mobile-nav-height) + 14px);
    }

    .admin-social-nav {
        padding: 0 14px;
    }

    .admin-social-nav > div a:first-child {
        display: none;
    }

    .admin-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-metric-grid {
        grid-template-columns: 1fr;
    }

    .report-admin-item {
        grid-template-columns: 1fr;
    }

    .report-admin-item form {
        flex-wrap: wrap;
    }
}

/* V7: SMTP diagnostics and password recovery delivery */
.mail-admin-page {
    display: grid;
    gap: 18px;
}

.mail-admin-page .admin-hero {
    margin-bottom: 0;
}

.mail-status-badge {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fff1f2;
    color: #b42318;
    font-size: 12px;
    font-weight: 850;
}

.mail-status-badge.ready {
    border-color: #a7f3d0;
    background: #ecfdf3;
    color: #067647;
}

.mail-status-badge svg,
.mail-test-result svg {
    width: 18px;
    height: 18px;
}

.mail-test-result {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid #fecaca;
    border-radius: 7px;
    background: #fff1f2;
    color: #b42318;
    font-weight: 750;
}

.mail-test-result.success {
    border-color: #a7f3d0;
    background: #ecfdf3;
    color: #067647;
}

.mail-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 16px;
}

.mail-config-card,
.mail-test-card,
.mail-history-card {
    padding: 18px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
}

.mail-config-card > header,
.mail-test-card > header,
.mail-history-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.mail-config-card h2,
.mail-test-card h2,
.mail-history-card h2 {
    margin: 3px 0 0;
    font-size: 20px;
}

.mail-config-card > header > svg,
.mail-test-card > header > svg {
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 7px;
    background: #eef4ff;
    color: var(--app-blue);
}

.mail-config-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.mail-config-card dl div {
    min-width: 0;
    padding: 10px;
    border: 1px solid #edf0f4;
    border-radius: 6px;
    background: #f8fafc;
}

.mail-config-card dt {
    color: #667085;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}

.mail-config-card dd {
    overflow: hidden;
    margin: 3px 0 0;
    color: #182230;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-setup-note {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding: 11px;
    border-left: 3px solid var(--app-coral);
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
}

.mail-setup-note code {
    overflow-x: auto;
    padding: 8px;
    border-radius: 5px;
    background: #111827;
    color: #fff;
    white-space: nowrap;
}

.mail-test-card p {
    color: #667085;
    line-height: 1.5;
}

.mail-test-card form,
.mail-test-card label {
    display: grid;
    gap: 9px;
}

.mail-test-card input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
}

.mail-test-card button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.mail-history-table-wrap {
    overflow-x: auto;
}

.mail-history-card table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.mail-history-card th,
.mail-history-card td {
    padding: 11px 9px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    font-size: 12px;
}

.mail-history-card th {
    color: #667085;
    font-size: 10px;
    text-transform: uppercase;
}

.mail-delivery-status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 5px;
    background: #fff1f2;
    color: #b42318;
    font-size: 10px;
    font-weight: 850;
}

.mail-delivery-status.sent {
    background: #ecfdf3;
    color: #067647;
}

.mail-history-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 150px;
    color: #667085;
}

.mail-history-empty svg {
    width: 34px;
    height: 34px;
}

@media (max-width: 820px) {
    .mail-admin-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mail-config-card dl {
        grid-template-columns: minmax(0, 1fr);
    }

    .mail-status-badge {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .reel-caption-zone {
        right: 76px;
        left: 12px;
    }

    .reel-action-rail {
        right: 4px;
    }

    .reel-action {
        width: 56px;
    }

    .reel-action svg {
        width: 25px;
        height: 25px;
    }

    .form-grid-two,
    .giveaway-facts {
        grid-template-columns: 1fr;
    }

    .person-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .person-row .mini-avatar {
        width: 40px;
        height: 40px;
    }
}

/* Authentication and status screens */
.social-auth-page {
    min-height: 100dvh;
    margin: 0;
    color: #f8fafc;
    background:
        linear-gradient(135deg, rgba(15, 97, 255, .18), transparent 42%),
        #080b10;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(340px, 520px) minmax(420px, 1fr);
    min-height: 100dvh;
}

.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 7vw, 88px);
    background: #0d1118;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    margin-bottom: 52px;
    color: #fff;
    text-decoration: none;
}

.auth-brand > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid #fff;
    border-radius: 8px;
    color: #07101e;
    background: #22d3ee;
    box-shadow: 5px 5px 0 #ff416c;
    font-weight: 950;
}

.auth-brand strong {
    font-size: 20px;
    letter-spacing: 0;
}

.auth-copy {
    margin-bottom: 30px;
}

.auth-copy h1 {
    margin: 6px 0 10px;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: 0;
}

.auth-copy p,
.auth-switch {
    color: #9ba8ba;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: #dce5f1;
    font-size: 13px;
    font-weight: 800;
}

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

.auth-input {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid #2a3444;
    border-radius: 8px;
    background: #141a23;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-input:focus-within {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .14);
}

.auth-input svg {
    width: 19px;
    color: #7f8da3;
}

.auth-input input,
.auth-input select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font: inherit;
}

.auth-input select option {
    background: #141a23;
    color: #fff;
}

.optional-label {
    color: #7f8da3;
    font-size: 10px;
    font-weight: 700;
}

.auth-submit {
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
}

.auth-switch {
    margin: 24px 0 0;
    font-size: 14px;
}

.auth-switch a {
    color: #22d3ee;
    font-weight: 900;
}

.auth-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100dvh;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(34, 211, 238, .16), transparent 45%),
        linear-gradient(25deg, rgba(255, 65, 108, .2), transparent 48%),
        #070a0f;
}

.auth-visual::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
}

.auth-visual-copy {
    position: absolute;
    top: clamp(30px, 7vw, 76px);
    left: clamp(28px, 6vw, 76px);
    z-index: 2;
    display: grid;
    gap: 5px;
}

.auth-visual-copy span {
    color: #22d3ee;
    font-size: 12px;
    font-weight: 900;
}

.auth-visual-copy strong {
    max-width: 480px;
    font-size: clamp(24px, 4vw, 48px);
    line-height: 1.05;
}

.auth-phone-preview {
    position: relative;
    z-index: 1;
    width: min(330px, 64%);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 8px solid #1a2230;
    border-radius: 28px;
    background: #030509;
    box-shadow: 0 34px 80px rgba(0, 0, 0, .55);
    transform: rotate(3deg) translateY(40px);
}

.auth-preview-header,
.auth-preview-nav {
    position: absolute;
    z-index: 3;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 14px;
    background: rgba(4, 8, 14, .76);
}

.auth-preview-header { top: 0; }
.auth-preview-nav { bottom: 0; }
.auth-preview-header svg,
.auth-preview-nav svg { width: 20px; }
.auth-preview-nav b { display: grid; place-items: center; width: 38px; height: 27px; border-radius: 7px; color: #07101e; background: #22d3ee; box-shadow: 4px 0 #ff416c; }

.auth-preview-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(150deg, #081a39 0 45%, #310a2a 45% 70%, #061622 70%);
}

.preview-light {
    position: absolute;
    width: 78%;
    height: 28%;
    border-radius: 50%;
    filter: blur(55px);
    opacity: .8;
}

.preview-light.cyan { top: 22%; left: -25%; background: #22d3ee; }
.preview-light.coral { right: -30%; bottom: 25%; background: #ff416c; }

.preview-caption {
    position: absolute;
    right: 64px;
    bottom: 80px;
    left: 18px;
}

.preview-caption p { margin: 6px 0 0; color: #d6deea; font-size: 13px; }
.preview-actions { position: absolute; right: 14px; bottom: 88px; display: grid; gap: 20px; }
.preview-actions svg { width: 24px; height: 24px; }

.auth-social-stack {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14px;
    width: min(560px, 78%);
}

.auth-social-stack article {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(17, 23, 34, .88);
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.auth-social-stack article:nth-child(2) { transform: translateX(36px); }
.auth-social-stack article:nth-child(3) { transform: translateX(-18px); }
.auth-social-stack div { display: grid; gap: 3px; }
.auth-social-stack small { color: #9ba8ba; }
.stack-avatar { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #07101e; font-weight: 950; }
.stack-avatar.cyan { background: #22d3ee; }
.stack-avatar.coral { background: #ff6b8b; }
.stack-avatar.lime { background: #a3e635; }

.message-screen {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: 22px;
}

.app-message {
    width: min(440px, 100%);
    padding: 38px;
    border: 1px solid #253044;
    border-top: 4px solid #ff416c;
    border-radius: 8px;
    color: #0b1321;
    background: #fff;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0,0,0,.42);
}

.app-message.success { border-top-color: #22c55e; }
.app-message-icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%; color: #fff; background: #ff416c; }
.app-message.success .app-message-icon { background: #22c55e; }
.app-message-icon svg { width: 34px; height: 34px; }
.app-message h1 { margin: 8px 0 10px; font-size: 28px; }
.app-message p { margin: 0 0 24px; color: #536176; line-height: 1.6; }
.app-message .primary-command { width: 100%; }

@media (max-width: 820px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-form-panel { min-height: 100dvh; padding: 28px clamp(20px, 7vw, 54px); }
    .auth-brand { margin-bottom: 36px; }
}

@media (max-width: 520px) {
    .auth-form-grid { grid-template-columns: 1fr; }
    .auth-register-shell .auth-copy { margin-bottom: 20px; }
    .auth-register-shell .auth-form { gap: 13px; }
}

.wallet-header-balances {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.wallet-header-balances strong {
    padding: 7px 10px;
    border-radius: 999px;
    color: #175cd3;
    background: #eff8ff;
    font-size: 12px;
}

.wallet-header-balances strong:last-child {
    color: #b54708;
    background: #fffaeb;
}

.form-help {
    margin: -2px 0 2px;
    color: #667085;
    font-size: 12px;
}

@media (max-width: 520px) {
    .wallet-history-section > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .wallet-header-balances {
        justify-content: flex-start;
    }
}

/* Reels V2: controles, comentarios y actividad */
.reel-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.reel-top-link,
.reel-activity-link {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(8, 11, 16, 0.52);
    color: #fff;
    backdrop-filter: blur(10px);
}

.reel-top-link svg,
.reel-activity-link svg {
    width: 19px;
    height: 19px;
}

.reel-activity-link b,
.mobile-activity-link b {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid #080b10;
    border-radius: 10px;
    background: var(--app-coral);
    color: #fff;
    font-size: 9px;
    line-height: 1;
}

.reel-more-wrap {
    position: relative;
}

.reel-more-menu {
    position: absolute;
    right: 64px;
    bottom: 0;
    z-index: 12;
    width: 176px;
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
}

.reel-more-menu[hidden] {
    display: none;
}

.reel-more-menu button {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}

.reel-more-menu button:last-child {
    border-bottom: 0;
}

.reel-more-menu button.danger {
    color: #fda4af;
}

.reel-more-menu svg {
    width: 17px;
    height: 17px;
}

.reel-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.24);
    pointer-events: none;
}

.reel-progress span {
    width: 0;
    height: 100%;
    display: block;
    background: linear-gradient(90deg, var(--app-cyan), #fff, var(--app-coral));
}

.reel-like-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    color: var(--app-coral);
    font-size: 92px;
    line-height: 1;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
    pointer-events: none;
    animation: reel-like-burst 650ms ease forwards;
}

@keyframes reel-like-burst {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.35) rotate(-12deg); }
    38% { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(6deg); }
    100% { opacity: 0; transform: translate(-50%, -70%) scale(0.92) rotate(0); }
}

.comments-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(2px);
}

.comments-backdrop[hidden] {
    display: none;
}

.reel-comments-drawer {
    z-index: 80;
}

.reel-comments-list {
    min-height: 0;
}

.comment-reply-context,
.comment-emoji-bar {
    grid-column: 1 / -1;
}

.comment-reply-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 28px;
    padding: 4px 8px 4px 10px;
    border-left: 3px solid var(--app-cyan);
    border-radius: 5px;
    background: #f0f9ff;
    color: #344054;
    font-size: 11px;
    font-weight: 800;
}

.comment-reply-context[hidden] {
    display: none;
}

.reel-comment-form .comment-reply-context button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
}

.comment-emoji-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
}

.reel-comment-form .comment-emoji-bar button {
    flex: 0 0 32px;
    width: 32px;
    height: 30px;
    border: 1px solid #e4e7ec;
    border-radius: 7px;
    background: #f8fafc;
    color: var(--app-ink);
    font-size: 17px;
}

.comment-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    margin: 7px 0;
}

.comment-edit-form input {
    min-width: 0;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #98a2b3;
    border-radius: 6px;
}

.comment-edit-form button {
    min-height: 34px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    background: var(--app-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.comment-edit-form button[data-comment-edit-cancel] {
    background: #eef2f6;
    color: #344054;
}

.activity-page-header {
    align-items: center;
}

.activity-row {
    position: relative;
    border-bottom: 1px solid #eaecf0;
}

.activity-row:last-child {
    border-bottom: 0;
}

.activity-row .activity-item {
    grid-template-columns: 44px minmax(0, 1fr);
    padding-right: 66px;
    border-bottom: 0;
}

.activity-delete-command {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #fecdd3;
    border-radius: 50%;
    background: #fff1f2;
    color: #e11d48;
    transform: translateY(-50%);
}

.activity-delete-command svg {
    width: 16px;
    height: 16px;
}

.mobile-activity-link {
    position: relative;
}

@media (max-width: 760px) {
    body.comments-active {
        overflow: hidden;
    }

    .mobile-bottom-nav {
        transition: transform 180ms ease;
    }

    body.comments-active .mobile-bottom-nav {
        transform: translateY(115%);
        pointer-events: none;
    }

    .reel-comments-drawer {
        position: fixed;
        inset: auto 0 0;
        z-index: 80;
        width: 100%;
        height: min(78dvh, 680px);
        padding-bottom: env(safe-area-inset-bottom);
        border-radius: 8px 8px 0 0;
    }

    .reel-comment-form {
        padding-bottom: max(11px, env(safe-area-inset-bottom));
    }

    .activity-page-header {
        align-items: flex-start;
        gap: 14px;
    }

    .activity-page-header .secondary-command {
        min-height: 38px;
    }
}

@media (max-width: 420px) {
    .reel-top-actions {
        gap: 5px;
    }

    .reel-top-link,
    .reel-activity-link {
        width: 34px;
        height: 34px;
    }

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

    .comment-edit-form input {
        grid-column: 1 / -1;
    }

    .activity-row .activity-item {
        padding-left: 12px;
        padding-right: 58px;
    }

    .activity-delete-command {
        right: 10px;
    }
}

/* Cuenta y seguridad V3 */
.settings-page {
    width: min(100% - 36px, 840px);
}

.settings-header {
    align-items: center;
}

.settings-identity {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    padding: 18px;
    border: 1px solid var(--app-line);
    border-left: 4px solid var(--app-cyan);
    border-radius: 8px;
    background: #fff;
}

.settings-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--app-blue), var(--app-cyan));
    color: #fff;
    font-size: 18px;
    font-weight: 950;
}

.settings-identity > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.settings-identity strong,
.settings-identity span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-identity > div > span {
    color: #667085;
    font-size: 13px;
}

.account-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #067647;
    font-size: 12px;
    font-weight: 900;
}

.account-status svg {
    width: 18px;
}

.settings-alert,
.auth-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #fda29b;
    border-radius: 7px;
    background: #fff1f0;
    color: #b42318;
    font-size: 13px;
    font-weight: 800;
}

.settings-alert {
    margin-bottom: 18px;
}

.settings-alert svg,
.auth-error svg {
    flex: 0 0 auto;
    width: 18px;
}

.settings-section {
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #fff;
}

.settings-section > header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 17px 18px;
    border-bottom: 1px solid #eaecf0;
}

.settings-section > header > div {
    min-width: 0;
}

.settings-section h2 {
    margin: 0 0 3px;
    font-size: 17px;
}

.settings-section p {
    margin: 0;
    color: #667085;
    font-size: 12px;
}

.settings-section-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 7px;
}

.settings-section-icon svg {
    width: 20px;
}

.settings-section-icon.cyan { color: #087d98; background: #ecfdff; }
.settings-section-icon.blue { color: #175cd3; background: #eff8ff; }
.settings-section-icon.violet { color: #6941c6; background: #f4f3ff; }
.settings-section-icon.red { color: #d92d20; background: #fff1f0; }

.settings-command,
.settings-links a {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 11px;
    padding: 10px 18px;
    border: 0;
    border-bottom: 1px solid #eaecf0;
    background: transparent;
    color: var(--app-ink);
    text-align: left;
}

.settings-links a:last-child {
    border-bottom: 0;
}

.settings-command > span,
.settings-links a > span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.settings-command small,
.settings-links small {
    overflow: hidden;
    color: #667085;
    font-size: 11px;
    text-overflow: ellipsis;
}

.settings-command svg,
.settings-links svg {
    width: 20px;
}

.logout-command {
    color: #d92d20;
}

.settings-form {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.settings-form label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.settings-form input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    outline: none;
}

.settings-form input:focus {
    border-color: var(--app-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.danger-zone {
    border-color: #fecdca;
}

.danger-zone summary {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 18px;
    color: #b42318;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.danger-zone summary svg {
    width: 18px;
}

.delete-account-copy {
    padding: 15px 18px;
    border-top: 1px solid #fecdca;
    background: #fffbfa;
    color: #475467;
    font-size: 13px;
}

.delete-account-copy ul {
    margin: 9px 0 0;
    padding-left: 20px;
    line-height: 1.7;
}

.danger-command {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    background: #d92d20;
    color: #fff;
    font-weight: 900;
}

.forgot-password-link {
    width: max-content;
    margin-top: -8px;
    color: var(--app-cyan);
    font-size: 12px;
    font-weight: 900;
}

.auth-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-switch svg {
    width: 16px;
}

.recovery-result {
    display: grid;
    gap: 15px;
}

.recovery-result > span,
.recovery-lock > svg {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ecfdff;
    color: #0891b2;
}

.recovery-result > span svg {
    width: 30px;
}

.recovery-result .auth-copy {
    margin-bottom: 4px;
}

.recovery-result .text-command {
    justify-content: center;
    color: #aab5c5;
}

.recovery-visual {
    background: #07101e;
}

.recovery-lock {
    position: relative;
    z-index: 2;
    width: min(390px, 72%);
    display: grid;
    justify-items: center;
    gap: 15px;
    color: #fff;
    text-align: center;
}

.recovery-lock > svg {
    width: 92px;
    height: 92px;
    padding: 25px;
    background: rgba(34, 211, 238, 0.12);
}

.recovery-lock strong {
    font-size: 26px;
}

.recovery-lock span {
    color: #9ba8ba;
    line-height: 1.6;
}

@media (max-width: 760px) {
    .settings-page {
        width: min(100% - 24px, 840px);
    }

    .explore-page-header .nearby-command {
        width: 100%;
        justify-content: center;
    }

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

    .discovery-type-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .discovery-type-tabs::-webkit-scrollbar {
        display: none;
    }

    .discovery-type-tabs a {
        flex: 0 0 auto;
    }

    .settings-header {
        align-items: flex-start;
        gap: 14px;
    }

    .settings-header > div,
    .settings-header .secondary-command {
        width: 100%;
    }

    .settings-header .secondary-command {
        min-height: 44px;
    }

    .settings-identity {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 14px;
    }

    .settings-avatar {
        width: 46px;
        height: 46px;
    }

    .account-status {
        grid-column: 2;
    }

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

    .settings-section > header,
    .settings-form {
        padding-right: 14px;
        padding-left: 14px;
    }

    .settings-section,
    .settings-identity,
    .settings-command,
    .settings-links a {
        min-width: 0;
        max-width: 100%;
    }

    .settings-command,
    .settings-links a {
        grid-template-columns: 22px minmax(0, 1fr) 18px;
        gap: 9px;
        padding-right: 13px;
        padding-left: 13px;
    }

    .settings-command strong,
    .settings-command small,
    .settings-links strong,
    .settings-links small,
    .settings-section h2,
    .settings-section p {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .own-profile-commands {
        display: none;
    }

    .mobile-profile-actions.mobile-only {
        width: calc(100% - 24px);
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
        gap: 8px;
        margin: 0 12px 18px;
    }

    .mobile-profile-actions .secondary-command {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 0 10px;
        font-size: 12px;
        white-space: normal;
    }

    .mobile-profile-actions svg {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
    }
}

@media (max-width: 380px) {
    .mobile-profile-actions.mobile-only {
        grid-template-columns: 1fr;
    }

    .settings-page {
        width: calc(100% - 16px);
    }

    .settings-identity {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .settings-avatar {
        width: 40px;
        height: 40px;
    }

    .settings-section > header {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        padding: 13px 12px;
    }

    .settings-section-icon {
        width: 36px;
        height: 36px;
    }
}

/* Inicio Comunidad V5 */
.desktop-create-button,
.mobile-create {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.home-app-main {
    background: #f2f5f9;
}

.home-page {
    width: min(100% - 36px, 1120px);
    margin: 0 auto;
    padding: 28px 0 110px;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 22px;
}

.home-feed-column,
.home-side-rail {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.home-side-rail {
    position: sticky;
    top: 18px;
}

.home-welcome-band {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border-left: 5px solid var(--app-cyan);
    border-radius: 8px;
    background: #0d1726;
    color: #fff;
}

.home-welcome-band h1 {
    margin: 4px 0 6px;
    color: #fff;
    font-size: 27px;
}

.home-welcome-band p {
    max-width: 520px;
    margin: 0;
    color: #aebed1;
    font-size: 13px;
    line-height: 1.5;
}

.home-welcome-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 0 0 auto;
}

.home-welcome-actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #2a3b50;
    border-radius: 7px;
    background: #152236;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}

.home-welcome-actions a:first-child {
    border-color: #0e7490;
    color: #67e8f9;
}

.home-welcome-actions a:last-child {
    border-color: #9f1239;
    color: #fda4af;
}

.home-welcome-actions svg {
    width: 17px;
}

.home-stories-section,
.home-composer,
.home-post,
.home-profile-panel,
.home-side-section {
    border: 1px solid #dce3ec;
    border-radius: 8px;
    background: #fff;
}

.home-stories-section,
.home-local-reels {
    padding: 17px;
}

.home-local-reels {
    border-top: 3px solid var(--app-coral);
    border-radius: 4px;
    background: #fff;
}

.home-section-header,
.home-feed-heading,
.home-side-section > header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.home-section-header {
    margin-bottom: 13px;
}

.home-section-header h2,
.home-feed-heading h2,
.home-side-section h2 {
    margin: 2px 0 0;
    color: var(--app-ink);
    font-size: 19px;
}

.home-section-header > span,
.home-feed-heading > a,
.home-side-section > header > a {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.home-stories-strip,
.home-reels-strip {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.home-stories-strip::-webkit-scrollbar,
.home-reels-strip::-webkit-scrollbar {
    display: none;
}

.home-story-create {
    width: 170px;
    min-width: 170px;
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: #f0f9ff;
}

.story-file-picker {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.story-file-picker input,
.home-media-command input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.story-file-picker > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    grid-row: 1 / span 2;
    border-radius: 50%;
    background: var(--app-blue);
    color: #fff;
}

.story-file-picker svg {
    width: 20px;
}

.story-file-picker strong,
.home-story-create > small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-story-create > small {
    color: #667085;
    font-size: 10px;
}

.home-story-create > input[type="text"] {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #cfe8f3;
    border-radius: 6px;
    outline: 0;
    font-size: 11px;
}

.story-publish-command {
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    background: #0891b2;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.home-story-item {
    width: 78px;
    min-width: 78px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 4px;
    color: var(--app-ink);
    text-align: center;
}

.home-story-item > span {
    width: 66px;
    height: 66px;
    overflow: hidden;
    padding: 3px;
    border: 2px solid var(--app-coral);
    border-radius: 50%;
    background: #fff;
}

.home-story-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.home-story-item strong,
.home-story-item small {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-story-item strong {
    font-size: 11px;
}

.home-story-item small {
    color: #667085;
    font-size: 9px;
}

.home-stories-empty {
    min-width: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: #667085;
    text-align: center;
}

.home-stories-empty svg {
    width: 24px;
    color: var(--app-coral);
}

.home-stories-empty span {
    font-size: 11px;
}

.home-composer {
    padding: 16px;
}

.home-composer-main {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
}

.home-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 44px;
    border-radius: 50%;
    background: var(--app-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 950;
}

.home-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-avatar.large {
    width: 54px;
    height: 54px;
}

.home-avatar.small {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 12px;
}

.home-composer textarea {
    width: 100%;
    min-height: 84px;
    resize: vertical;
    padding: 12px;
    border: 0;
    border-radius: 7px;
    outline: 0;
    background: #f4f7fb;
    color: var(--app-ink);
    font: inherit;
}

.home-composer-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e7ebf0;
}

.home-media-command {
    min-width: 0;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    padding: 0 11px;
    border: 1px solid #dce3ec;
    border-radius: 7px;
    background: #fff;
    color: #475467;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
}

.home-media-command svg {
    width: 17px;
    color: #0891b2;
}

.home-composer-tools .primary-command {
    min-height: 38px;
    margin-left: auto;
}

.home-reels-strip {
    gap: 8px;
}

.home-reel-tile {
    position: relative;
    width: 126px;
    min-width: 126px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 7px;
    background: #101828;
}

.home-reel-tile img,
.home-reel-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-reel-tile::after {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
    content: "";
}

.home-reel-play {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(8, 11, 16, .72);
    color: #fff;
}

.home-reel-play svg {
    width: 15px;
}

.home-reel-tile small {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 1;
    overflow: hidden;
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-feed-heading {
    margin: 6px 2px -3px;
}

.home-post {
    overflow: hidden;
}

.home-post-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 15px 16px;
}

.home-post-author {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.home-post-author > a {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.home-post-author strong,
.home-post-author span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-post-author strong {
    color: var(--app-ink);
    font-size: 13px;
}

.home-post-author span {
    color: #667085;
    font-size: 10px;
}

.home-post-author svg {
    width: 15px;
    color: var(--app-blue);
}

.home-owner-tools {
    display: flex;
    gap: 5px;
}

.home-owner-tools .icon-button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-color: #e4e7ec;
    background: #f8fafc;
    color: #475467;
}

.home-owner-tools .icon-button svg {
    width: 15px;
}

.home-owner-tools .danger-icon {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

.home-post-copy {
    margin: 0;
    padding: 0 16px 15px;
    overflow-wrap: anywhere;
    color: #293548;
    font-size: 14px;
    line-height: 1.6;
}

.home-post-image {
    width: 100%;
    max-height: 620px;
    display: block;
    object-fit: cover;
    border-top: 1px solid #e4e7ec;
}

.home-post-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border-top: 1px solid #e7ebf0;
}

.home-post-actions form {
    min-width: 0;
}

.home-post-actions button {
    width: 100%;
    min-width: 0;
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #526071;
    font-size: 12px;
    font-weight: 850;
}

.home-post-actions button:hover,
.home-post-actions button.active {
    background: #eff6ff;
    color: var(--app-blue);
}

.home-post-actions button.active svg {
    fill: currentColor;
}

.home-post-actions svg {
    width: 18px;
}

.home-post-actions b {
    font-size: 10px;
}

.home-comments {
    background: #fbfcfe;
}

.home-comments .comment-avatar {
    overflow: hidden;
}

.home-comments .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-empty-feed {
    background: #fff;
}

.home-profile-panel {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 15px;
}

.home-profile-panel > div {
    min-width: 0;
    display: grid;
}

.home-profile-panel > div strong,
.home-profile-panel > div span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-profile-panel > div span {
    color: #667085;
    font-size: 11px;
}

.home-profile-panel > .text-command {
    font-size: 11px;
}

.home-balance-row {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding-top: 11px;
    border-top: 1px solid #e7ebf0;
}

.home-balance-row > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 7px;
    background: #f4f7fb;
}

.home-balance-row > span:last-child {
    background: #fff7ed;
    color: #9a3412;
}

.home-side-section {
    overflow: hidden;
}

.home-side-section > header {
    padding: 14px;
    border-bottom: 1px solid #e7ebf0;
}

.home-side-section h2 {
    font-size: 15px;
}

.home-side-section > header > a {
    color: var(--app-blue);
}

.home-giveaway-row,
.home-suggested-row {
    min-width: 0;
    display: grid;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border-bottom: 1px solid #edf0f4;
}

.home-giveaway-row:last-child,
.home-suggested-row:last-child {
    border-bottom: 0;
}

.home-giveaway-row {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
}

.home-giveaway-row > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #fff1f2;
    color: #e11d48;
}

.home-giveaway-row > div,
.home-suggested-row > a:nth-child(2) {
    min-width: 0;
    display: grid;
}

.home-giveaway-row strong,
.home-giveaway-row small,
.home-suggested-row strong,
.home-suggested-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-giveaway-row small,
.home-suggested-row small {
    color: #667085;
    font-size: 10px;
}

.home-giveaway-row > svg {
    width: 16px;
    color: #98a2b3;
}

.home-suggested-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
}

.home-suggested-row .follow-pill {
    min-height: 31px;
    padding: 0 9px;
    font-size: 10px;
}

.home-mobile-header {
    display: none;
}

.create-content-dialog {
    width: min(100% - 28px, 480px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--app-ink);
}

.create-content-dialog::backdrop {
    background: rgba(7, 11, 18, .72);
    backdrop-filter: blur(4px);
}

.create-content-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    border-bottom: 1px solid #e7ebf0;
}

.create-content-card h2 {
    margin: 3px 0 0;
    font-size: 21px;
}

.create-content-card .icon-button {
    border-color: #e4e7ec;
    background: #f4f7fb;
    color: var(--app-ink);
}

.create-content-card nav {
    display: grid;
    padding: 8px;
}

.create-content-card nav > a {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border-radius: 7px;
    color: var(--app-ink);
}

.create-content-card nav > a:hover {
    background: #f4f7fb;
}

.create-content-card nav > a > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.create-content-card nav small {
    overflow: hidden;
    color: #667085;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.create-option-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
}

.create-option-icon.coral { background: #fff1f2; color: #e11d48; }
.create-option-icon.cyan { background: #ecfeff; color: #0891b2; }
.create-option-icon.lime { background: #f7fee7; color: #4d7c0f; }

.create-option-icon svg,
.create-content-card nav > a > svg {
    width: 19px;
}

.post-edit-page {
    width: min(100% - 28px, 680px);
}

.post-edit-panel {
    display: grid;
    gap: 15px;
    padding: 20px;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    background: #fff;
}

.post-edit-panel label {
    display: grid;
    gap: 7px;
    font-size: 12px;
    font-weight: 850;
}

.post-edit-panel textarea {
    width: 100%;
    min-height: 180px;
    resize: vertical;
    padding: 12px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    outline: 0;
    font: inherit;
}

@media (max-width: 980px) {
    .home-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
    }

    .home-welcome-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-welcome-actions {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .home-page {
        width: 100%;
        padding: 0 0 calc(var(--mobile-nav-height) + 28px);
    }

    .home-mobile-header.mobile-only {
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 7px 12px;
        border-bottom: 1px solid #dce3ec;
        background: #fff;
    }

    .home-mobile-header .icon-button {
        position: relative;
        border-color: #e4e7ec;
        background: #f4f7fb;
        color: var(--app-ink);
    }

    .home-mobile-header .icon-button b {
        position: absolute;
        top: -2px;
        right: -2px;
        min-width: 17px;
        height: 17px;
        display: grid;
        place-items: center;
        padding: 0 4px;
        border-radius: 9px;
        background: var(--app-coral);
        color: #fff;
        font-size: 8px;
    }

    .home-mobile-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--app-ink);
        font-size: 13px;
    }

    .home-mobile-brand span {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border-radius: 7px;
        background: var(--app-blue);
        color: #fff;
        font-size: 11px;
        font-weight: 950;
    }

    .home-layout {
        display: block;
    }

    .home-feed-column {
        gap: 12px;
    }

    .home-side-rail {
        display: none;
    }

    .home-welcome-band {
        min-height: 0;
        margin: 12px;
        padding: 17px;
        border-radius: 8px;
    }

    .home-welcome-band h1 {
        font-size: 23px;
    }

    .home-stories-section,
    .home-composer,
    .home-local-reels,
    .home-post,
    .home-empty-feed {
        margin-right: 12px;
        margin-left: 12px;
    }

    .home-stories-section,
    .home-local-reels {
        padding: 14px 12px;
    }

    .home-feed-heading {
        margin: 8px 14px 0;
    }

    .home-section-header > span,
    .home-feed-heading > a {
        display: none;
    }

    .home-composer {
        padding: 13px;
    }

    .home-composer-tools {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home-composer-tools .primary-command {
        grid-column: 1 / -1;
        margin: 0;
    }

    .home-media-command {
        justify-content: center;
    }

    .home-post-header {
        padding: 13px;
    }

    .home-post-copy {
        padding: 0 13px 13px;
    }

    .home-post-image {
        max-height: 72dvh;
    }

    .mobile-bottom-nav .mobile-create {
        padding: 0;
    }
}

@media (max-width: 420px) {
    .home-welcome-actions {
        grid-template-columns: 1fr;
    }

    .home-section-header h2,
    .home-feed-heading h2 {
        font-size: 17px;
    }

    .home-story-create {
        width: 155px;
        min-width: 155px;
    }

    .home-post-actions button span {
        display: none;
    }

    .home-post-actions button {
        gap: 4px;
    }

    .home-owner-tools .icon-button {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
}

/* Historia individual */
.story-player-body {
    min-height: 100dvh;
    margin: 0;
    overflow: hidden;
    background: #080b10;
    color: #fff;
    font-family: var(--app-font, Arial, sans-serif);
}

.story-player {
    position: relative;
    width: min(100%, 560px);
    min-height: 100dvh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #111827;
}

.story-player header {
    position: absolute;
    z-index: 2;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 8px;
    background: rgb(8 11 16 / 78%);
    backdrop-filter: blur(12px);
}

.story-player header > a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgb(255 255 255 / 12%);
    color: #fff;
    font-size: 22px;
    text-decoration: none;
}

.story-player header div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.story-player header strong,
.story-player header span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-player header span {
    color: #cbd5e1;
    font-size: 11px;
}

.story-player-image {
    width: 100%;
    height: 100dvh;
    display: block;
    object-fit: contain;
    background: #05070a;
}

.story-player > p {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 18px;
    max-height: 28dvh;
    overflow: auto;
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgb(8 11 16 / 82%);
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
    backdrop-filter: blur(12px);
}

@media (max-width: 760px) {
    .home-layout,
    .home-feed-column {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .home-welcome-band,
    .home-stories-section,
    .home-composer,
    .home-local-reels,
    .home-post,
    .home-empty-feed {
        width: calc(100% - 24px);
        min-width: 0;
        max-width: calc(100% - 24px);
        box-sizing: border-box;
    }

    .home-welcome-band > div,
    .home-welcome-actions,
    .home-section-header,
    .home-stories-strip,
    .home-reels-strip,
    .home-composer form,
    .home-composer-main,
    .home-post-header,
    .home-post-author,
    .home-post-actions,
    .home-comments {
        min-width: 0;
        max-width: 100%;
    }

    .home-welcome-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .home-welcome-actions a {
        min-width: 0;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .home-welcome-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Privacidad, solicitudes y actividad V6 */
.follow-pill.requested,
.profile-commands .requested {
    border-color: #f5c451;
    background: #fff7d6;
    color: #8a4b08;
}

.profile-privacy-link {
    min-height: 58px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #b9e9f2;
    border-radius: 7px;
    background: #f0fbfd;
    color: #174451;
}

.profile-privacy-link > span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.profile-privacy-link small {
    color: #5d7380;
    font-size: 11px;
}

.profile-privacy-link svg {
    width: 18px;
    color: #0891b2;
}

.settings-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #86d6ad;
    border-radius: 7px;
    background: #edfcf2;
    color: #087443;
    font-size: 13px;
    font-weight: 800;
}

.settings-success svg {
    width: 19px;
}

.privacy-settings-form {
    gap: 0;
}

.privacy-settings-group {
    display: grid;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid #e4e9f0;
}

.privacy-settings-group:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.privacy-settings-heading {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.privacy-settings-heading > svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 7px;
    background: #eef4ff;
    color: var(--app-blue);
}

.privacy-settings-heading > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.privacy-settings-heading span {
    color: #667085;
    font-size: 11px;
    line-height: 1.35;
}

.privacy-select-grid,
.notification-preference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.settings-form select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 36px 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
    color: #182230;
    outline: 0;
}

.settings-form select:focus {
    border-color: var(--app-blue);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 12%);
}

.notification-preference-grid .toggle-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid #e1e6ed;
    border-radius: 7px;
    background: #f8fafc;
}

.notification-preference-grid .toggle-row input {
    width: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    margin: 0;
}

.follow-requests-panel {
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #b9e9f2;
    border-top: 3px solid var(--app-cyan);
    border-radius: 8px;
    background: #fff;
}

.follow-requests-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #e5edf2;
}

.follow-requests-panel h2 {
    margin: 3px 0 0;
    font-size: 18px;
}

.request-count {
    min-width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 15px;
    background: var(--app-coral);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.follow-request-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #edf0f4;
}

.follow-request-row:last-child {
    border-bottom: 0;
}

.request-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--app-blue);
    color: #fff;
    font-weight: 900;
}

.request-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.request-person {
    min-width: 0;
    display: grid;
    gap: 2px;
    color: #182230;
}

.request-person strong {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-person strong svg {
    width: 15px;
    color: var(--app-blue);
}

.request-person span,
.request-person small {
    overflow: hidden;
    color: #667085;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-actions {
    display: flex;
    gap: 7px;
}

.request-actions .primary-command,
.request-actions .secondary-command {
    min-height: 36px;
    padding: 0 11px;
    font-size: 11px;
}

.activity-filters {
    display: flex;
    gap: 7px;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.activity-filters::-webkit-scrollbar {
    display: none;
}

.activity-filters button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid #d9e0e8;
    border-radius: 6px;
    background: #fff;
    color: #475467;
    font-size: 12px;
    font-weight: 850;
}

.activity-filters button.active {
    border-color: var(--app-blue);
    background: #edf4ff;
    color: var(--app-blue);
}

.activity-filters span {
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 10px;
    background: #e8edf3;
    font-size: 9px;
}

@media (max-width: 760px) {
    .privacy-select-grid,
    .notification-preference-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .follow-request-row {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 12px;
    }

    .request-avatar {
        width: 44px;
        height: 44px;
    }

    .request-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .request-actions .primary-command,
    .request-actions .secondary-command {
        width: 100%;
    }

    .activity-filters {
        margin-right: -12px;
        padding-right: 12px;
    }
}
