/* ===== PREMIUM — premium.php ===== */

/* ================================================
   PLANS SECTION
   ================================================ */
.plans-section {
    padding: 60px 20px 70px;
    text-align: center;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.plans-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(26,188,245,0.04) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,29,186,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.plans-title {
    position: relative;
    font-size: var(--text-3xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink) 0%, var(--blue) 50%, var(--pink) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.plans-subtitle {
    position: relative;
    font-size: var(--text-xl);
    color: var(--gray);
    margin-top: 8px;
    margin-bottom: 48px;
}

.plans-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* ===== PLAN CARD ===== */
.plan-card {
    background: var(--white);
    border-radius: 24px;
    padding: 36px 28px 32px;
    position: relative;
    top: 0;
    border: 2px solid #e5e7eb;
    box-shadow:
        0 5px 0 #d1d5db,
        0 7px 16px rgba(0,0,0,0.08);
    transition: all 0.2s;
    text-align: center;
}

.plan-card:hover {
    top: -4px;
    box-shadow:
        0 9px 0 #d1d5db,
        0 12px 24px rgba(0,0,0,0.12);
}

.plan-card.featured {
    border-color: var(--pink);
    box-shadow:
        0 5px 0 #c4389e,
        0 7px 16px rgba(255,29,186,0.15),
        0 0 0 1px rgba(255,29,186,0.1);
    transform: scale(1.03);
}

/* Shimmer sweep across featured card */
.plan-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.15) 45%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0.15) 55%,
        transparent 70%
    );
    background-size: 250% 100%;
    background-position: 150% 0;
    animation: cardShimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes cardShimmer {
    0%, 100% { background-position: 150% 0; }
    50% { background-position: -50% 0; }
}

.plan-card.featured:hover {
    top: -4px;
    box-shadow:
        0 9px 0 #c4389e,
        0 12px 28px rgba(255,29,186,0.2),
        0 0 0 1px rgba(255,29,186,0.1);
}

.plan-card.active {
    border-color: #22c55e;
    box-shadow:
        0 5px 0 #16a34a,
        0 7px 16px rgba(34,197,94,0.15),
        0 0 0 1px rgba(34,197,94,0.1);
    transform: scale(1.03);
}

.plan-card.active:hover {
    top: -4px;
    box-shadow:
        0 9px 0 #16a34a,
        0 12px 28px rgba(34,197,94,0.2),
        0 0 0 1px rgba(34,197,94,0.1);
}

.plan-badge-active {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(34,197,94,0.3);
    white-space: nowrap;
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff5dd0, var(--pink));
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(255,29,186,0.3);
    white-space: nowrap;
    animation: badgeFloat 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-4px); }
}

.plan-name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 4px;
}

.plan-screens {
    font-size: var(--text-sm);
    color: var(--gray);
    margin-bottom: 20px;
}

.plan-price {
    font-size: clamp(2.8rem, 6vw, 4.4rem);
    font-weight: 800;
    color: var(--gray-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.plan-price .currency {
    font-size: var(--text-2xl);
    vertical-align: super;
    font-weight: 700;
}

.plan-price .decimals {
    font-size: var(--text-2xl);
    vertical-align: super;
    font-weight: 700;
}

.plan-period {
    font-size: var(--text-sm);
    color: var(--gray);
    margin-bottom: 28px;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-base);
    color: var(--gray-dark);
}

.plan-feature svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--green);
}

/* ===== FEATURE TOOLTIP ===== */
.feature-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    margin-left: 2px;
    flex-shrink: 0;
}

.feature-tip > svg {
    width: 16px;
    height: 16px;
    color: var(--gray);
    transition: color 0.2s;
}

.feature-tip:hover > svg,
.feature-tip:focus > svg {
    color: var(--blue);
}

.feature-tip-text {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-dark);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 400;
    line-height: 1.45;
    padding: 10px 14px;
    border-radius: 10px;
    width: 220px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    z-index: 10;
}

.feature-tip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--gray-dark);
}

.feature-tip:hover .feature-tip-text,
.feature-tip:focus .feature-tip-text {
    opacity: 1;
    visibility: visible;
}

.plan-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    text-align: center;
    position: relative;
    top: 0;
}

.plan-btn-default {
    background: linear-gradient(to bottom, #2dd4f0, #0ea5e9);
    color: var(--white);
    box-shadow:
        0 5px 0 #0b7bb5,
        0 7px 12px rgba(26,188,245,0.3);
}

.plan-btn-default:hover {
    top: 3px;
    box-shadow:
        0 2px 0 #0b7bb5,
        0 3px 6px rgba(26,188,245,0.2);
}

.plan-btn-default:active {
    top: 5px;
    box-shadow:
        0 0px 0 #0b7bb5,
        0 1px 3px rgba(26,188,245,0.15);
}

.plan-btn-featured {
    background: linear-gradient(to bottom, #ff5dd0, var(--pink));
    color: var(--white);
    box-shadow:
        0 5px 0 #a8126e,
        0 7px 12px rgba(255,29,186,0.3);
}

.plan-btn-featured:hover {
    top: 3px;
    box-shadow:
        0 2px 0 #a8126e,
        0 3px 6px rgba(255,29,186,0.2);
}

.plan-btn-featured:active {
    top: 5px;
    box-shadow:
        0 0px 0 #a8126e,
        0 1px 3px rgba(255,29,186,0.15);
}

.plan-btn-active {
    background: linear-gradient(to bottom, #4ade80, #22c55e);
    color: var(--white);
    box-shadow:
        0 5px 0 #16a34a,
        0 7px 12px rgba(34,197,94,0.3);
    cursor: default;
}

.plan-btn-active:hover {
    top: 0;
    box-shadow:
        0 5px 0 #16a34a,
        0 7px 12px rgba(34,197,94,0.3);
}

/* ================================================
   FAQ SECTION
   ================================================ */
.faq-section {
    padding: 60px 20px 70px;
    background: var(--white);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26,188,245,0.3), var(--pink), rgba(26,188,245,0.3), transparent);
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.faq-subtitle {
    font-size: var(--text-xl);
    color: var(--gray);
}

.faq-list {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.faq-item {
    background: var(--gray-light);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-item.active {
    border-color: var(--blue);
    box-shadow: 0 2px 12px rgba(26,188,245,0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-dark);
    user-select: none;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--blue);
}

.faq-chevron {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--gray);
    transition: transform 0.3s, color 0.2s;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: var(--text-sm);
    color: var(--gray);
    line-height: 1.6;
}

/* ================================================
   AUTH MODAL
   ================================================ */
.auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-overlay.visible {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-modal {
    background: var(--white);
    border-radius: 24px;
    padding: 36px 32px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: var(--gray-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all 0.2s;
}

.auth-close:hover {
    background: #fee2e2;
    color: var(--red);
}

.auth-close svg {
    width: 20px;
    height: 20px;
}

.auth-modal-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 4px;
}

.auth-modal-subtitle {
    font-size: var(--text-sm);
    color: var(--gray);
    text-align: center;
    margin-bottom: 24px;
}

.auth-plan-tag {
    display: inline-block;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    color: var(--blue);
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: var(--text-sm);
}

.auth-form-group {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-dark);
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--gray-dark);
    transition: all 0.2s;
    outline: none;
}

.auth-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,188,245,0.1);
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: var(--text-sm);
    margin-bottom: 16px;
    border: 1px solid #fecaca;
    display: none;
}

.auth-error.visible {
    display: block;
}

.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(to bottom, #ff5dd0, var(--pink));
    color: var(--white);
    position: relative;
    top: 0;
    box-shadow:
        0 5px 0 #a8126e,
        0 7px 12px rgba(255,29,186,0.3);
    transition: all 0.15s;
}

.auth-submit:hover {
    top: 3px;
    box-shadow:
        0 2px 0 #a8126e,
        0 3px 6px rgba(255,29,186,0.2);
}

.auth-submit:active {
    top: 5px;
    box-shadow:
        0 0px 0 #a8126e,
        0 1px 3px rgba(255,29,186,0.15);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    top: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--gray);
    font-size: var(--text-xs);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    padding: 0 14px;
}

.auth-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--gray-dark);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-google-btn:hover {
    border-color: #d1d5db;
    background: var(--gray-light);
}

.auth-google-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-toggle {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--gray);
    margin-top: 18px;
}

.auth-toggle a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.auth-toggle a:hover {
    color: var(--pink);
}

.password-hint {
    font-size: var(--text-xs);
    color: var(--gray);
    margin-top: 4px;
}

/* ================================================
   TOAST
   ================================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gray-dark);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 14px;
    font-size: var(--text-sm);
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    white-space: nowrap;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (min-width: 768px) {
    .plans-section {
        padding: 70px 40px 90px;
    }

    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .plan-card.featured {
        transform: scale(1.05);
    }

    .faq-section {
        padding: 70px 40px 90px;
    }

    .faq-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        align-items: start;
    }
}

@media (max-width: 767px) {
    .plans-grid {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Profesional first on mobile */
    .plan-card.featured {
        order: -1;
        transform: none;
    }

    .plan-card.featured:hover {
        top: -4px;
    }

    .auth-modal {
        padding: 28px 20px;
    }
}

@media (max-width: 479px) {
    .plans-section {
        padding: 40px 12px 50px;
    }

    .plans-subtitle {
        margin-bottom: 36px;
    }

    .faq-section {
        padding: 40px 12px 50px;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: var(--text-sm);
    }

    .faq-answer-inner {
        padding: 0 18px 16px;
    }
}
