/* ===== Overlay ===== */
#get-pro-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0);
    visibility: hidden;
    transition: background 0.3s ease, visibility 0s linear 0.3s;
    font-family: 'Urbanist', sans-serif;
}
#get-pro-modal.visible {
    background: rgba(0, 0, 0, 0.88);
    visibility: visible;
    transition: background 0.3s ease, visibility 0s linear 0s;
}

/* ===== Card ===== */
.gp-card {
    background: #111;
    color: #fff;
    border-radius: 24px;
    padding: 36px 36px 32px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.07);
    opacity: 0;
    transform: scale(0.93) translateY(14px);
    transition: opacity 0.3s ease, transform 0.38s cubic-bezier(0.34, 1.15, 0.64, 1);
}
#get-pro-modal.visible .gp-card {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ===== Modal logo (centered) ===== */
.gp-modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 28px;
}

/* ===== Close button ===== */
#gp-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.07);
    border: none;
    color: rgba(255,255,255,0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
#gp-modal-close:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* ===== Headline ===== */
.gp-headline {
    font-size: 2.2rem;
    font-weight: 850;
    line-height: 1.1;
    margin: 0 0 8px;
    letter-spacing: -0.03em;
    text-align: center;
}
.gp-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.4);
    margin: 0 0 24px;
    line-height: 1.5;
    text-align: center;
}

/* ===== Separator ===== */
.gp-sep {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 20px 0;
}

/* ===== Google button (minimal icon style) ===== */
#gp-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Urbanist', sans-serif;
    transition: background 0.2s, border-color 0.2s, transform 0.18s;
    letter-spacing: -0.01em;
    width: 100%;
}
#gp-google-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }
#gp-google-btn:active { transform: translateY(0); }
#gp-google-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== Implicit consent notice ===== */
.gp-implicit-notice {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.25);
    line-height: 1.55;
    text-align: center;
    margin-top: 14px;
}
.gp-implicit-notice a { color: rgba(255,255,255,0.4); text-decoration: underline; text-underline-offset: 2px; }
.gp-implicit-notice a:hover { color: rgba(255,255,255,0.7); }

/* ===== Or divider ===== */
.gp-or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.2);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 14px 0;
}
.gp-or::before, .gp-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* ===== Email input ===== */
.gp-email-input-wrap {
    position: relative;
    margin-bottom: 10px;
}
.gp-email-input-wrap input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: 'Urbanist', sans-serif;
    color: #fff;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}
.gp-email-input-wrap input::placeholder { color: rgba(255,255,255,0.25); }
.gp-email-input-wrap input:focus {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.07);
}
.gp-email-input-wrap input.input-error { border-color: rgba(239,68,68,0.5); }

/* ===== Continue button (email step) ===== */
#gp-email-continue-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #111;
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Urbanist', sans-serif;
    transition: background 0.2s, transform 0.18s;
    letter-spacing: -0.01em;
    margin-top: 6px;
}
#gp-email-continue-btn:hover { background: #f0f0f0; transform: translateY(-1px); }
#gp-email-continue-btn:active { transform: translateY(0); }
#gp-email-continue-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== Consent checkboxes ===== */
.gp-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.5;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 7px 10px;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
    border: 1px solid transparent;
}
.gp-consent-item:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.5); }
.gp-consent-item input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #facc15;
    width: 14px;
    height: 14px;
    cursor: pointer;
}
.gp-consent-item a { color: rgba(255,255,255,0.55); text-decoration: underline; text-underline-offset: 2px; }
.gp-consent-item a:hover { color: #fff; }
.gp-consent-item.consent-error {
    border-color: rgba(239,68,68,0.4);
    background: rgba(239,68,68,0.06);
}

/* ===== Error ===== */
.gp-error {
    display: none;
    font-size: 0.82rem;
    color: #f87171;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(239,68,68,0.25);
    background: rgba(239,68,68,0.08);
    margin-bottom: 14px;
}

/* ===== Registration fields (step 2 email) ===== */
.gp-field {
    margin-bottom: 10px;
}
.gp-field input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 0.93rem;
    font-family: 'Urbanist', sans-serif;
    color: #fff;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}
.gp-field input::placeholder { color: rgba(255,255,255,0.25); }
.gp-field input:focus { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.07); }
.gp-field input.input-error { border-color: rgba(239,68,68,0.5); }

/* ===== Proceed / Register button ===== */
#gp-proceed-btn, #gp-register-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #111;
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 0.97rem;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Urbanist', sans-serif;
    letter-spacing: -0.01em;
    transition: background 0.2s, transform 0.18s;
    margin-top: 8px;
}
#gp-proceed-btn { display: none; }
#gp-register-btn { display: flex; }
#gp-proceed-btn:hover, #gp-register-btn:hover { background: #f0f0f0; transform: translateY(-1px); }
#gp-proceed-btn:active, #gp-register-btn:active { transform: translateY(0); }
#gp-proceed-btn:disabled, #gp-register-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== User tag ===== */
.gp-user-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 99px;
    padding: 6px 14px 6px 8px;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
}
.gp-user-dot {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== Back button ===== */
.gp-back-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 0.82rem;
    font-family: 'Urbanist', sans-serif;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 16px;
    transition: color 0.2s;
}
.gp-back-btn:hover { color: rgba(255,255,255,0.7); }

/* ===== Footer note ===== */
.gp-footer-note {
    margin-top: 16px;
    font-size: 0.73rem;
    color: rgba(255,255,255,0.2);
    text-align: center;
    line-height: 1.6;
}
.gp-footer-note a { color: rgba(255,255,255,0.35); text-decoration: none; }
.gp-footer-note a:hover { color: rgba(255,255,255,0.6); }

/* === PROMO POPUP (Apple TV Style) === */
.promo-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

.promo-popup.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.promo-popup-content.apple-style {
    background: #0a0a0a;
    border-radius: 20px;
    max-width: 860px;
    width: 100%;
    position: relative;
    transform: translateY(0) scale(1.02);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #fff;
    box-shadow: 0 40px 100px rgba(0,0,0,0.9);
    padding: 90px 48px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    outline: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

/* Ambient Glow Effect */
.promo-popup-content.apple-style::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 122, 255, 0.08) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
    z-index: 0;
    animation: pulse-glow 8s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
    from { opacity: 0.5; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1.05); }
}

.promo-popup.hidden .promo-popup-content.apple-style {
    transform: translateY(40px) scale(0.95);
}

.promo-popup-close.apple-close {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    color: #ccc;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.promo-popup-close.apple-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.promo-popup-close.apple-close:focus {
    border-color: #007aff;
    outline: none;
}

.top-logo {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.05em;
    z-index: 10;
    text-decoration: none;
    transition: color 0.2s;
}

.top-logo:hover {
    color: #fff;
}

.promo-large-heading {
    font-size: 4rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    margin-top: 16px;
    text-align: center;
}

.promo-large-heading span {
    color: #666;
    font-style: italic;
    font-weight: 400;
}

.promo-apple-cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.promo-apple-card {
    background: #1c1c1e;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.promo-card-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.promo-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
}

.promo-logo.pro {
    gap: 12px;
}

.promo-logo.pro::after {
    content: 'PRO';
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0;
    display: inline-block;
}

.promo-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.promo-badge {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.promo-badge.dim {
    background: rgba(255, 255, 255, 0.08);
    color: #bbb;
}

.promo-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex: 1;
}

.promo-features li {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.promo-features li::before {
    content: "•";
    color: #888;
}

.promo-small-text {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
    font-weight: 500;
}

.btn-apple-white {
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: block;
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
    text-decoration: none;
}

.btn-apple-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,255,255,0.2);
}

.btn-apple-white:active {
    transform: scale(0.98);
}

/* ==========================================================================
   === RESPONSIVE DIZAJN PRE MOBIL (MEDIA QUERIES) ===
   ========================================================================== */
@media (max-width: 768px) {
    /* Promo popup mobile */
    .promo-popup { 
        align-items: flex-start; /* Start from top to prevent cutting off the close button */
        overflow-y: auto; 
        padding: 20px;
    }
    
    .promo-apple-cards { 
        grid-template-columns: 1fr; 
    }
    
    .promo-popup-content.apple-style { 
        padding: 72px 24px 32px; 
        margin-top: 20px; /* Space from top */
        margin-bottom: 20px; /* Space from bottom */
        transform: none !important; /* Avoid scale/translate issues on mobile */
    }
    
    .top-logo { 
        top: 20px; 
    }
    
    .promo-popup-close.apple-close { 
        top: 16px; 
        left: 16px; 
        width: 32px; 
        height: 32px; 
        z-index: 20; 
    }
    
    .promo-large-heading { 
        font-size: 2.5rem; 
        margin-top: 24px; 
        margin-bottom: 32px; 
    }
}


/* ===== Account Summary (step 3) ===== */
.gp-account-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 20px;
}
.gp-account-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    flex-shrink: 0;
}
.gp-account-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.gp-account-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gp-account-email {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gp-account-status {
    padding-right: 4px;
}

/* ===== Responsive modal ===== */
@media (max-width: 480px) {
    #get-pro-modal { padding: 16px; align-items: flex-end; }
    .gp-card { padding: 28px 20px; border-radius: 20px 20px 0 0; max-width: 100%; }
    .gp-headline { font-size: 1.8rem; }
}
