/* --- GCPF TOOLKIT: GLOBAL WRAPPER & TYPOGRAPHY --- */
.gcpf-tool-wrapper, .gcpf-dashboard-wrapper {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-family: 'Lato', 'Montserrat', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    box-sizing: border-box;
}

.gcpf-step { display: none; }
.gcpf-step.active { display: block; animation: gcpfFadeIn 0.4s ease; }

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

/* --- FORM ELEMENTS --- */
.gcpf-form-group {
    margin-bottom: 25px;
    position: relative;
}

.gcpf-form-group label {
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #333;
    font-weight: 400; 
}

.gcpf-form-group label strong {
    font-weight: 700;
    color: #000;
}

.gcpf-desc {
    color: #333;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.gcpf-tool-wrapper input[type="email"],
.gcpf-tool-wrapper input[type="text"],
.gcpf-tool-wrapper select,
.gcpf-dashboard-wrapper input[type="email"],
.gcpf-dashboard-wrapper input[type="text"],
.gcpf-dashboard-wrapper select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: #fafafa;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.gcpf-tool-wrapper input:focus,
.gcpf-tool-wrapper select:focus,
.gcpf-dashboard-wrapper input:focus,
.gcpf-dashboard-wrapper select:focus {
    outline: none;
    border-color: #c2185b;
    background: #fff;
}

.gcpf-input-disabled {
    background-color: #eee !important;
    color: #888;
    cursor: not-allowed;
}

/* --- VALIDATION & MESSAGES --- */
.gcpf-error-border {
    border-color: #c2185b !important;
    background-color: #fff8f8 !important;
}

.gcpf-error-msg {
    color: #c2185b;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
    font-weight: 600;
}

.gcpf-otp-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9em;
    border: 1px solid #c3e6cb;
    text-align: center;
}

/* --- PROGRESS BAR --- */
.gcpf-progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
    max-width: 100%;
}

.gcpf-progress-fill {
    height: 100%;
    background: #c2185b; 
    border-radius: 4px;
    transition: width 0.3s ease;
    max-width: 100%;
}

/* --- RADIO CARDS --- */
.gcpf-radio-cards label {
    display: block;
    padding: 15px;
    border: 2px solid #eee;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.gcpf-radio-cards label:hover { border-color: #ddd; }
.gcpf-radio-cards input:checked + span { font-weight: bold; color: #c2185b; }
.gcpf-radio-cards input[type="radio"] { margin-right: 10px; }

/* --- BUTTONS --- */
.gcpf-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px; 
}

button.gcpf-btn-next, button.gcpf-btn-submit, #gcpf-btn-verify, #gcpf-btn-dash-login {
    background: #c2185b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 18px; 
    transition: background 0.2s;
}

button.gcpf-btn-next:hover, button.gcpf-btn-submit:hover, #gcpf-btn-verify:hover, #gcpf-btn-dash-login:hover { 
    background: #ad1457;
    color: #fff;
}

/* CTA Guide Button on Results Screen */
a.gcpf-cta-guide-btn {
    color: #c2185b !important;
}
a.gcpf-cta-guide-btn:hover {
    color: #fff !important;
    background: #c2185b !important;
    transform: translateY(-2px);
}

button.gcpf-btn-prev {
    background: #eee;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 18px; 
}

button:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- RESTART BUTTON --- */
.gcpf-btn-restart {
    background: #f3f4f6;
    color: #555;
    border: 1px solid #ddd;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.gcpf-btn-restart:hover {
    background: #e5e7eb;
    color: #333;
}

/* --- DASHBOARD STYLES --- */
.gcpf-dashboard-login {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.gcpf-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.gcpf-user-info {
    font-size: 0.95em;
    color: #555;
}

#gcpf-btn-logout {
    margin-left: 15px;
    color: #c2185b;
    text-decoration: none;
    font-weight: 600;
}

.gcpf-empty-state {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #777;
}

.gcpf-entry-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.gcpf-entry-card:hover { transform: translateY(-2px); }

.gcpf-entry-card.paid { border-left: 5px solid #10b981; }
.gcpf-entry-card.unpaid { border-left: 5px solid #e9c46a; }

.gcpf-card-main h3 { margin: 0 0 5px 0; font-size: 1.1em; color: #333; }
.gcpf-meta { font-size: 0.85em; color: #888; display: block; }

.gcpf-status-badge {
    display: inline-block;
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 5px;
}
.gcpf-status-badge.paid { background: #e0fbf6; color: #10b981; }
.gcpf-status-badge.free { background: #d4edda; color: #155724; }
.gcpf-status-badge.unpaid { background: #fff8e1; color: #d4a017; }

.gcpf-card-actions {
    display: flex;
    align-items: center;
}

.gcpf-card-actions button {
    font-size: 0.85em;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.gcpf-btn-view { background: #10b981; color: white; }
.gcpf-btn-view:hover { opacity: 0.9; }

.gcpf-btn-delete { 
    background: white; 
    color: #c2185b; 
    border: 1px solid #c2185b !important; 
    font-size: 1.2em; 
    padding: 4px 10px !important; 
    line-height: 1; 
}
.gcpf-btn-delete:hover { background: #c2185b; color: white; }

/* --- RESULT BOX --- */
.gcpf-result-box {
    animation: gcpfFadeIn 0.4s ease;
}

/* --- PDF DOWNLOAD BUTTON --- */
.gcpf-download-pdf-btn {
    background: #000;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gcpf-download-pdf-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.gcpf-download-pdf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --- FREE TOOL RESULT STYLES --- */
.gcpf-free-tool-result {
    animation: gcpfFadeIn 0.4s ease;
}

.gcpf-free-tool-result .gcpf-download-pdf-btn {
    background: #000;
    color: white;
}

/* --- KEGEL BEAT: VIBE CARDS --- */
.gcpf-vibe-cards .gcpf-radio-card,
.gcpf-duration-cards .gcpf-radio-card {
    padding: 0;
    border: 2px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.gcpf-vibe-cards .gcpf-radio-card:hover,
.gcpf-duration-cards .gcpf-radio-card:hover {
    border-color: #f06292;
    box-shadow: 0 4px 12px rgba(194, 24, 91, 0.1);
}

.gcpf-vibe-cards input[type="radio"],
.gcpf-duration-cards input[type="radio"] {
    display: none;
}

.gcpf-vibe-cards input[type="radio"]:checked + .gcpf-vibe-inner,
.gcpf-duration-cards input[type="radio"]:checked + .gcpf-vibe-inner {
    background: linear-gradient(135deg, rgba(194,24,91,0.05) 0%, rgba(136,14,79,0.08) 100%);
    border-left: 4px solid #c2185b;
}

.gcpf-vibe-cards input[type="radio"]:checked ~ .gcpf-vibe-inner,
.gcpf-duration-cards input[type="radio"]:checked ~ .gcpf-vibe-inner {
    background: linear-gradient(135deg, rgba(194,24,91,0.05) 0%, rgba(136,14,79,0.08) 100%);
}

.gcpf-vibe-inner {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    gap: 16px;
    transition: background 0.2s;
}

.gcpf-vibe-emoji {
    font-size: 2em;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.gcpf-vibe-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gcpf-vibe-text strong {
    font-size: 1.1em;
    color: #333;
}

.gcpf-vibe-subtitle {
    font-size: 0.85em;
    color: #c2185b;
    font-weight: 600;
}

.gcpf-vibe-detail {
    font-size: 0.82em;
    color: #555;
    line-height: 1.4;
}

/* --- KEGEL BEAT: VISUALIZER --- */
#gcpf-kegel-visualizer {
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: 16px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 30px 20px;
}

.gcpf-kegel-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    z-index: 5;
}

.gcpf-kegel-vibe-label {
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

.gcpf-kegel-timer {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    font-family: 'Montserrat', 'Lato', sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(194, 24, 91, 0.5);
}

.gcpf-kegel-mute {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
    color: #fff;
}

.gcpf-kegel-mute:hover {
    background: rgba(255,255,255,0.2);
}

/* The Bio-Orb */
.gcpf-kegel-orb-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    z-index: 2;
}

.gcpf-kegel-orb {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f06292, #c2185b, #880e4f);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease-out;
    will-change: transform, opacity;
}

#gcpf-kegel-visualizer.vibe-hold .gcpf-kegel-orb {
    background: radial-gradient(circle at 35% 35%, #64b5f6, #1976d2, #0d47a1);
}

#gcpf-kegel-visualizer.vibe-release .gcpf-kegel-orb {
    background: radial-gradient(circle at 35% 35%, #a5d6a7, #66bb6a, #2e7d32);
}

.gcpf-kegel-orb-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 40px 20px rgba(194, 24, 91, 0.3);
    transition: box-shadow 0.3s ease;
}

#gcpf-kegel-visualizer.vibe-hold .gcpf-kegel-orb-glow {
    box-shadow: 0 0 40px 20px rgba(25, 118, 210, 0.3);
}

#gcpf-kegel-visualizer.vibe-release .gcpf-kegel-orb-glow {
    box-shadow: 0 0 40px 20px rgba(46, 125, 50, 0.3);
}

.gcpf-kegel-instruction {
    color: #fff;
    font-weight: 800;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
}

/* Phase Progress Bar */
.gcpf-kegel-phase-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 40px;
    z-index: 2;
}

.gcpf-kegel-phase-fill {
    height: 100%;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Countdown Overlay */
.gcpf-kegel-countdown {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
}

.gcpf-countdown-number {
    font-size: 5em;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 40px rgba(194, 24, 91, 0.8);
    animation: gcpfPulseCount 1s ease infinite;
}

@keyframes gcpfPulseCount {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Scene Canvas */
.gcpf-kegel-scene-canvas {
    border-radius: 12px;
    z-index: 2;
    max-width: 100%;
}

/* Scene Instruction Overlay */
.gcpf-kegel-scene-instruction {
    color: #fff;
    font-weight: 800;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    z-index: 3;
    margin-top: 15px;
    min-height: 30px;
}

/* Confetti Canvas */
#gcpf-kegel-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .gcpf-tool-wrapper, .gcpf-dashboard-wrapper { padding: 20px; }
    .gcpf-entry-card { flex-direction: column; align-items: flex-start; }
    .gcpf-card-actions { margin-top: 15px; width: 100%; display: flex; justify-content: space-between; }
    .gcpf-card-actions button { margin-left: 0; }
    .gcpf-dashboard-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    #gcpf-btn-logout { margin-left: 0; }
    #gcpf-kegel-visualizer { min-height: 420px; border-radius: 12px; padding: 20px 15px; }
    .gcpf-kegel-timer { font-size: 1.5em; }
    .gcpf-kegel-orb { width: 120px; height: 120px; }
    .gcpf-kegel-orb-container { height: 250px; }
    .gcpf-kegel-instruction { font-size: 0.65em; letter-spacing: 1px; }
    .gcpf-vibe-inner { padding: 14px 16px; gap: 12px; }
    .gcpf-vibe-emoji { font-size: 1.6em; width: 40px; }
    .gcpf-countdown-number { font-size: 3.5em; }
    .gcpf-kegel-mute { width: 38px; height: 38px; font-size: 1em; }
    .gcpf-kegel-scene-instruction { font-size: 0.8em; letter-spacing: 2px; margin-top: 10px; }
    .gcpf-kegel-scene-canvas { border-radius: 8px; }
}
