:root {
    --bg: #090d13;
    --surface: #111821;
    --surface-strong: #172231;
    --surface-soft: #0d141d;
    --text: #f4f7fb;
    --muted: #9aa7b8;
    --line: #273449;
    --accent: #35f29a;
    --accent-strong: #18c7d6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button:disabled,
input[type="submit"]:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(9, 13, 19, 0.94);
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header__inner,
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.site-header__inner {
    flex-wrap: nowrap;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 42px;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0;
}

.brand img {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand span {
    line-height: 1;
}

.brand__env {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid rgba(24, 199, 214, 0.35);
    border-radius: 999px;
    background: rgba(24, 199, 214, 0.08);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.nav {
    display: flex;
    gap: 16px;
    margin-left: auto;
    color: var(--muted);
    font-size: 0.9rem;
}

.nav a:hover {
    color: var(--text);
}

.account-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.account-nav a,
.account-nav button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-weight: 800;
}

.account-nav a:hover {
    color: var(--text);
}

.account-nav__primary,
.button-link {
    border: 1px solid rgba(53, 242, 154, 0.35);
    background: rgba(53, 242, 154, 0.08);
    color: #dfffee;
}

.account-nav form {
    margin: 0;
}

.account-nav button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.account-nav button:hover {
    color: var(--text);
}

.account-menu {
    position: relative;
}

.account-menu__toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 54px;
    min-height: 52px;
    padding: 4px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.account-menu__toggle:hover,
.account-menu__toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.account-menu__toggle img {
    display: block;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-strong);
}

.account-menu__toggle span {
    display: block;
    max-width: 92px;
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.account-menu__panel[hidden] {
    display: none;
}

.account-menu__panel a,
.account-menu__panel button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.account-menu__panel a:hover,
.account-menu__panel button:hover {
    background: rgba(53, 242, 154, 0.08);
    color: var(--text);
}

.account-menu__panel form {
    margin: 0;
}

.main {
    min-height: calc(100vh - 152px);
    padding: 40px 0 56px;
}

.home-hero {
    display: grid;
    gap: 18px;
    max-width: 860px;
    margin-bottom: 28px;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.lead {
    max-width: 700px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.feed-toolbar {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.feed-search {
    width: 100%;
    margin: 0 0 18px;
}

.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 54px 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.search-form input:focus {
    border-color: var(--accent-strong);
    outline: 2px solid rgba(24, 199, 214, 0.18);
}

.search-form button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-grid;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    place-items: center;
    transform: translateY(-50%);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
}

.search-form button:hover {
    background: rgba(53, 242, 154, 0.08);
}

.search-form svg {
    width: 20px;
    height: 20px;
}

.filters {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.filters label {
    display: grid;
    gap: 6px;
}

.filters span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.filters input,
.filters select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.filters input:focus,
.filters select:focus {
    border-color: var(--accent-strong);
    outline: 2px solid rgba(24, 199, 214, 0.18);
}

.filters__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 44px;
}

.filters button,
.filters__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 800;
}

.filters button {
    border: 0;
    background: var(--accent);
    color: #06110b;
    cursor: pointer;
}

.filters__actions a {
    border: 1px solid var(--line);
    color: var(--muted);
}

.deal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: 100%;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.deal-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    height: 260px;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.deal-card:hover,
.deal-card:focus-within {
    z-index: 2;
}

.coupon-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.coupon-card h2 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.35;
}

.coupon-card p {
    margin: 0;
    color: var(--muted);
}

.coupon-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px dashed rgba(53, 242, 154, 0.55);
    border-radius: 8px;
    background: rgba(53, 242, 154, 0.08);
    color: #dfffee;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.coupon-code span {
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coupon-code small {
    color: var(--muted);
    font-weight: 800;
}

.coupon-code.is-copied {
    border-style: solid;
    background: rgba(24, 199, 214, 0.12);
}

.coupon-code--large {
    margin: 18px 0;
    min-height: 58px;
}

.coupon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.coupon-detail {
    display: grid;
    justify-items: center;
}

.deal-detail__content {
    display: grid;
    gap: 16px;
    width: 100%;
}

.product-image-frame {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #ffffff;
    color: #1b2533;
}

.product-image-frame--detail {
    width: 100%;
    height: clamp(280px, 52vw, 520px);
    margin: 18px 0;
    border-radius: 8px;
}

.detail-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    padding: 18px;
    object-fit: contain;
}

.detail-price {
    margin: 18px 0;
}

.deal-card__image {
    position: relative;
    display: grid;
    min-height: 168px;
    place-items: center;
    overflow: hidden;
    background: #ffffff;
    color: #1b2533;
    font-weight: 800;
    text-align: center;
    border-radius: 7px 0 0 7px;
}

.deal-card__image img {
    position: absolute;
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.deal-card__image span {
    padding: 0 18px;
}

.deal-card__body {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
}

.deal-card__body > p {
    display: -webkit-box;
    align-self: start;
    overflow: hidden;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.deal-card__tags,
.deal-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.deal-card__tags > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid rgba(53, 242, 154, 0.24);
    border-radius: 999px;
    background: rgba(53, 242, 154, 0.08);
    color: #dfffee;
    font-size: 0.78rem;
    font-weight: 700;
}

.deal-card__click-icon,
.deal-card__hype-icon {
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: url("../images/click.svg") center / contain no-repeat;
    mask: url("../images/click.svg") center / contain no-repeat;
}

.deal-card__hype-icon {
    color: #ffd54a;
    -webkit-mask-image: url("../images/hype.svg");
    mask-image: url("../images/hype.svg");
}

.deal-card h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.35;
}

.deal-card h2 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.deal-card h2 a:hover {
    color: var(--accent);
}

.deal-card__price {
    display: grid;
    gap: 8px;
}

.deal-card__price strong {
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
}

.deal-card__price del {
    color: var(--muted);
    font-size: 0.9rem;
}

.deal-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.deal-card__meta {
    grid-row: 5;
    align-items: center;
    align-self: end;
    padding-right: 52px;
    padding-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
}

.deal-details-link,
.deal-comments-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-strong);
    cursor: pointer;
    font: inherit;
}

.deal-details-link:hover,
.deal-comments-button:hover {
    color: var(--accent);
}

.deal-share {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
}

.deal-share::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    width: min(220px, calc(100vw - 48px));
    height: 16px;
    pointer-events: none;
}

.deal-share:hover::before,
.deal-share.is-open::before {
    pointer-events: auto;
}

.deal-share__trigger {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    place-items: center;
    background: var(--surface-soft);
    color: var(--muted);
    cursor: pointer;
}

.deal-share__trigger:hover,
.deal-share__trigger:focus-visible,
.deal-share.is-open .deal-share__trigger {
    border-color: rgba(53, 242, 154, 0.45);
    color: var(--accent);
    outline: none;
}

.deal-share__trigger-icon {
    display: block;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: url("../images/share.svg") center / contain no-repeat;
    mask: url("../images/share.svg") center / contain no-repeat;
}

.deal-share__menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    display: grid;
    width: 220px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    visibility: hidden;
    transform: translateY(6px);
    background: var(--surface-strong);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.deal-share:hover .deal-share__menu,
.deal-share.is-open .deal-share__menu {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.deal-share__menu a,
.deal-share__menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.deal-share__menu a:hover,
.deal-share__menu a:focus-visible,
.deal-share__menu button:hover,
.deal-share__menu button:focus-visible {
    background: rgba(53, 242, 154, 0.09);
    outline: none;
}

.deal-share__option-icon {
    display: grid;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    place-items: center;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 900;
}

.deal-share__option-icon--facebook {
    background: #1877f2;
    color: #ffffff;
}

.deal-share__option-icon--x {
    background: #000000;
    color: #ffffff;
}

.deal-share__option-icon--whatsapp {
    background: #25d366;
    color: #06110b;
}

.feed-loader {
    display: flex;
    justify-content: center;
    max-width: 860px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.feed-loader[hidden] {
    display: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    padding: 24px;
    place-items: center;
    background: rgba(2, 6, 12, 0.78);
}

.modal-backdrop[hidden] {
    display: none;
}

.comments-modal {
    position: relative;
    width: min(920px, 100%);
    max-height: min(86vh, 860px);
    overflow: auto;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.comments-modal__close {
    position: sticky;
    top: 0;
    z-index: 1;
    float: right;
    display: inline-grid;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    place-items: center;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
}

.comments-modal h2 {
    margin: 0 44px 16px 0;
    font-size: 1.3rem;
    line-height: 1.3;
}

.comments-modal__description {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.comments-modal__description p {
    margin: 0;
    color: var(--muted);
}

.comments-modal .comments-section {
    margin-top: 0;
}

.comments-modal .admin-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.empty-state {
    padding: 36px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.auth-page,
.profile-page {
    display: grid;
    justify-items: center;
}

.auth-card,
.profile-card {
    width: min(100%, 520px);
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.auth-card--wide {
    width: min(100%, 760px);
}

.auth-card h1,
.profile-card h1 {
    margin: 8px 0 18px;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.profile-card--wide {
    width: min(100%, 860px);
}

.profile-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-heading h1 {
    margin-bottom: 0;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.profile-stat {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
}

.profile-stat strong {
    font-size: 1.45rem;
    line-height: 1;
}

.profile-stat span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.profile-stat--active {
    border-color: rgba(53, 242, 154, 0.35);
    background: rgba(53, 242, 154, 0.08);
}

.profile-feed-wrap {
    width: min(100%, 860px);
}

.profile-feed-wrap .deal-grid {
    margin: 0;
}

.profile-avatar {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    object-fit: cover;
}

.avatar-form {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.auth-copy {
    margin: -6px 0 18px;
    color: var(--muted);
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label {
    display: grid;
    gap: 6px;
}

.auth-form label > span,
.profile-list dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="url"],
.auth-form input[type="date"],
.auth-form input[type="file"],
.auth-form select,
.auth-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
}

.auth-form textarea {
    resize: vertical;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: var(--accent-strong);
    outline: 2px solid rgba(24, 199, 214, 0.18);
}

.auth-form small,
.field-error {
    color: #ff9b9b;
    font-size: 0.82rem;
}

.auth-form .checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-form .checkbox-line input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.auth-form .checkbox-line > span {
    display: inline;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.45;
}

.permissions-table-wrap {
    margin: 12px 0 4px;
    overflow-x: auto;
}

.permissions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.permissions-table th,
.permissions-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}

.permissions-table th {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.permissions-table td:first-child,
.permissions-table th:first-child {
    width: 96px;
    white-space: nowrap;
}

.permissions-table td:first-child input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.permissions-table tr:last-child td {
    border-bottom: 0;
}

.profile-create-panel {
    display: grid;
    gap: 12px;
}

.profile-create-panel > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    width: fit-content;
}

.profile-create-panel > summary::-webkit-details-marker {
    display: none;
}

.profile-create-panel__body {
    width: min(100%, 760px);
}

.auth-form button {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #06110b;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    color: var(--muted);
}

.auth-links a:hover {
    color: var(--text);
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
}

.alert--success {
    border: 1px solid rgba(53, 242, 154, 0.35);
    background: rgba(53, 242, 154, 0.08);
    color: #dfffee;
}

.alert--error {
    border: 1px solid rgba(255, 120, 120, 0.35);
    background: rgba(255, 120, 120, 0.08);
    color: #ffdede;
}

.profile-list {
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
}

.profile-list div {
    display: grid;
    gap: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.profile-list dd {
    margin: 0;
}

.section-heading {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.05rem;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.profile-password-panel {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.profile-password-panel__toggle {
    margin-top: 8px;
}

.profile-password-panel [data-password-panel] {
    margin-top: 12px;
}

.profile-password-panel [data-password-panel][hidden] {
    display: none !important;
}

.profile-password-panel .auth-form {
    margin-top: 8px;
}

.password-form {
    gap: 12px;
}

.profile-list--admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-list--admin div {
    min-width: 0;
}

.profile-list--admin dd {
    overflow-wrap: anywhere;
}

.profile-admin-panel {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.profile-admin-panel__heading {
    margin-bottom: 14px;
}

.profile-admin-panel__heading h2 {
    margin: 4px 0 0;
    font-size: 1.15rem;
}

.profile-admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-admin-actions form {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.profile-admin-actions label {
    display: grid;
    gap: 6px;
}

.profile-admin-actions label > span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.profile-admin-actions select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.profile-admin-actions button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #06110b;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.comments-section {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.comment-form {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.comment-form--compact {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
}

.comment-form label {
    display: grid;
    gap: 6px;
}

.comment-form span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.comment-form textarea,
.comment-report-form input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
}

.comment-form textarea {
    resize: vertical;
}

.comment-form button,
.comment-report-form button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #06110b;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.comment-list {
    display: grid;
    gap: 12px;
}

.comment-item {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.comment-item--reply {
    margin-left: 28px;
    background: var(--surface-soft);
}

.comment-item__header,
.comment-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.user-chip--inline {
    color: inherit;
}

.user-chip__avatar {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    object-fit: cover;
}

.community-post__author {
    flex-wrap: wrap;
}

.user-chip:hover {
    color: var(--accent);
}

.comment-item__header span,
.comment-item__actions summary {
    color: var(--muted);
    font-size: 0.86rem;
}

.comment-item p {
    margin: 10px 0;
}

.comment-report-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.notice-inline {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
}

.community-form {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.community-form label {
    display: grid;
    gap: 8px;
}

.community-form span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.community-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
    resize: vertical;
}

.community-form textarea:focus {
    border-color: var(--accent-strong);
    outline: 2px solid rgba(24, 199, 214, 0.18);
}

.community-form button {
    justify-self: start;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #06110b;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.community-list {
    display: grid;
    gap: 18px;
}

.community-post {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.community-post__header,
.community-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: space-between;
}

.community-post__header div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.community-post__header span,
.community-post__meta,
.community-report summary {
    color: var(--muted);
    font-size: 0.88rem;
}

.community-post p {
    margin: 0;
}

.community-post .comments-section {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.community-report {
    justify-self: start;
}

.admin-page {
    display: grid;
    gap: 20px;
}

.admin-header {
    display: grid;
    gap: 12px;
}

.admin-header h1 {
    margin-top: 8px;
}

.admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-menu__link {
    white-space: nowrap;
}

.admin-menu__link--active {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.12);
    color: var(--text);
}

.admin-list {
    display: grid;
    gap: 16px;
}

.admin-pending-list {
    display: grid;
    gap: 18px;
}

.admin-comment-list {
    gap: 14px;
}

.admin-comment-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.admin-comment-card__header,
.admin-comment-card__meta,
.admin-comment-card__context {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    justify-content: space-between;
}

.admin-comment-card__flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-comment-report-count {
    cursor: pointer;
}

.admin-comment-card__meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-comment-card__body p {
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-comment-card__context {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.admin-comment-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-comment-card__actions form {
    margin: 0;
}

.admin-comment-card__actions button {
    min-height: 40px;
}

.admin-comment-quarantine-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-table--compact {
    min-width: 100%;
}

.admin-table--compact th,
.admin-table--compact td {
    padding: 10px;
}

.admin-pending-deal {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.admin-pending-deal__preview .deal-card {
    margin: 0;
}

.admin-pending-deal__details {
    display: grid;
    gap: 10px;
}

.admin-review-warning {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #e0a42e;
    border-radius: 8px;
    background: color-mix(in srgb, #e0a42e 14%, var(--surface));
}

.admin-url-review {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.admin-url-review__row {
    display: grid;
    grid-template-columns: minmax(130px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.admin-url-review__row code {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--muted);
}

.admin-url-review__row button,
.admin-public-url-input button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.admin-public-url-state {
    margin: 0;
    color: var(--muted);
}

.admin-approval-form {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.admin-approval-form h3 {
    margin: 0;
}

.admin-approval-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-approval-form label {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    color: var(--text);
    font-weight: 800;
}

.admin-approval-form__wide {
    grid-column: 1 / -1;
}

.admin-approval-form input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.admin-approval-form input[aria-invalid="true"] {
    border-color: #ff7878;
}

.admin-approval-form small {
    color: var(--muted);
    font-weight: 500;
}

.admin-approval-form .field-error,
.admin-short-url-warning {
    color: #ff9292;
    font-weight: 800;
}

.admin-approval-form > button {
    justify-self: start;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #06110b;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.admin-public-url-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 0;
}

.admin-detail-grid div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.admin-detail-grid dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-weight: 700;
}

.admin-pending-deal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-pending-deal__actions form {
    margin: 0;
}

.admin-pending-deal__actions button,
.admin-pending-deal__actions .button-link,
.admin-action-modal button {
    min-height: 40px;
}

.admin-pending-deal__actions button,
.admin-action-modal button {
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #06110b;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 0 16px;
}

.admin-pending-deal__actions .danger-button,
.admin-action-modal .danger-button {
    background: #ff7878;
    color: #170606;
}

.admin-action-modal .auth-form {
    margin-top: 14px;
}

.admin-compact-details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.admin-compact-details summary {
    cursor: pointer;
    padding: 10px 12px;
    color: var(--text);
    font-weight: 800;
}

.admin-compact-details .admin-url {
    display: block;
    padding: 0 12px 12px;
}

.error-log-details {
    margin-top: 10px;
}

.error-log-details summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.error-log-stack {
    margin: 8px 0 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font: 0.78rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.admin-users-filter {
    align-items: end;
}

.admin-table-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.admin-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-badge--status {
    color: var(--accent-strong);
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-deal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.admin-deal__main {
    display: grid;
    gap: 10px;
}

.admin-deal h2 {
    margin: 0;
    font-size: 1.2rem;
}

.admin-note {
    padding: 10px 12px;
    border-left: 3px solid var(--accent-strong);
    background: var(--surface-soft);
}

.admin-url {
    overflow-wrap: anywhere;
    color: var(--accent-strong);
    font-size: 0.9rem;
}

.admin-deal__actions {
    display: grid;
    gap: 10px;
    align-content: start;
}

.admin-deal__actions form {
    display: grid;
    gap: 8px;
    margin: 0;
}

.admin-deal__actions input,
.admin-deal__actions select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
}

.admin-deal__actions button,
.danger-button,
.store-domain-row button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #06110b;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.admin-deal__actions .danger-button {
    background: #ff7878;
    color: #170606;
}

.store-domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.store-domain-list span {
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-inline-form {
    margin-bottom: 18px;
}

.admin-list--compact {
    gap: 10px;
}

.store-domain-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.store-domain-row form {
    margin: 0;
}

.store-domain-row .danger-button {
    background: #ff7878;
    color: #170606;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer a {
    color: var(--muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--accent);
}

.legal-document {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: clamp(22px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    line-height: 1.75;
}

.legal-document h1 {
    margin: 0 0 20px;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.1;
}

.legal-document h2 {
    margin: 38px 0 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: clamp(1.25rem, 4vw, 1.65rem);
    line-height: 1.3;
}

.legal-document p,
.legal-document ul {
    margin: 0 0 18px;
}

.legal-document ul {
    padding-left: 24px;
}

.legal-document li + li {
    margin-top: 8px;
}

.legal-document code {
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--surface-soft);
    color: var(--accent);
    overflow-wrap: anywhere;
}

.checkbox-line a {
    font-weight: 800;
}

@media print {
    .site-header,
    .site-footer {
        display: none;
    }

    .legal-document {
        width: 100%;
        padding: 0;
        border: 0;
        color: #111;
        background: #fff;
    }
}

@media (max-width: 760px) {
    .site-header__inner {
        align-items: center;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand account"
            "nav nav";
        gap: 8px 12px;
        min-height: 64px;
        padding: 10px 0;
    }

    .brand {
        grid-area: brand;
        min-width: 0;
        gap: 8px;
        font-size: 1.05rem;
    }

    .brand span {
        font-size: 0.95rem;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .brand__env {
        padding: 1px 6px;
        font-size: 0.66rem;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
    }

    .nav {
        grid-area: nav;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .account-nav {
        grid-area: account;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 6px;
        white-space: nowrap;
    }

    .account-nav a,
    .account-nav button {
        min-height: 34px;
        padding: 0 9px;
        font-size: 0.8rem;
    }

    .account-menu__toggle {
        gap: 6px;
        min-width: 48px;
        min-height: 46px;
    }

    .account-menu__toggle img {
        width: 32px;
        height: 32px;
    }

    .account-menu__toggle span {
        max-width: 72px;
        font-size: 0.64rem;
    }

    .main {
        padding: 40px 0;
    }

    .filters,
    .coupon-grid,
    .form-grid,
    .admin-deal,
    .admin-approval-form__grid,
    .profile-list--admin,
    .profile-admin-actions {
        grid-template-columns: 1fr;
    }

    .admin-url-review__row,
    .admin-public-url-input {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .deal-grid {
        max-width: none;
    }

    .deal-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
    }

    .deal-card__image {
        border-radius: 7px 7px 0 0;
    }

    .deal-card h2 a,
    .deal-card__body > p {
        display: block;
        overflow: visible;
        -webkit-line-clamp: initial;
    }

    .deal-share__menu {
        width: min(220px, calc(100vw - 48px));
    }

    .comment-item--reply {
        margin-left: 12px;
    }

    .filters__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .filters button,
    .filters__actions a {
        width: 100%;
    }
}

@media (min-width: 761px) and (max-width: 1020px) {
    .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coupon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .deal-card__image {
        min-height: 140px;
    }

    .deal-card__price strong {
        font-size: 1.2rem;
    }
}
