@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================================
   POCALC UNIVERSAL TOOLS CSS (For 3000+ Calculators & Astrology Tools)
   Design System: Classic, App-First, High-Contrast, Touch-Friendly (48px+ Targets)
   Optimized for Android App WebView, Mobile Screens & Desktop
   100% Fully Compatible with All 2,100+ Existing Astrology, Panchang & Developer Tools
   ========================================================================== */

/* --- 1. CORE CONTAINER & BOXES --- */
.pc-uni-tool {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 12px;
    font-family: var(--ui-font, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif) !important;
    color: #111111;
    line-height: 1.6;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
    text-rendering: geometricPrecision;
    box-sizing: border-box;
}

.pc-uni-tool *,
.pc-uni-tool *::before,
.pc-uni-tool *::after {
    box-sizing: border-box;
}

.pc-uni-box {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pc-uni-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.pc-uni-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 16px 0;
    letter-spacing: -0.2px;
}

.pc-uni-subtitle {
    font-size: 14.5px;
    color: #1f2937;
    margin: 0;
    font-weight: 500;
}

.pc-uni-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- 2. TYPOGRAPHY --- */
.pc-uni-tool h1,
.pc-uni-tool h2,
.pc-uni-tool h3,
.pc-uni-tool h4 {
    color: #111827;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 12px;
}

.pc-uni-tool p {
    color: #111827;
    margin-bottom: 14px;
    font-size: 15.5px;
    line-height: 1.65;
}

.pc-uni-label,
.pc-uni-tool label {
    display: block;
    font-size: 14px !important;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- 3. HIGH-VISIBILITY INPUT WRAPPER (For $, %, Yrs, Icons, Hybrid Inputs) --- */
.pc-uni-input-wrap {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    margin-bottom: 0px;
}

.pc-uni-input-wrap:focus-within {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Inner inputs and selects inside .pc-uni-input-wrap */
.pc-uni-input-wrap input,
.pc-uni-input-wrap select,
.pc-uni-input-wrap .pc-uni-input,
.pc-uni-input-wrap .pc-uni-select,
.pc-uni-input-wrap .pc-uni-input-flex,
.pc-uni-single-input-wrap input,
.pc-uni-single-input-wrap select,
.pc-uni-single-input-wrap .pc-uni-single-field {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border: none !important;
    outline: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 14px !important;
    color: #111111 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.pc-uni-input-wrap select,
.pc-uni-input-wrap .pc-uni-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    padding-right: 38px !important;
    cursor: pointer !important;
}

/* Prefix and Suffix elements inside .pc-uni-input-wrap */
.pc-uni-input-wrap > span,
.pc-uni-input-wrap > div:not(.pc-uni-input):not(.pc-uni-input-flex) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    color: #111827 !important;
    font-weight: 700 !important;
}

/* Single Text Field with Icon Wrap */
.pc-uni-single-input-wrap {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 48px !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
}

.pc-uni-single-input-wrap:focus-within {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.2) !important;
}

.pc-uni-single-field {
    flex: 1 !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    box-shadow: none !important;
}

.pc-uni-input-action-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 100% !important;
    background: #f8fafc !important;
    border-left: 1px solid #94a3b8 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    position: relative !important;
}

/* --- 4. STANDALONE INPUTS & FORM CONTROLS (Android 48px Touch Target) --- */
.pc-uni-form-group {
    margin-bottom: 18px;
    width: 100%;
}

.pc-uni-form-group:last-child {
    margin-bottom: 0;
}

/* Standalone inputs when placed directly without .pc-uni-input-wrap */
.pc-uni-tool input[type="text"]:not(.pc-uni-input-wrap input):not(.pc-uni-single-input-wrap input),
.pc-uni-tool input[type="number"]:not(.pc-uni-input-wrap input):not(.pc-uni-single-input-wrap input),
.pc-uni-tool input[type="email"]:not(.pc-uni-input-wrap input):not(.pc-uni-single-input-wrap input),
.pc-uni-tool input[type="date"]:not(.pc-uni-input-wrap input):not(.pc-uni-single-input-wrap input),
.pc-uni-tool select:not(.pc-uni-input-wrap select),
input.pc-uni-input:not(.pc-uni-input-wrap input):not(.pc-uni-single-input-wrap input),
select.pc-uni-select:not(.pc-uni-input-wrap select) {
    width: 100%;
    min-height: 48px;
    height: 48px;
    padding: 10px 14px;
    font-family: inherit !important;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

/* Universal Expandable Textarea */
.pc-uni-tool textarea,
.pc-uni-textarea {
    width: 100% !important;
    min-height: 180px !important;
    max-height: none !important;
    padding: 14px 16px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    color: #111827 !important;
    background-color: #ffffff !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none !important;
    resize: vertical !important;
    display: block !important;
}

.pc-uni-tool textarea.pc-uni-code-area,
.pc-uni-tool textarea.pc-uni-mono,
.pc-uni-code-box,
.pc-uni-json-box,
.pc-uni-diff-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    min-height: 220px !important;
    max-height: none !important;
    background-color: #f8fafc !important;
    color: #0f172a !important;
    tab-size: 4 !important;
    white-space: pre !important;
    word-break: normal !important;
    overflow-x: auto !important;
    resize: vertical !important;
}

.pc-uni-tool select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 36px;
}

.pc-uni-tool input:focus:not(.pc-uni-input-wrap input),
.pc-uni-tool select:focus:not(.pc-uni-input-wrap select),
.pc-uni-tool textarea:focus,
.pc-uni-textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.pc-uni-time-flex {
    display: flex;
    gap: 8px;
    width: 100%;
}

.pc-uni-time-flex select {
    flex: 1;
    min-width: 0;
}

/* Range Sliders */
.pc-uni-tool input[type="range"] {
    width: 100%;
    height: 6px;
    margin-top: 6px;
    accent-color: #2563eb;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 3px;
    border: none;
    padding: 0;
    min-height: 0;
}

/* Custom Checkboxes and Radios */
.pc-uni-tool input[type="checkbox"],
.pc-uni-tool input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #2563eb;
}

/* Mini inputs */
.pc-uni-input-mini {
    text-align: center;
    padding: 0 4px !important;
    min-width: 0;
}

/* --- 5. LOCATION AUTOCOMPLETE & GPS --- */
.pc-uni-loc-wrap {
    display: flex;
    gap: 8px;
    width: 100%;
    position: relative;
}

.pc-uni-loc-field {
    flex: 1;
    position: relative;
    min-width: 0;
}

.pc-uni-gps-btn {
    background-color: #ffffff;
    border: 1px solid #94a3b8;
    color: #ea580c;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    font-weight: 700;
    font-size: 16px;
}

.pc-uni-gps-btn:hover,
.pc-uni-gps-btn:active {
    background-color: #ffedd5;
    border-color: #ea580c;
}

.pc-uni-ac-list {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    max-height: 240px !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 0 8px 8px !important;
    z-index: 99999 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
    display: none;
    padding: 0 !important;
    margin: 4px 0 0 0 !important;
    list-style: none !important;
}

.pc-uni-ac-item {
    padding: 12px 16px !important;
    cursor: pointer !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 14.5px !important;
}

.pc-uni-ac-item:hover,
.pc-uni-ac-item:active {
    background-color: #f8fafc !important;
    color: #ea580c !important;
}

.pc-uni-ac-main {
    font-weight: 700;
    color: #111827;
}

.pc-uni-ac-sub {
    font-size: 13px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.pc-uni-spinner {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-top-color: #ea580c !important;
    border-radius: 50%;
    animation: pcUniSpin 0.8s linear infinite;
    display: none;
    background: transparent !important;
    z-index: 10;
}

.pc-uni-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: pcUniSpin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes pcUniSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- 6. BUTTONS --- */
.pc-uni-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    height: 48px;
    padding: 12px 20px;
    background-color: #0f172a;
    color: #ffffff;
    font-family: inherit !important;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.12);
    margin-top: 8px;
}

.pc-uni-btn:hover,
.pc-uni-btn:active {
    background-color: #000000;
    transform: translateY(-1px);
}

.pc-uni-btn-primary {
    background-color: #2563eb;
}

.pc-uni-btn-primary:hover,
.pc-uni-btn-primary:active {
    background-color: #1d4ed8;
}

.pc-uni-btn-secondary,
.pc-uni-btn-nav {
    background-color: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.pc-uni-btn-secondary:hover,
.pc-uni-btn-nav:hover {
    background-color: #e2e8f0;
    color: #000000;
}

.pc-uni-btn-pill {
    background: #ffffff;
    color: #111111;
    border: 1px solid #94a3b8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pc-uni-btn-pill:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.pc-uni-btn-pill.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}

.pc-uni-btn-group {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

/* --- 7. TABS & SEGMENTED SWITCHERS --- */
.pc-uni-tab-group {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    margin-bottom: 20px;
    gap: 4px;
}

.pc-uni-tab-btn {
    flex: 1;
    min-height: 42px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 800;
    color: #1f2937;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-uni-tab-btn:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.pc-uni-tab-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
    border: 1px solid #2563eb !important;
}

.pc-uni-tab-content {
    display: none;
}

.pc-uni-tab-content.active {
    display: block;
}

/* --- 8. RESULTS, BANNERS & SCOREBOARDS --- */
.pc-uni-result-box {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.pc-uni-result-banner {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.pc-uni-result-title {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e5ea;
    padding-bottom: 8px;
}

.pc-uni-result-value {
    font-size: 30px;
    font-weight: 800;
    color: #000000;
    word-break: break-word;
}

.pc-uni-verdict-banner {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.pc-uni-verdict-good {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.pc-uni-verdict-warn {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.pc-uni-verdict-bad {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.pc-uni-score-circle {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border: 4px solid #ea580c;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-weight: 900;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pc-uni-verdict-text {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

/* Scoreboard Stat Cards */
.pc-uni-score-card {
    padding: 12px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}

.pc-uni-score-lbl {
    display: block;
    color: #111827;
    font-size: 13.5px !important;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: inherit;
}

.pc-uni-score-val {
    display: block;
    color: #111111;
    font-size: 20px !important;
    font-weight: 900;
}

/* Metadata Grids */
.pc-uni-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 16px;
}

@media (min-width: 600px) {
    .pc-uni-meta-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

.pc-uni-meta-item {
    background: #f8fafc;
    padding: 10px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    color: #111827;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.pc-uni-meta-item span {
    display: block;
    color: #1f2937;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* --- 9. BADGES & TAGS --- */
.pc-uni-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
}

.pc-uni-badge-good {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.pc-uni-badge-warn {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.pc-uni-badge-bad {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.pc-uni-badge-neutral {
    background: #f1f5f9;
    color: #111827;
    border-color: #cbd5e1;
}

.pc-uni-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pc-uni-tag {
    font-size: 13.5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    border: 1px solid transparent;
}

.pc-uni-tag-major { background: #fce7f3; color: #9d174d; border-color: #fbcfe8; }
.pc-uni-tag-solar { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }
.pc-uni-tag-vrat { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.pc-uni-tag-reg { background: #f1f5f9; color: #111827; border-color: #cbd5e1; }

/* --- 10. SOUTH INDIAN VEDIC ASTROLOGY CHART (4x4 GRID) --- */
.pc-uni-chart-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, minmax(80px, auto));
    gap: 2px;
    background: #cbd5e1;
    border: 2px solid #cbd5e1;
    max-width: 550px;
    margin: 16px auto;
    border-radius: 8px;
    overflow: hidden;
}

.pc-uni-chart-box {
    background: #ffffff;
    padding: 10px 4px;
    min-height: 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.box-pisces { grid-column: 1; grid-row: 1; }
.box-aries { grid-column: 2; grid-row: 1; }
.box-taurus { grid-column: 3; grid-row: 1; }
.box-gemini { grid-column: 4; grid-row: 1; }
.box-aquarius { grid-column: 1; grid-row: 2; }
.box-cancer { grid-column: 4; grid-row: 2; }
.box-capricorn { grid-column: 1; grid-row: 3; }
.box-leo { grid-column: 4; grid-row: 3; }
.box-sagittarius { grid-column: 1; grid-row: 4; }
.box-scorpio { grid-column: 2; grid-row: 4; }
.box-libra { grid-column: 3; grid-row: 4; }
.box-virgo { grid-column: 4; grid-row: 4; }

.box-center {
    grid-column: 2 / span 2;
    grid-row: 2 / span 2;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.pc-uni-sign-lbl {
    font-size: 13px;
    text-transform: uppercase;
    color: #1f2937;
    font-weight: 800;
    position: absolute;
    top: 6px;
    letter-spacing: 0.5px;
}

.pc-uni-bindu-val {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
    margin-top: 6px;
}

.pc-uni-asc-badge {
    background: #ea580c;
    color: #ffffff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    position: absolute;
    bottom: 6px;
    font-weight: 800;
    text-transform: uppercase;
}

.pc-uni-chart-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.pc-uni-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pc-uni-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

/* --- 11. TIMING LISTS & PANCHANG ROWS --- */
.pc-uni-timing-list {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px;
}

.pc-uni-timing-head {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid #cbd5e1;
    letter-spacing: 0.5px;
}

.pc-uni-timing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14.5px;
    font-weight: 600;
    color: #111827;
}

.pc-uni-timing-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pc-uni-timing-item span {
    color: #111827;
    font-weight: 600;
}

.pc-uni-timing-item b {
    font-weight: 800;
    color: #111827;
}

.pc-uni-timing-highlight {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #111827;
    font-weight: 600;
    margin-top: 8px;
}

.pc-uni-timing-lbl {
    color: #ea580c;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-right: 4px;
}

.pc-uni-next-info {
    margin-top: 10px;
    font-size: 14px;
    color: #1f2937;
    padding-left: 10px;
    border-left: 3px solid #cbd5e1;
    font-weight: 500;
}

.pc-uni-info-strip {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    margin-bottom: 16px;
    text-align: left;
}

.pc-uni-info-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: #0f172a;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.pc-uni-info-desc {
    font-size: 14.5px;
    color: #111827;
    line-height: 1.55;
    font-weight: 500;
}

/* --- 12. RESPONSIVE DATA TABLES --- */
.pc-uni-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.pc-uni-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    margin: 0;
}

.pc-uni-table th {
    padding: 10px 14px;
    background: #f8fafc;
    color: #111827;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    border-bottom: 2px solid #cbd5e1;
    letter-spacing: 0.3px;
}

.pc-uni-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #111827;
    font-weight: 600;
}

.pc-uni-table tr:last-child td {
    border-bottom: none;
}

.pc-uni-table-total td {
    background: #fffbeb !important;
    color: #b45309 !important;
    font-weight: 800 !important;
    border-top: 2px solid #fde68a !important;
}

/* Key-Value Panchang Table */
.pc-uni-kv-table {
    width: 100%;
    border-collapse: collapse;
}

.pc-uni-kv-table td {
    padding: 14px 16px;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
}

.pc-uni-kv-key {
    width: 140px;
    font-weight: 800;
    color: #111827;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle !important;
}

.pc-uni-kv-val-main {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    display: block;
    margin-bottom: 4px;
}

.pc-uni-kv-val-sub {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
    margin-left: 4px;
}

/* --- 13. DETAIL CARDS (Accordions / Breakdown) --- */
.pc-uni-card {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #ffffff;
}

.pc-uni-card-header {
    background: #f8fafc;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #cbd5e1;
}

.pc-uni-card-title {
    font-weight: 800;
    color: #0f172a;
    font-size: 14px;
    text-transform: uppercase;
}

.pc-uni-card-body {
    padding: 14px 16px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #111827;
    font-weight: 500;
}

/* --- 14. ACTION BAR & PDF STYLES --- */
.pc-uni-action-bar {
    background: #fffbeb;
    padding: 12px 16px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pdf-mode {
    max-width: 800px !important;
    width: 800px !important;
    margin: 0 auto !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
}

.pdf-mode .pc-uni-controls,
.pdf-mode .pc-uni-action-bar {
    display: none !important;
}

.pdf-print-title {
    display: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 900;
    color: #0f172a;
}

.pdf-mode .pdf-print-title {
    display: block !important;
    margin-bottom: 16px;
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 8px;
}

.html2pdf__page-break {
    display: block;
    height: 0;
    page-break-before: always;
    margin: 0;
    padding: 0;
    border: none;
}

/* --- 15. RESPONSIVE GRIDS (Mobile First) --- */
.pc-uni-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.pc-uni-grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pc-uni-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.pc-uni-flex-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .pc-uni-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .pc-uni-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .pc-uni-grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .pc-uni-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: start;
    }
}

/* --- 16. MOBILE APP ADJUSTMENTS (< 650px) --- */
@media (max-width: 650px) {
    .pc-uni-tool {
        padding: 8px 4px;
    }
    .pc-uni-box {
        padding: 14px 12px;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    .pc-uni-header {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }
    .pc-uni-title {
        font-size: 18px;
    }
    .pc-uni-btn-group {
        flex-direction: column;
        gap: 8px;
    }
    .pc-uni-btn {
        width: 100%;
    }
    .pc-uni-kv-table td {
        display: block;
        width: 100%;
        padding: 12px 8px;
    }
    .pc-uni-kv-key {
        width: 100%;
        background: transparent;
        border-right: none;
        border-bottom: none;
        padding: 10px 8px 2px 8px;
        color: #ea580c;
    }
    .pc-uni-chart-grid {
        grid-template-rows: repeat(4, minmax(68px, auto));
        max-width: 100%;
    }
    .pc-uni-chart-box {
        min-height: 68px;
        padding: 8px 2px;
    }
    .pc-uni-bindu-val {
        font-size: 19px;
    }
    .pc-uni-sign-lbl {
        font-size: 12px;
    }
    .pc-uni-grid-3 {
        grid-template-columns: 1fr;
    }
    .pc-uni-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- 17. GLOBAL UTILITY CLASSES --- */
.pc-uni-text-center { text-align: center !important; }
.pc-uni-text-right  { text-align: right !important; }
.pc-uni-text-left   { text-align: left !important; }

.pc-uni-text-green  { color: #15803d !important; font-weight: 700 !important; }
.pc-uni-text-red    { color: #b91c1c !important; font-weight: 700 !important; }
.pc-uni-text-gold   { color: #b45309 !important; font-weight: 700 !important; }
.pc-uni-text-blue   { color: #1d4ed8 !important; font-weight: 700 !important; }
.pc-uni-text-muted {
    color: #0e0e0e !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    line-height: 1.65 !important;
}
.pc-uni-text-ink    { color: #111111 !important; }

.pc-uni-bg-green    { background-color: #f0fdf4 !important; }
.pc-uni-bg-red      { background-color: #fef2f2 !important; }
.pc-uni-bg-gold     { background-color: #fffbeb !important; }

.pc-uni-font-600    { font-weight: 600 !important; }
.pc-uni-font-700    { font-weight: 700 !important; }
.pc-uni-font-800    { font-weight: 800 !important; }
.pc-uni-font-900    { font-weight: 900 !important; }

.pc-uni-text-11     { font-size: 13px !important; }
.pc-uni-text-12     { font-size: 13.5px !important; }
.pc-uni-text-13     { font-size: 14px !important; }
.pc-uni-text-14     { font-size: 14px !important; }
.pc-uni-text-15     { font-size: 15px !important; }
.pc-uni-text-16     { font-size: 16px !important; }
.pc-uni-text-18     { font-size: 18px !important; }
.pc-uni-text-20     { font-size: 20px !important; }
.pc-uni-text-22     { font-size: 22px !important; }
.pc-uni-text-24     { font-size: 24px !important; }
.pc-uni-text-26     { font-size: 26px !important; }
.pc-uni-text-28     { font-size: 28px !important; letter-spacing: -0.5px !important; }

.pc-uni-p-8         { padding: 8px !important; }
.pc-uni-p-12        { padding: 12px !important; }
.pc-uni-p-16        { padding: 16px !important; }

.pc-uni-flex-wrap   { flex-wrap: wrap !important; }
.pc-uni-flex-center { display: flex !important; align-items: center !important; justify-content: center !important; }
.pc-uni-flex-between{ display: flex !important; align-items: center !important; justify-content: space-between !important; }

.pc-uni-gap-4       { gap: 4px !important; }
.pc-uni-gap-8       { gap: 8px !important; }
.pc-uni-gap-12      { gap: 12px !important; }
.pc-uni-gap-16      { gap: 16px !important; }

.pc-uni-border-btm  { border-bottom: 1px solid #e5e5ea !important; padding-bottom: 12px !important; }
.pc-uni-margin-0    { margin: 0 !important; }
.pc-uni-mb-0        { margin-bottom: 0 !important; }
.pc-uni-mb-8        { margin-bottom: 8px !important; }
.pc-uni-mb-12       { margin-bottom: 12px !important; }
.pc-uni-mb-16       { margin-bottom: 16px !important; }
.pc-uni-mt-8        { margin-top: 8px !important; }
.pc-uni-mt-12       { margin-top: 12px !important; }
.pc-uni-mt-16       { margin-top: 16px !important; }
.pc-uni-w-full      { width: 100% !important; }

.pc-uni-mono        { font-family: inherit !important; }

/* --- 18. CONTENT CREATOR & DEVELOPER TOOLS (Word Counter, Teleprompter Studio, Utilities) --- */
.pc-uni-grid-5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pc-uni-grid-6 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .pc-uni-grid-5 {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
    .pc-uni-grid-6 {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

/* Universal Badges & Pills */
.pc-uni-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Universal Progress Bars & Limit Meters */
.pc-uni-progress-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.pc-uni-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.25s ease;
}

/* SEO Keyword Density Rows */
.pc-uni-density-bar {
    position: relative;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.pc-uni-density-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    background: #eff6ff;
    z-index: -1;
    transition: width 0.3s ease;
    border-right: 3px solid #2563eb;
}

/* Universal Tool Drawers */
.pc-uni-drawer {
    background: #f8fafc;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 14px;
}

/* Universal Teleprompter Studio & Stage Rig */
.pc-uni-prompter-stage {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 580px;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    box-sizing: border-box;
}

.pc-uni-prompter-stage:fullscreen,
.pc-uni-prompter-stage:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pc-uni-stage-hud {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.pc-uni-stage-eyeline {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0;
    border-top: 2px solid rgba(239, 68, 68, 0.75);
    pointer-events: none;
    z-index: 100;
}

.pc-uni-stage-focus {
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 90;
}

.pc-uni-stage-countdown {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.pc-uni-stage-webcam {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    opacity: 0.35;
    pointer-events: none;
}

/* Stage Cue Badges */
.pc-uni-cue-tag {
    display: inline-block;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    margin: 0 4px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pc-uni-cue-note {
    display: inline-block;
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.4);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    margin: 0 4px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pc-uni-cue-break {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(59, 130, 246, 0.5);
    margin: 24px 0;
    position: relative;
}

.pc-uni-cue-break::after {
    content: "SECTION BREAK";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 900;
    padding: 0 8px;
    letter-spacing: 1px;
}

/* Mobile & Android App Adjustments for Creator Tools */
@media (max-width: 650px) {
    .pc-uni-tab-group {
        flex-wrap: wrap;
    }
    .pc-uni-tab-btn {
        flex: 1 1 45%;
        font-size: 13px;
        min-height: 44px;
    }
    .pc-uni-drawer {
        padding: 10px;
    }
    .pc-uni-prompter-stage {
        height: 75vh;
        min-height: 480px;
    }
}