/* 7Stars Accounts - Modale */

/* Ukryj stary modal logowania z motywu Blocksy i innych */
#account-modal,
.ct-panel[id="account-modal"],
.ct-panel.ct-account-modal,
[data-id="account"] .ct-panel,
.ajax-login-register-container,
[id*="ajax-login"],
.login-popup,
.modal-login { display: none !important; visibility: hidden !important; }

/* ===== Overlay ===== */
.stars-modal-overlay {
    position: fixed; inset: 0; z-index: 99999;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    padding: 20px;
    animation: starsOverlayIn .25s ease;
}
.stars-modal-overlay.is-visible { display: flex; }
@keyframes starsOverlayIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Box ===== */
.stars-modal-box {
    position: relative;
    animation: starsBoxIn .3s ease;
}
@keyframes starsBoxIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.stars-modal-wide {
    background: #e5e7e9;
    max-width: 820px; width: 100%;
    min-height: 280px;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.stars-modal-narrow {
    max-width: 440px; width: 100%;
}

/* ===== Close button ===== */
.stars-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none;
    font-size: 26px; line-height: 1; cursor: pointer;
    color: rgba(26,42,58,.4); transition: color .3s;
    z-index: 10;
}
.stars-modal-close:hover { color: #1a2a3a; }

.stars-modal-close-above {
    top: -44px; right: 0;
    color: rgba(255,255,255,.5);
}
.stars-modal-close-above:hover { color: #c6a55c; }

/* ===== Selection grid ===== */
.stars-selection-grid {
    display: flex; min-height: 280px;
}
@media (max-width: 640px) { .stars-selection-grid { flex-direction: column; } }

.stars-selection-option {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; padding: 48px 24px;
    transition: background .3s;
}
.stars-selection-option:first-child { border-right: 1px solid rgba(26,42,58,.1); }
@media (max-width: 640px) {
    .stars-selection-option:first-child { border-right: none; border-bottom: 1px solid rgba(26,42,58,.1); }
}
.stars-selection-option:hover { background: rgba(0,0,0,.04); }
.stars-selection-option span {
    font-size: 10px; letter-spacing: .4em; text-transform: uppercase;
    color: rgba(26,42,58,.6); margin-bottom: 16px;
}
.stars-gold-line { width: 48px; height: 1px; background: rgba(198,165,92,.5); }

/* ===== Dark modal (login / register) ===== */
.stars-modal-dark { background: rgba(0,0,0,.7); }

/* ===== Form inside modals ===== */
.stars-modal-form { display: flex; flex-direction: column; gap: 24px; }

.stars-field label {
    display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
    color: #c6a55c; margin-bottom: 8px; opacity: .8;
}
.stars-field input {
    width: 100%; background: transparent;
    border: none; border-bottom: 1px solid rgba(255,255,255,.2);
    padding: 10px 0; font-size: 15px; color: #fff;
    font-family: inherit; font-weight: 300;
    outline: none; transition: border-color .3s;
}
.stars-field input:focus { border-bottom-color: #c6a55c; }
.stars-field input::placeholder { color: rgba(255,255,255,.15); }

/* ===== Register tabs ===== */
.stars-register-tabs {
    display: flex; border-bottom: 1px solid rgba(255,255,255,.2); margin-bottom: 28px;
}
.stars-reg-tab {
    flex: 1; background: transparent; border: none;
    padding: 12px 0; font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
    cursor: pointer; color: rgba(255,255,255,.5);
    border-bottom: 2px solid transparent;
    transition: all .3s;
}
.stars-reg-tab:hover { color: #fff; }
.stars-reg-tab.is-active { color: #c6a55c; border-bottom-color: #c6a55c; }

/* ===== Buttons ===== */
.stars-modal-btn {
    width: 100%; background: #c6a55c; color: #1a2a3a;
    border: none; padding: 16px; margin-top: 8px;
    font-size: 10px; letter-spacing: .3em; text-transform: uppercase; font-weight: 700;
    cursor: pointer; transition: background .4s; font-family: inherit;
}
.stars-modal-btn:hover { background: #fff; }
.stars-modal-btn:disabled { opacity: .6; cursor: wait; }

/* ===== Links ===== */
.stars-modal-links { text-align: center; margin-top: 8px; }
.stars-modal-links a {
    font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(255,255,255,.4); text-decoration: none; transition: color .3s;
}
.stars-modal-links a:hover { color: #c6a55c; }

/* ===== Message ===== */
.stars-modal-msg {
    text-align: center; font-size: 12px; min-height: 16px; margin-top: 4px;
}
.stars-modal-msg.is-ok { color: #6bc48a; }
.stars-modal-msg.is-err { color: #e8686a; }

/* ===== Business fields ===== */
.stars-business-fields { display: flex; flex-direction: column; gap: 24px; }
