.reseller-directory-section[hidden] { display: none !important; }
.reseller-directory-section { scroll-margin-top: 105px; }
.reseller-plan-interest { display: inline-flex; margin: 13px auto 0 !important; padding: 7px 12px; border: 1px solid rgba(249, 190, 70, .25); border-radius: 999px; background: rgba(249, 190, 70, .09); color: #f7d98a !important; font-size: .78rem !important; font-weight: 650; }
.reseller-plan-interest[hidden] { display: none !important; }

.public-reseller-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.public-reseller-card { min-width: 0; perspective: 1200px; }
.public-reseller-card-inner {
    position: relative;
    min-height: 390px;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .72s cubic-bezier(.2, .72, .2, 1);
}
.public-reseller-card[data-flipped="true"] .public-reseller-card-inner { transform: rotateY(180deg); }
@media (hover: hover) {
    .public-reseller-card:hover .public-reseller-card-inner { transform: rotateY(180deg); }
}
.public-reseller-face {
    position: absolute;
    inset: 0;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(243, 194, 83, .2);
    border-radius: 19px;
    background: radial-gradient(ellipse at 50% 0%, rgba(198, 145, 39, .11), transparent 48%), linear-gradient(150deg, #171a20, #101216 80%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .035);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.public-reseller-front {
    align-items: center;
    justify-content: center;
    padding: 27px 20px 20px;
    text-align: center;
}
.public-reseller-avatar {
    display: grid;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    place-items: center;
    overflow: hidden;
    border: 3px solid #d8ad4a;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #49402b, #17191d 72%);
    box-shadow: 0 0 0 6px rgba(216, 173, 74, .08), 0 12px 28px rgba(0, 0, 0, .3);
    color: #f0d17d;
    font-size: 2.15rem;
    font-weight: 750;
}
.public-reseller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.public-reseller-name {
    max-width: 100%;
    overflow: hidden;
    margin: 22px 0 0;
    color: #f6f4ee;
    font-size: 1.13rem;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.public-reseller-role { margin-top: 5px; color: #abb0ba; font-size: .82rem; letter-spacing: .025em; }
.public-reseller-location,
.public-reseller-back-location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #e4d8b7;
    font-size: .73rem;
}
.public-reseller-location {
    max-width: 100%;
    margin-top: 17px;
    padding: 8px 12px;
    border: 1px solid rgba(216, 173, 74, .2);
    border-radius: 999px;
    background: rgba(216, 173, 74, .075);
}
.public-reseller-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-reseller-location svg,
.public-reseller-back-location svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: #d8ad4a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.public-reseller-flip-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    color: #d8ad4a;
    cursor: pointer;
    font: inherit;
    font-size: .76rem;
    font-weight: 650;
    transition: color .18s ease;
}
.public-reseller-flip-toggle:hover { color: #ffe19a; }
.public-reseller-flip-toggle:focus-visible,
.public-reseller-contact:focus-visible { outline: 2px solid #f0ca67; outline-offset: 3px; }
.public-reseller-front-toggle { margin-top: auto; padding-top: 22px; }

.public-reseller-back {
    align-items: center;
    padding: 20px 17px 16px;
    overflow-y: auto;
    transform: rotateY(180deg);
    text-align: center;
    scrollbar-color: rgba(216, 173, 74, .45) transparent;
}
.public-reseller-back-name {
    max-width: 100%;
    overflow: hidden;
    margin: 0;
    color: #f6f4ee;
    font-size: 1rem;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.public-reseller-back-location { margin: 7px 0 0; color: #aeb5c1; }
.public-reseller-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 15px; }
.public-reseller-contact {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(216, 173, 74, .22);
    border-radius: 50%;
    background: rgba(216, 173, 74, .075);
    color: #ebd28e;
    text-decoration: none;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.public-reseller-contact:hover { transform: translateY(-2px); border-color: rgba(242, 200, 97, .65); background: rgba(216, 173, 74, .19); color: #fff1c5; }
.public-reseller-contact svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.public-reseller-contact-facebook svg { fill: currentColor; stroke: none; }
.public-reseller-details-grid {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(216, 173, 74, .14);
    text-align: left;
}
.public-reseller-detail-section { min-width: 0; }
.public-reseller-detail-section h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 7px; color: #e7d9b3; font-size: .71rem; font-weight: 700; }
.public-reseller-detail-section h4 svg { width: 14px; height: 14px; fill: none; stroke: #d8ad4a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.public-reseller-account-list { display: grid; gap: 6px; }
.public-reseller-account-item { min-width: 0; padding: 8px 9px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 9px; background: rgba(0, 0, 0, .2); }
.public-reseller-account-item > strong { display: block; overflow-wrap: anywhere; margin-bottom: 5px; color: #e9c76d; font-size: .69rem; font-weight: 700; }
.public-reseller-account-item dl { display: grid; gap: 3px; margin: 0; }
.public-reseller-account-item dl > div { display: grid; grid-template-columns: minmax(68px, auto) minmax(0, 1fr); gap: 6px; align-items: start; }
.public-reseller-account-item dt { color: #89909c; font-size: .61rem; font-weight: 500; }
.public-reseller-account-item dd { overflow-wrap: anywhere; margin: 0; color: #d5d8de; font-size: .64rem; text-align: right; }
.public-reseller-back-toggle { margin-top: auto; padding-top: 12px; }
.public-reseller-no-contact, .public-reseller-state { margin: 0; color: #a2a8b3; font-size: .78rem; line-height: 1.6; }
.public-reseller-state { grid-column: 1 / -1; padding: 18px; border: 1px solid rgba(154, 176, 211, .12); border-radius: 12px; background: rgba(255, 255, 255, .025); text-align: center; }
.reseller-picker-modal .public-reseller-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); }

@media (max-width: 1100px) { .public-reseller-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .public-reseller-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 520px) { .public-reseller-grid { grid-template-columns: minmax(0, 1fr); } .public-reseller-card-inner { min-height: 370px; } }
@media (prefers-reduced-motion: reduce) { .public-reseller-card-inner, .public-reseller-contact, .public-reseller-flip-toggle { transition: none; } }
