/* ============================================
   "The Glass" - Dark Mode, Blur, Neon Borders
   ============================================ */
.theme-glass {
    --bg: #0f0f1a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #e0e0ff;
    --text-muted: #8888aa;
    --accent: #00f5ff;
    --accent-hover: #00ccdd;
    --border: rgba(0, 245, 255, 0.2);
    --shadow: 0 0 20px rgba(0, 245, 255, 0.05);
    --shadow-lg: 0 0 40px rgba(0, 245, 255, 0.1);
    --radius: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --positive: #00ff88;
    --warning: #ffaa00;
    --neon-pink: #ff00ff;
    --neon-cyan: #00f5ff;
}

.theme-glass body,
body.theme-glass {
    font-family: var(--font);
    background: linear-gradient(135deg, #0f0f1a 0%, #1a0a2e 50%, #0a1a2e 100%);
    color: var(--text);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.theme-glass .app-container {
    max-width: 720px;
    margin: 0 auto;
}

.theme-glass .skin-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.theme-glass .skin-selector button {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font);
    transition: all 0.3s;
}

.theme-glass .skin-selector button.active {
    background: rgba(0, 245, 255, 0.15);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.theme-glass .site-header {
    text-align: center;
    margin-bottom: 20px;
}
.theme-glass .site-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.3px;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}
.theme-glass .site-logo:hover {
    opacity: 0.85;
}

.theme-glass .calc-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.theme-glass h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text);
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
}

.theme-glass .subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 24px 0;
}

.theme-glass .input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.theme-glass .input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-glass .input-group.full-width {
    grid-column: 1 / -1;
}

.theme-glass .phase-header {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    padding: 8px 0 0 0;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.theme-glass .input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.theme-glass .input-group input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.theme-glass .input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
}

.theme-glass .btn-calculate {
    grid-column: 1 / -1;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(255, 0, 255, 0.2));
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.theme-glass .btn-calculate:hover {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.3), rgba(255, 0, 255, 0.3));
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.2);
    border-color: var(--accent);
}

.theme-glass .results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.theme-glass .res-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.theme-glass .res-card:hover {
    border-color: rgba(0, 245, 255, 0.4);
}

.theme-glass .res-card .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.theme-glass .res-card .value {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.theme-glass .res-card .value.positive {
    color: var(--positive);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.theme-glass .res-card .value.warning {
    color: var(--warning);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

/* AdSense CLS Prevention */
.theme-glass #adsense-top {
    min-height: 100px;
    contain: strict;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-glass .chart-wrapper {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
}

.theme-glass .chart-wrapper canvas {
    width: 100%;
    height: 220px;
    display: block;
}

.theme-glass .progress-wrapper {
    margin-top: 20px;
}

.theme-glass .progress-bar {
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.theme-glass .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--positive));
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
    min-width: 0;
}

.theme-glass .progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.theme-glass .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.theme-glass .nav-links a {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-glass .nav-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

/* Floating "How to Use" Link */
.theme-glass .how-to-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    background: rgba(0, 245, 255, 0.15);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}
.theme-glass .how-to-float:hover {
    background: rgba(0, 245, 255, 0.25);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Toggle switch for Phase 2 */
.theme-glass .toggle-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 0;
}

.theme-glass .toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.theme-glass .toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.theme-glass .toggle-text {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.theme-glass .phase2-input {
    display: none;
}

/* SEO Content Section */
.theme-glass .seo-content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 32px;
    padding-top: 3rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    line-height: 1.6;
    color: var(--text);
    text-align: left;
    border-top: 1px solid var(--border);
}
.theme-glass .seo-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text);
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
}
.theme-glass .seo-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 12px 0;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}
.theme-glass .seo-content p {
    font-size: 15px;
    margin: 0 0 1.5rem 0;
    color: var(--text-muted);
}
.theme-glass .seo-content ul,
.theme-glass .seo-content ol {
    font-size: 15px;
    color: var(--text-muted);
    padding-left: 24px;
    margin: 0 0 1.5rem 0;
}
.theme-glass .seo-content li {
    margin-bottom: 8px;
}
.theme-glass .seo-content article {
    margin-bottom: 24px;
}
.theme-glass .seo-content article:last-child {
    margin-bottom: 0;
}

/* Dimmed placeholder values */
.theme-glass .input-group input.placeholder-value {
    color: var(--text-muted);
    opacity: 0.5;
}
