@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;400;600;700;800&display=swap');

/* BASE */
.thc-pro-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', system-ui, sans-serif;
    border-radius: 56px;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.thc-theme-toggle {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 10;
}
.thc-toggle-icon {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 40px;
    transition: all 0.2s;
}
.thc-toggle-icon:hover { transform: scale(1.05); }

/* DARK MODE (default) */
.thc-pro-wrapper.dark-mode {
    background: radial-gradient(circle at 10% 20%, #0a192f, #0f2a3f);
    color: #e2e8f0;
}
.dark-mode .thc-gradient-card { background: rgba(15,30,45,0.85); backdrop-filter: blur(8px); border: 1px solid rgba(59,130,246,0.3); }
.dark-mode .thc-main-title { background: linear-gradient(135deg, #90e0ff, #3b82f6, #f472b6, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dark-mode .thc-sub { color: #94a3b8; border-left-color: #f59e0b; }
.dark-mode .thc-field label { color: #cbd5e1; }
.dark-mode .thc-premium-input, .dark-mode .thc-premium-select { background: #0f212e; border-color: #2d3a4a; color: white; }
.dark-mode .thc-period-toggle { background: #0a1929; }
.dark-mode .thc-period-btn { color: #cbd5e6; }
.dark-mode .thc-period-btn.active { background: linear-gradient(135deg, #3b82f6, #f472b6); color: white; }
.dark-mode .thc-btn-secondary { background: #1e293b; color: #cbd5e6; border-color: #334155; }
.dark-mode .thc-result-card { background: #0a1a2a; border-left-color: #10b981; }
.dark-mode .thc-result-icon { background: linear-gradient(135deg, #1e3a5f, #0a1929); color: #60a5fa; }
.dark-mode .thc-result-value { color: #f1f5f9; }
.dark-mode .thc-total-card { background: linear-gradient(120deg, #0f2a3f, #0a192f); }
.dark-mode .thc-extrap-card { background: #0f212e; border-color: #2c5270; }
.dark-mode .thc-chart-container { background: #0f212e; border-color: #2c5270; }
.dark-mode .thc-seo-card { background: #0f212e; border-color: #2c5270; }
.dark-mode .thc-step { background: #0a1929; color: #cbd5e6; }
.dark-mode .thc-formula { background: #1e293b; color: #facc15; }
.dark-mode .thc-faq-question { color: #f1f5f9; }
.dark-mode .thc-faq-answer { color: #94a3b8; }

/* LIGHT MODE */
.thc-pro-wrapper.light-mode {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9eff7 100%);
    color: #1e293b;
}
.light-mode .thc-gradient-card { background: rgba(255,255,255,0.96); border: 1px solid rgba(102,126,234,0.2); box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1); }
.light-mode .thc-main-title { background: linear-gradient(135deg, #1e293b, #3b82f6, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.light-mode .thc-sub { color: #475569; border-left-color: #8b5cf6; }
.light-mode .thc-field label { color: #1e293b; }
.light-mode .thc-premium-input, .light-mode .thc-premium-select { background: white; border-color: #e2e8f0; color: #0f172a; }
.light-mode .thc-period-toggle { background: #f1f5f9; }
.light-mode .thc-period-btn { color: #1e293b; }
.light-mode .thc-period-btn.active { background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: white; }
.light-mode .thc-btn-secondary { background: #f1f5f9; color: #1e293b; border-color: #cbd5e1; }
.light-mode .thc-result-card { background: white; border-left-color: #10b981; box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.light-mode .thc-result-icon { background: linear-gradient(135deg, #eef2ff, #ffffff); color: #4f46e5; }
.light-mode .thc-result-value { color: #0f172a; }
.light-mode .thc-total-card { background: linear-gradient(120deg, #fef9c3, #ffffff); }
.light-mode .thc-extrap-card { background: #f8fafc; border-color: #e2e8f0; }
.light-mode .thc-chart-container { background: #f8fafc; border-color: #e2e8f0; }
.light-mode .thc-seo-card { background: white; border-color: #e2e8f0; box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.light-mode .thc-step { background: #f8fafc; color: #1e293b; }
.light-mode .thc-formula { background: #eef2ff; color: #1e293b; }
.light-mode .thc-faq-question { color: #0f172a; }
.light-mode .thc-faq-answer { color: #475569; }

/* SHARED STYLES */
.thc-card { border-radius: 56px; padding: 40px; transition: transform 0.3s, background 0.3s; }
.thc-card:hover { transform: translateY(-5px); }
.thc-main-title { font-size: 2.7rem; font-weight: 800; margin-bottom: 12px; }
.thc-sub { font-size: 1.1rem; margin-bottom: 40px; padding-left: 20px; }
.thc-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.thc-field { margin-bottom: 24px; }
.thc-field label { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 10px; }
.thc-premium-input, .thc-premium-select { width: 100%; padding: 14px 18px; border-radius: 40px; font-size: 1rem; box-sizing: border-box; }
.thc-premium-input:focus, .thc-premium-select:focus { outline: none; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.thc-period-toggle { display: flex; gap: 12px; padding: 5px; border-radius: 60px; background: inherit; }
.thc-period-btn { flex: 1; padding: 10px 16px; border: none; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.thc-buttons-row { display: flex; gap: 18px; margin-top: 32px; }
.thc-btn-primary, .thc-btn-secondary { flex: 1; padding: 14px; border: none; border-radius: 60px; font-weight: 700; cursor: pointer; transition: 0.25s; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.thc-btn-primary { background: linear-gradient(120deg, #3b82f6, #f472b6); color: white; box-shadow: 0 10px 20px rgba(59,130,246,0.3); }
.thc-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(244,114,182,0.4); }
.thc-results-area { display: flex; flex-direction: column; gap: 18px; }
.thc-result-card { border-radius: 36px; padding: 20px 24px; display: flex; align-items: center; gap: 20px; transition: 0.2s; }
.thc-result-card:hover { transform: translateX(6px); }
.thc-result-icon { width: 56px; height: 56px; border-radius: 30px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.thc-result-value { font-size: 1.8rem; font-weight: 800; }
.thc-extrapolation { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 15px 0; }
.thc-extrap-card { border-radius: 28px; padding: 15px; text-align: center; border: 1px solid; }
.thc-extrap-card strong { display: block; font-size: 1.3rem; margin-top: 6px; }
.thc-chart-container { border-radius: 36px; padding: 20px; margin-top: 15px; text-align: center; }
canvas#thc-pay-chart { max-width: 250px; margin: 0 auto; }
.thc-seo-card { border-radius: 48px; padding: 32px; margin-top: 30px; }
.thc-seo-card h2 { background: linear-gradient(135deg, #1e293b, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; border-bottom: 3px solid #f59e0b; display: inline-block; padding-bottom: 8px; }
.thc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 20px; margin: 25px 0; }
.thc-step { padding: 16px; border-radius: 100px; text-align: center; transition: 0.2s; }
.thc-step:hover { background: linear-gradient(120deg, #3b82f6, #f472b6); color: white !important; transform: scale(1.02); }
.thc-formula { padding: 14px; border-radius: 28px; text-align: center; font-family: monospace; }
.thc-faq-item { border-bottom: 1px solid; }
.thc-faq-question { font-weight: 700; padding: 18px 0; cursor: pointer; display: flex; justify-content: space-between; }
.thc-faq-answer { display: none; padding-bottom: 20px; line-height: 1.6; }

/* ========== ULTRA RESPONSIVE (thin mobile) ========== */
@media (max-width: 1024px) {
    .thc-pro-wrapper { padding: 20px; margin: 20px auto; }
    .thc-card { padding: 30px; }
}
@media (max-width: 850px) {
    .thc-two-columns { grid-template-columns: 1fr; gap: 30px; }
    .thc-main-title { font-size: 2rem; text-align: center; }
    .thc-sub { text-align: center; border-left: none; padding-left: 0; }
    .thc-card { padding: 25px; }
    .thc-theme-toggle { top: 15px; right: 15px; }
    .thc-toggle-icon { font-size: 1.2rem; padding: 6px 10px; }
    .thc-buttons-row { flex-direction: column; gap: 12px; }
    .thc-result-card { padding: 15px 20px; }
    .thc-result-value { font-size: 1.4rem; }
    .thc-result-icon { width: 44px; height: 44px; font-size: 22px; }
    .thc-extrapolation { gap: 12px; }
    .thc-extrap-card strong { font-size: 1.1rem; }
    .thc-steps { grid-template-columns: 1fr; gap: 12px; }
    .thc-step { padding: 12px; border-radius: 50px; }
    .thc-seo-card { padding: 20px; }
    .thc-seo-card h2 { font-size: 1.5rem; }
    .thc-field label { font-size: 0.9rem; }
    .thc-premium-input, .thc-premium-select { padding: 12px 16px; font-size: 0.95rem; }
    .thc-period-btn { padding: 8px 12px; font-size: 0.9rem; }
    canvas#thc-pay-chart { max-width: 200px; }
}
@media (max-width: 480px) {
    .thc-pro-wrapper { padding: 10px; margin: 10px auto; }
    .thc-card { padding: 20px; border-radius: 32px; }
    .thc-main-title { font-size: 1.6rem; }
    .thc-sub { font-size: 0.9rem; margin-bottom: 25px; }
    .thc-result-value { font-size: 1.2rem; }
    .thc-result-icon { width: 36px; height: 36px; font-size: 18px; }
    .thc-extrap-card strong { font-size: 1rem; }
    .thc-theme-toggle { top: 10px; right: 10px; gap: 6px; }
    .thc-toggle-icon { font-size: 1rem; padding: 4px 8px; }
    .thc-field input, .thc-field select { padding: 10px 14px; }
    .thc-period-btn { font-size: 0.8rem; padding: 6px 8px; }
}