/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.5;
    min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Variables ── */
:root {
    --nav-h: 60px;
    --mobile-nav-h: 60px;
    --radius-card: 12px;
    --radius-pill: 999px;
    --radius-single: 16px;
    --gap: 10px;
    --color-border: #e8e8e8;
    --color-text-secondary: #666;
    --color-bg-hover: #f5f5f5;
    --max-w: 1280px;
    --pad-x: 20px;
    --transition: 0.18s ease;
}

/* ── Buttons ── */
.wg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
}
.wg-btn--dark {
    background: #111;
    color: #fff;
}
.wg-btn--dark:hover { background: #333; }
.wg-btn--ghost {
    background: transparent;
    color: #111;
    border: 1px solid var(--color-border);
}
.wg-btn--ghost:hover { background: var(--color-bg-hover); }
.wg-btn--dl { font-size: 13px; padding: 8px 18px; }
.wg-btn--sizes {
    font-size: 13px;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
}
.wg-btn--sizes:hover { background: var(--color-bg-hover); }

/* ── Nav ── */
.wg-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    height: var(--nav-h);
}
.wg-nav__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}
.wg-nav__logo {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    flex-shrink: 0;
}
.wg-nav__explore {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    flex-shrink: 0;
    transition: color var(--transition);
}
.wg-nav__explore:hover { color: #111; }
.wg-nav__search {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}
.wg-nav__search-icon {
    position: absolute;
    left: 14px;
    color: #999;
    pointer-events: none;
}
.wg-nav__search input {
    width: 100%;
    height: 38px;
    padding: 0 16px 0 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    color: #111;
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}
.wg-nav__search input:focus {
    border-color: #bbb;
    background: #fff;
}
.wg-nav__search input::placeholder { color: #aaa; }
.wg-nav__auth {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Category Pills ── */
.wg-pills {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: var(--nav-h);
    z-index: 90;
}
.wg-pills__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 10px var(--pad-x);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.wg-pills__inner::-webkit-scrollbar { display: none; }
.wg-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    color: #444;
    transition: all var(--transition);
    white-space: nowrap;
}
.wg-pill svg { flex-shrink: 0; }
.wg-pill:hover { border-color: #aaa; color: #111; }
.wg-pill--active {
    background: #111;
    border-color: #111;
    color: #fff;
}
.wg-pill--active:hover { background: #333; border-color: #333; }

/* ── Main layout ── */
.wg-main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px var(--pad-x) 80px;
}
.wg-section { }

/* ── Featured Slider ── */
.wg-slider-wrap {
    margin-bottom: 28px;
}
.wg-slider .splide__track {
    border-radius: var(--radius-single);
    overflow: hidden;
}
.wg-slide {
    display: block;
    position: relative;
    aspect-ratio: 16/6;
    overflow: hidden;
    border-radius: var(--radius-single);
}
.wg-slide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.wg-slide:hover .wg-slide__img { transform: scale(1.02); }
.wg-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 50%);
    border-radius: var(--radius-single);
}
.wg-slide__info {
    position: absolute;
    bottom: 24px;
    left: 28px;
    color: #fff;
    max-width: 480px;
}
.wg-slide__pill {
    display: inline-block;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.wg-slide__title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.wg-slide__desc {
    font-size: 13px;
    opacity: 0.65;
    line-height: 1.5;
}

/* Splide customization — expanding dots bottom-right */
.wg-slider .splide__pagination {
    position: absolute;
    bottom: 24px;
    right: 28px;
    left: auto;
    top: auto;
    transform: none;
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}
.wg-slider .splide__pagination__page {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    margin: 0;
    transition: all 0.3s;
}
.wg-slider .splide__pagination__page.is-active {
    background: #fff;
    width: 20px;
    height: 6px;
    border-radius: 3px;
    transform: none;
}
.wg-slider .splide__arrows { display: none; }

/* ── Grid ── */
.wg-grid {
    column-count: 4;
    column-gap: var(--gap);
}
.wg-card {
    break-inside: avoid;
    margin-bottom: var(--gap);
}
.wg-card__img-wrap {
    display: block;
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
    aspect-ratio: 16 / 10;
}
.wg-card__img-link {
    display: block;
    line-height: 0;
    position: absolute;
    inset: 0;
    z-index: 0;
}
.wg-card__img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
/* Ensure hover overlay sits above the link */
.wg-card__hover {
    z-index: 1;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    opacity: 0;
    transition: opacity var(--transition), background var(--transition);
    pointer-events: none;
}
.wg-card__img-wrap:hover .wg-card__hover {
    opacity: 1;
    background: rgba(0,0,0,0.15);
    pointer-events: none; /* overlay itself stays non-interactive */
}
/* Re-enable only on the interactive elements inside */
.wg-card__img-wrap:hover .wg-card__hover .wg-card__actions,
.wg-card__img-wrap:hover .wg-card__hover .wg-card__cat {
    pointer-events: auto;
}
.wg-card__img-wrap:hover .wg-card__img-link img { transform: scale(1.03); }
.wg-card__cat {
    align-self: flex-start;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
}
.wg-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}
.wg-card__btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}
.wg-card__btn:hover {
    background: #fff;
    transform: scale(1.08);
}
.wg-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 2px 0;
    gap: 8px;
}
.wg-card__title {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    transition: color var(--transition);
}
.wg-card__title:hover { color: #111; }
.wg-card__more {
    flex-shrink: 0;
    color: #aaa;
    padding: 2px;
    border-radius: 4px;
    transition: color var(--transition);
    display: flex;
    align-items: center;
}
.wg-card__more:hover { color: #555; }

/* ── More options dropdown ── */
/* ── More (•••) menu — matches sizes dropdown style exactly ── */
.wg-more-menu {
    position: fixed;
    background: var(--wg-bg-surface);
    border: 1px solid var(--wg-border);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    z-index: 9999;
    min-width: 160px;
    overflow: hidden;
    display: none;
    animation: wgFadeIn 0.12s ease;
}
.wg-more-menu.is-open { display: block; }
.wg-more-menu__item {
    all: unset;
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    font-size: 13px !important;
    font-weight: 400 !important;
    font-family: inherit !important;
    color: var(--wg-text-secondary) !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    box-sizing: border-box;
    border-bottom: 1px solid var(--wg-border) !important;
    line-height: 1.4;
}
.wg-more-menu__item:last-child { border-bottom: none !important; }
.wg-more-menu__item:hover { background: var(--wg-bg-hover) !important; color: var(--wg-text) !important; }
.wg-more-menu__item--download {
    color: var(--wg-text-secondary) !important;
    background: transparent !important;
    background-color: transparent !important;
    text-decoration: none !important;
}
.wg-more-menu__item--download:hover { background: var(--wg-bg-hover) !important; }
.wg-more-menu__item--report:hover { background: var(--wg-bg-hover) !important; }

/* ── Single page ── */
.wg-single-main {
    padding-top: 20px;
}
.wg-single-wrap {
    max-width: 720px;
    margin: 0 auto;
}
.wg-single-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-single);
    overflow: hidden;
    margin-bottom: 36px;
}
.wg-single-img-wrap {
    width: 100%;
    background: #f0f0f0;
    border-radius: var(--radius-single) var(--radius-single) 0 0;
    overflow: hidden;
}
.wg-single-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Action bar */
.wg-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    gap: 8px;
    flex-wrap: wrap;
}
.wg-action-bar__left {
    display: flex;
    align-items: center;
    gap: 4px;
}
.wg-action-bar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.wg-action-btn {
    display: flex;
    align-items: center;
}
.wg-action-btn__inner {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #555;
    font-size: 13px;
    transition: background var(--transition), color var(--transition);
}
.wg-action-btn__inner:hover {
    background: var(--color-bg-hover);
    color: #111;
}
.wg-like-count {
    font-size: 13px;
    font-weight: 500;
}
.wg-action-btn--like .wp-ulike-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #555;
    background: none;
    border: none;
    font-size: 13px;
    font-family: inherit;
    transition: background var(--transition), color var(--transition);
}
.wg-action-btn--like .wp-ulike-btn:hover { background: var(--color-bg-hover); }

/* More Sizes dropdown */
.wg-sizes-wrap { position: relative; }
.wg-sizes-dropdown {
    position: fixed;
    background: var(--wg-bg-surface);
    border: 1px solid var(--wg-border);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    min-width: 190px;
    z-index: 9999;
    overflow: hidden;
    display: none;
    animation: wgFadeIn 0.12s ease;
}
.wg-sizes-dropdown.is-open { display: block; }
.wg-size-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--wg-text-secondary);
    transition: background 0.15s;
    border-bottom: 1px solid var(--wg-border);
}
.wg-size-item:last-child { border-bottom: none; }
.wg-size-item:hover { background: var(--wg-bg-hover); color: var(--wg-text); }
.wg-size-item__label { font-weight: 500; }
.wg-size-item__res { color: var(--wg-text-hint); font-size: 11px; }
.wg-chevron { transition: transform 0.15s ease; }
.wg-btn--sizes[aria-expanded="true"] .wg-chevron { transform: rotate(180deg); }

/* Single info */
.wg-single-info {
    padding: 16px 20px 20px;
}
.wg-single-title { color: var(--wg-text);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: #111;
}
.wg-single-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}
.wg-more-link {
    color: #111;
    font-weight: 500;
    margin-left: 4px;
}
.wg-single-author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wg-single-author__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.wg-single-author__name {
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

/* Related */
/* Single page related grid — use 3 cols desktop, 2 mobile */
.wg-single-wrap .wg-grid { column-count: 3; }
@media (max-width: 768px) {
    .wg-single-wrap .wg-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-count: unset;
        gap: var(--gap);
        align-items: start;
    }
    /* Reset card margins inside grid layout */
    .wg-single-wrap .wg-grid .wg-card {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }
}

.wg-related { margin-top: 8px; }
.wg-related__title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: #111;
}

/* ── Pagination ── */
.wg-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.wg-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.wg-pagination .page-numbers:hover { border-color: #aaa; color: #111; }
.wg-pagination .page-numbers.current {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* ── Empty / 404 ── */
.wg-empty {
    padding: 48px;
    text-align: center;
    color: #999;
    font-size: 14px;
}
.wg-404 { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.wg-404__inner { text-align: center; }
.wg-404__code { font-size: 80px; font-weight: 700; letter-spacing: -0.04em; color: #111; line-height: 1; margin-bottom: 12px; }
.wg-404__msg { font-size: 16px; color: #666; margin-bottom: 24px; }

/* ── Footer ── */
.wg-footer {
    border-top: 1px solid var(--color-border);
    padding: 32px var(--pad-x);
    margin-top: 24px;
}
.wg-footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.wg-footer__logo { font-size: 15px; font-weight: 700; letter-spacing: -0.03em; }
.wg-footer__links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.wg-footer__links a { font-size: 12px; color: #888; transition: color var(--transition); }
.wg-footer__links a:hover { color: #111; }
.wg-footer__copy { font-size: 11px; color: #bbb; }

/* ── Mobile nav ── */
.wg-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    height: var(--mobile-nav-h);
    padding: 0 8px;
    justify-content: space-around;
    align-items: center;
}
.wg-mobile-nav__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #888;
    transition: color var(--transition), background var(--transition);
}
.wg-mobile-nav__item:hover,
.wg-mobile-nav__item.active { color: #111; }
.wg-mobile-nav__item--upload {
    width: 44px;
    height: 44px;
    background: #111;
    border-radius: 14px;
    color: #fff;
}
.wg-mobile-nav__item--upload:hover { background: #333; color: #fff; }

/* ── Collection archive hero ── */
.wg-collection-main { padding-top: 0; }
.wg-collection-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: var(--radius-single);
    margin: 20px var(--pad-x) 28px;
    display: flex;
    align-items: flex-end;
    background: #111;
}
.wg-collection-hero__img-wrap {
    position: absolute;
    inset: 0;
}
.wg-collection-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}
.wg-collection-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}
.wg-collection-hero__info {
    position: relative;
    padding: 28px;
    color: #fff;
}
.wg-collection-hero__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 6px;
}
.wg-collection-hero__title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}
.wg-collection-hero__desc {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}
.wg-collection-hero__count {
    font-size: 12px;
    opacity: 0.6;
}
.wg-collection-main .wg-section {
    padding: 0 var(--pad-x);
}
.wg-collection-section { margin-bottom: 48px; }
.wg-section-header { margin-bottom: 20px; padding: 0 var(--pad-x); }
.wg-section-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.wg-section-sub { font-size: 13px; color: var(--color-text-secondary); }
.wg-similar-section { padding-top: 8px; }

@media (max-width: 768px) {
    .wg-collection-hero { height: 200px; margin: 14px var(--pad-x) 20px; }
    .wg-collection-hero__title { font-size: 22px; }
    .wg-collection-hero__info { padding: 20px; }
}

/* ── Submit page ── */
.wg-submit-main { padding-top: 32px; }
.wg-submit-wrap { max-width: 640px; margin: 0 auto; }
.wg-submit-header { margin-bottom: 28px; }
.wg-submit-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.wg-submit-sub { font-size: 14px; color: var(--color-text-secondary); }
.wg-submit-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-single); padding: 28px; }

/* ── AddToAny overrides ── */
.wg-addtoany .a2a_dd {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 8px;
    color: #555;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}
.wg-addtoany .a2a_dd:hover { background: var(--color-bg-hover); color: #111; }
.wg-addtoany .a2a_dd svg { display: block; }

/* ── Animations ── */
@keyframes wgFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .wg-grid { column-count: 3; }
}

@media (max-width: 768px) {
    :root { --pad-x: 14px; }
    .wg-nav__explore,
    .wg-nav__auth { display: none; }
    .wg-nav__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .wg-nav__inner { justify-content: flex-end; }
    .wg-nav__search { max-width: none; margin: 0; flex: 1; }
    .wg-grid { column-count: 2; }
    .wg-slide { aspect-ratio: 2/1; }
    .wg-slide__overlay { background: rgba(255,255,255,0.06), linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%); }
    .wg-slide__title { font-size: 13px; }
    .wg-slide__desc { display: none; }
    .wg-slide__pill { font-size: 9px; padding: 2px 8px; margin-bottom: 5px; }
    .wg-slide__info { bottom: 12px; left: 14px; max-width: 70%; }
    .wg-slider-wrap { margin-bottom: 16px; }
    .wg-slider .splide__pagination { bottom: 12px; right: 14px; gap: 4px; }
    .wg-slider .splide__pagination__page { width: 5px; height: 5px; }
    .wg-slider .splide__pagination__page.is-active { width: 16px; height: 5px; }
    .wg-main { padding-bottom: calc(var(--mobile-nav-h) + 20px); }
    .wg-mobile-nav { display: flex; }
    .wg-single-wrap { max-width: 100%; }
    .wg-action-bar { padding: 10px 12px; }
    .wg-btn--dl { font-size: 12px; padding: 7px 12px; }
    .wg-btn--sizes { font-size: 12px; padding: 7px 10px; }
    .wg-action-bar__right { flex-wrap: wrap; }

    /* On mobile: hide hover overlay so tap goes straight to the wallpaper page */
    .wg-card__hover { display: none !important; }
}

@media (max-width: 400px) {
    .wg-grid { column-count: 2; }
    .wg-card__title { font-size: 11px; }
    .wg-card__meta { padding: 5px 2px 0; }
}

/* ── Auth pages (Theme My Login) ── */
.wg-page-main {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px var(--pad-x) 100px;
}
/* Auth forms: narrow centered card */
.tml-action .wg-page-wrap { max-width: 420px; }

/* Content pages (About, DMCA, Privacy, Terms, etc.): wide readable column */
.wg-page-wrap {
    width: 100%;
    max-width: 720px;
    padding: 20px 0 60px;
}

/* ── Page content typography ── */
.wg-page-wrap .entry-content h1,
.wg-page-wrap h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.2;
}
.wg-page-wrap .entry-content h2,
.wg-page-wrap h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 36px;
    margin-bottom: 10px;
    line-height: 1.3;
}
.wg-page-wrap .entry-content h3,
.wg-page-wrap h3 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}
.wg-page-wrap .entry-content p,
.wg-page-wrap p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
}
.wg-page-wrap .entry-content ul,
.wg-page-wrap ul,
.wg-page-wrap .entry-content ol,
.wg-page-wrap ol {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    padding-left: 24px;
    margin-bottom: 16px;
}
.wg-page-wrap .entry-content li,
.wg-page-wrap li {
    margin-bottom: 6px;
}
.wg-page-wrap .entry-content a,
.wg-page-wrap a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.wg-page-wrap .entry-content a:hover,
.wg-page-wrap a:hover { opacity: 0.7; }
.wg-page-wrap em { color: #888; font-size: 13px; }

/* Table styling for DMCA agent info */
.wg-page-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}
.wg-page-wrap table td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    line-height: 1.5;
}
.wg-page-wrap table td:first-child {
    background: #f9f9f9;
    width: 40%;
    font-weight: 500;
    color: #555;
}

@media (max-width: 768px) {
    .wg-page-wrap { padding: 16px 0 40px; }
    .wg-page-wrap h1 { font-size: 22px; }
    .wg-page-wrap h2 { font-size: 16px; }
}

/* Card */
.wg-page-wrap .tml {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-single);
    padding: 36px 32px;
}

/* Heading */
.wg-page-wrap .tml::before {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    margin-bottom: 28px;
    text-align: center;
}
.wg-page-wrap .tml-login::before { content: 'Welcome back'; }
.wg-page-wrap .tml-register::before { content: 'Create an account'; }
.wg-page-wrap .tml-lost-password::before { content: 'Reset your password'; }

/* Fields */
.wg-page-wrap .tml-field-wrap { margin-bottom: 14px; }
.wg-page-wrap .tml-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.wg-page-wrap .tml-field {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    color: #111;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
}
.wg-page-wrap .tml-field:focus { border-color: #999; background: #fff; }

/* Submit button */
.wg-page-wrap .tml-button {
    width: 100%;
    height: 46px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 20px;
    letter-spacing: 0.01em;
}
.wg-page-wrap .tml-button:hover { background: #333; }

/* Remember me */
.wg-page-wrap .tml-rememberme-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-top: 12px;
}
.wg-page-wrap .tml-rememberme-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #111;
}

/* Links */
.wg-page-wrap .tml-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    list-style: none;
    padding-left: 0;
}
.wg-page-wrap .tml-links li { margin-bottom: 8px; }
.wg-page-wrap .tml-links a {
    font-size: 13px;
    color: #555;
    transition: color 0.15s;
}
.wg-page-wrap .tml-links a:hover { color: #111; }

/* Loginizer social login buttons */
.wg-page-wrap .lzr-social-login {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 18px 0 4px;
}
.wg-page-wrap .lzr-social-login a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s;
    overflow: hidden;
}
.wg-page-wrap .lzr-social-login a:hover { border-color: #999; background: #fff; }
.wg-page-wrap .lzr-social-login img { width: 22px; height: 22px; object-fit: contain; }
.wg-page-wrap .lzr-social-login .lzr-sep {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #aaa;
    margin: 14px 0;
}
.wg-page-wrap .lzr-social-login .lzr-sep::before,
.wg-page-wrap .lzr-social-login .lzr-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* Hide AddToAny on auth pages */
.wg-page-main .addtoany_share_save_container,
.wg-page-main .a2a_kit { display: none !important; }

/* Alerts */
.wg-page-wrap .tml-alerts { margin-bottom: 16px; }
.wg-page-wrap .tml-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 8px;
}
.wg-page-wrap .tml-alert-error { background: #fef2f2; color: #c0392b; border: 1px solid #fecaca; }
.wg-page-wrap .tml-alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }



/* ── Profile page ── */
.wg-profile-main { padding-top: 32px; }
.wg-profile-wrap { max-width: 960px; margin: 0 auto; }

.wg-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
    flex-wrap: wrap;
}
.wg-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--color-border);
}
.wg-profile-info { flex: 1; min-width: 0; }
.wg-profile-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.wg-profile-meta { font-size: 13px; color: var(--color-text-secondary); }
.wg-profile-upload-btn { flex-shrink: 0; }

/* Tabs */
.wg-profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}
.wg-profile-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition), border-color var(--transition);
}
.wg-profile-tab:hover { color: #111; }
.wg-profile-tab--active { color: #111; border-bottom-color: #111; }
.wg-profile-tab__count {
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
}
.wg-profile-tab--active .wg-profile-tab__count { background: #111; color: #fff; }

/* Panels */
.wg-profile-panel--hidden { display: none; }

/* Empty state */
.wg-profile-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
}
.wg-profile-empty p { font-size: 14px; margin-bottom: 20px; }

/* Footer */
.wg-profile-footer {
    text-align: center;
    padding: 32px 0 0;
    margin-top: 32px;
    border-top: 1px solid var(--color-border);
}
.wg-profile-signout {
    font-size: 13px;
    color: #999;
    transition: color var(--transition);
}
.wg-profile-signout:hover { color: #c0392b; }

@media (max-width: 768px) {
    .wg-profile-header { gap: 14px; }
    .wg-profile-avatar { width: 56px; height: 56px; }
    .wg-profile-name { font-size: 17px; }
    .wg-profile-upload-btn { width: 100%; text-align: center; justify-content: center; }
}

/* ── Admin delete button ── */
.wg-card__btn--delete {
    background: rgba(220, 38, 38, 0.85) !important;
    color: #fff !important;
}
.wg-card__btn--delete:hover {
    background: rgb(220, 38, 38) !important;
}
.wg-action-btn--delete {
    color: #dc2626 !important;
}
.wg-action-btn--delete:hover {
    background: rgba(220, 38, 38, 0.1) !important;
}

/* ── More menu delete item (admin only) ── */
.wg-more-menu__item--delete {
    color: #dc2626;
}
.wg-more-menu__item--delete:hover {
    background: #fef2f2;
    color: #dc2626;
}



/* ── Like button — custom heart ── */
.wg-ulike-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
}
.wg-like-heart {
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #555;
    transition: color 0.15s;
}
.wg-like-heart:hover { color: #e11d48; }
.wg-like-heart svg {
    transition: transform 0.15s, fill 0.15s, stroke 0.15s;
    flex-shrink: 0;
}
.wg-like-heart:hover svg { transform: scale(1.15); }
.wg-like-heart.is-liked { color: #e11d48; }
.wg-like-heart.is-liked svg { fill: #e11d48; stroke: #e11d48; }
.wg-like-heart .wg-like-count {
    font-size: 13px;
    font-weight: 500;
}

/* ── Admin delete button cleanup ── */
.wg-card__btn--delete,
.wg-action-btn--delete { display: none; }

/* ── Report modal ── */
.wg-report-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wg-report-modal.is-open { display: flex; }
.wg-report-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}
.wg-report-modal__box {
    position: relative;
    background: #fff;
    border-radius: var(--radius-single);
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    animation: wgFadeIn 0.15s ease;
}
.wg-report-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--color-border);
}
.wg-report-modal__title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.wg-report-modal__close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.wg-report-modal__close:hover { background: var(--wg-bg-hover); }
.wg-report-modal__body { padding: 20px 24px; }
.wg-report-modal__desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 18px;
    line-height: 1.5;
}
.wg-report-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 24px 20px;
    border-top: 1px solid var(--color-border);
}
.wg-report-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 6px;
    margin-top: 14px;
}
.wg-report-label:first-of-type { margin-top: 0; }
.wg-report-optional { font-weight: 400; text-transform: none; color: #aaa; }
.wg-report-select,
.wg-report-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #111;
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.wg-report-select:focus,
.wg-report-textarea:focus { border-color: var(--wg-text-hint); background: var(--wg-bg-surface); }
.wg-report-textarea { resize: vertical; min-height: 80px; }
.wg-report-status {
    font-size: 13px;
    margin-top: 12px;
    line-height: 1.4;
}
.wg-report-status--success { color: #16a34a; }
.wg-report-status--error   { color: #dc2626; }

/* Report form — name/email row */
.wg-report-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.wg-report-field { display: flex; flex-direction: column; }
.wg-report-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #111;
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.wg-report-input:focus { border-color: var(--wg-text-hint); background: var(--wg-bg-surface); }
.wg-report-required { color: #dc2626; }
@media (max-width: 480px) { .wg-report-row { grid-template-columns: 1fr; } }

/* ── Share menu — identical styling to more menu ── */
.wg-share-menu {
    position: fixed;
    background: var(--wg-bg-surface);
    border: 1px solid var(--wg-border);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    z-index: 9999;
    min-width: 160px;
    overflow: hidden;
    display: none;
    animation: wgFadeIn 0.12s ease;
}
.wg-share-menu.is-open { display: block; }
/* Share link items — reset anchor styles */
.wg-share-menu .wg-more-menu__item {
    color: var(--wg-text-secondary) !important;
    background: transparent !important;
    background-color: transparent !important;
    text-decoration: none !important;
}

/* ── Card hover actions ── */
.wg-card__hover-actions {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}
.wg-card__img-wrap:hover .wg-card__hover-actions { pointer-events: auto; }
.wg-card__expand,
.wg-card__dl-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.12s;
}
.wg-card__img-wrap:hover .wg-card__expand,
.wg-card__img-wrap:hover .wg-card__dl-btn { opacity: 1; transform: translateY(0); }
.wg-card__expand:hover,
.wg-card__dl-btn:hover { background: #fff; }

/* ── Lightbox ── */
.wg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.wg-lightbox.is-open { display: flex; }
.wg-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.80);
    animation: wgFadeIn 0.2s ease;
    cursor: zoom-out;
}
.wg-lightbox__card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    max-width: min(92vw, 1000px);
    max-height: calc(100vh - 80px);
    width: 100%;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
    animation: wgLbIn 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes wgLbIn {
    from { opacity: 0; transform: scale(0.93); }
    to   { opacity: 1; transform: scale(1); }
}
.wg-lightbox__close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s;
}
.wg-lightbox__close:hover { background: rgba(0,0,0,0.8); }
.wg-lightbox__img-wrap {
    position: relative;
    line-height: 0;
}
.wg-lightbox__img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 80px);
    min-height: 420px;
    object-fit: cover;
}
.wg-lightbox__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wg-lightbox__download {
    all: unset;
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: #fff !important;
    background-color: #fff !important;
    color: #111 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: opacity 0.15s;
}
.wg-lightbox__download:hover { opacity: 0.88; }
.wg-lightbox__view {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.92);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
    transition: background 0.15s;
}
.wg-lightbox__view:hover { background: rgba(255,255,255,0.15); }

/* ── Blur-up: lightbox ── */
.wg-lightbox__img {
    filter: blur(20px);
    transform: scale(1.05);
    transition: filter 0.4s ease, transform 0.4s ease;
}
.wg-lightbox__img.wg-lb-sharp {
    filter: blur(0);
    transform: scale(1);
}

/* ── Blur-up: single wallpaper page ── */
.wg-single-img {
    filter: blur(20px);
    transform: scale(1.03);
    transition: filter 0.4s ease, transform 0.4s ease;
}
.wg-single-img.wg-hero-sharp {
    filter: blur(0);
    transform: scale(1);
}

/* ── Explore page ── */
.wg-explore-main { padding-top: 20px; }
.wg-explore-header { margin-bottom: 32px; }
.wg-explore-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    margin-bottom: 6px;
}
.wg-explore-sub {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}
.wg-explore-section { margin-bottom: 48px; }
.wg-explore-section__title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111;
    margin-bottom: 16px;
}

/* Category cards */
.wg-explore-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.wg-explore-cat {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none;
}
.wg-explore-cat__img-wrap {
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
    overflow: hidden;
}
.wg-explore-cat__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.wg-explore-cat:hover .wg-explore-cat__img { transform: scale(1.04); }
.wg-explore-cat__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 50%);
    border-radius: var(--radius-card);
}
.wg-explore-cat__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.wg-explore-cat__name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.wg-explore-cat__count {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}

/* Collection cards */
.wg-explore-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.wg-explore-col {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none;
}
.wg-explore-col__img-wrap {
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    overflow: hidden;
}
.wg-explore-col__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.wg-explore-col:hover .wg-explore-col__img { transform: scale(1.04); }
.wg-explore-col__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 55%);
    border-radius: var(--radius-card);
}
.wg-explore-col__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
}
.wg-explore-col__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.wg-explore-col__desc {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .wg-explore-cats { grid-template-columns: repeat(3, 1fr); }
    .wg-explore-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .wg-explore-cats { grid-template-columns: repeat(2, 1fr); }
    .wg-explore-cols { grid-template-columns: 1fr; }
    .wg-explore-title { font-size: 22px; }
}
