/* Modal Styles */
.analix-fg-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.analix-fg-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    position: relative;
    animation: analixFgModalIn 0.4s ease-out;
}

@keyframes analixFgModalIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.analix-fg-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.analix-fg-close:hover,
.analix-fg-close:focus {
    color: #333;
    text-decoration: none;
}

.analix-fg-modal-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: analixFgBounce 2s infinite;
}

@keyframes analixFgBounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.analix-fg-modal h2 {
    color: #6D28D9;
    margin-top: 0;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.analix-fg-modal p {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.analix-fg-btn {
    display: inline-block;
    background-color: #6D28D9;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
}

.analix-fg-btn:hover {
    background-color: #5b21b6;
    color: white;
}

.analix-fg-btn:active {
    transform: scale(0.97);
}

.analix-fg-locked-qty {
    display: inline-block;
    padding: 5px 10px;
    background: #f1f1f1;
    border-radius: 4px;
    font-weight: bold;
    color: #555;
}

/* Progress Bar */
.analix-fg-progress-wrapper {
    background: #f9f9fc;
    border: 1px solid #e1e1f0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.analix-fg-progress-text {
    font-size: 16px;
    color: #444;
    margin-bottom: 12px;
}

.analix-fg-progress-text strong {
    color: #6D28D9;
}

.analix-fg-progress-bar {
    background: #e2e8f0;
    border-radius: 10px;
    height: 12px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.analix-fg-progress-fill {
    background: linear-gradient(90deg, #8B5CF6 0%, #6D28D9 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
    width: 0; /* Animated via inline style */
}

/* Gift Cards */
.analix-fg-cards-section {
    margin-top: 40px;
    margin-bottom: 30px;
}

.analix-fg-cards-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #6D28D9;
    display: inline-block;
    padding-bottom: 5px;
}

/* Grid is now generated dynamically via inline CSS in class-analix-fg-frontend.php */

.analix-fg-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.analix-fg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.analix-fg-card.selected {
    border-color: #6D28D9;
    background: #fcfaff;
}

.analix-fg-card-img img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.analix-fg-card h4 {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #333;
}

.analix-fg-add-manual-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    width: 100%;
}

.analix-fg-add-manual-btn:hover:not(:disabled) {
    background: #059669;
}

.analix-fg-add-manual-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.analix-fg-card.selected .analix-fg-add-manual-btn {
    background: #6D28D9;
}

/* Unlocked Modal Gift Cards & View Button */
.analix-fg-modal-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.analix-fg-modal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
}
.analix-fg-modal-card.selected {
    border-color: #6D28D9 !important;
    background-color: #fbf8ff !important;
}
.analix-fg-progress-view-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}
.analix-fg-progress-view-btn:active {
    transform: scale(0.95);
}
.analix-fg-btn-close-scroll {
    background-color: #10b981 !important;
}
.analix-fg-btn-close-scroll:hover {
    background-color: #059669 !important;
}
