/* --- STICKY RESUME BUTTON (Exact Replica) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --magic-gradient: linear-gradient(135deg, #a855f7, #ec4899);
    --glass-bg: rgba(255, 255, 255, 0.5);
    --transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- POSITIONING --- */
.premium-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

/* --- THE EXPANDABLE PILL --- */
.expandable-pill {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);

    width: 42px; /* Initial circle width */
    height: 42px;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
}

/* --- THE MAGIC CIRCLE --- */
.magic-circle {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    animation: pulse-ring 2s infinite;
}

.magic-circle i {
    background: var(--magic-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 18px;
}

/* --- REVEALED CONTENT --- */
.pill-content {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.3s ease, transform 0.4s ease;
    padding-left: 12px;
}

.pill-text {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.2px;
    font-family: 'Inter', sans-serif;
}

/* --- THE VERTICAL LINE (SEPARATOR) --- */
.pill-divider {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1); /* Subtle dark line */
    margin: 0 12px;
    transition: background 0.4s ease;
}

.close-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: 0.2s;
    margin-right: 6px;
    padding: 0;
}

/* --- OPEN STATE --- */
.expandable-pill.is-open {
    width: 235px; /* Adjust based on text length */
}

.expandable-pill.is-open .pill-content {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.15s;
}

/* --- HOVER STATE --- */
.expandable-pill:hover {
    background: #000000 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.expandable-pill:hover .pill-text,
.expandable-pill:hover .close-btn {
    color: #ffffff;
}

.expandable-pill:hover .pill-divider {
    background: rgba(255, 255, 255, 0.3); /* Line turns white on hover */
}

.expandable-pill:hover .close-btn {
    background: rgba(255, 255, 255, 0.2);
}

.close-btn:hover {
    background: #ff4d4d !important;
    color: white !important;
}

/* ANIMATION & UTILS */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0px rgba(168, 85, 247, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(236, 72, 153, 0); }
    100% { box-shadow: 0 0 0 0px rgba(168, 85, 247, 0); }
}

.fade-out {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.8);
    pointer-events: none;
    transition: 0.4s ease;
}

/* --- GLASS PRISM MODAL --- */
.ipm-glass-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.ipm-glass-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.ipm-glass-modal {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ipm-glass-modal-overlay.active .ipm-glass-modal {
    transform: scale(1);
}

.ipm-glass-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    font-weight: 700;
}

.ipm-glass-modal p {
    color: #555;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ipm-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.ipm-btn-confirm {
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}
.ipm-btn-confirm:hover { transform: scale(1.05); background: #e60000; }

.ipm-btn-cancel {
    background: #e5e7eb;
    color: #374151;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}
.ipm-btn-cancel:hover { transform: scale(1.05); background: #d1d5db; }
