/* ============================================
   CyberShield Hub - Privacy & Security Toolkit
   Aligned with GoForTool Design System
   ============================================ */

/* ============================================
   0. SEO ENHANCEMENT STYLES
   ============================================ */

.tool-definition {
    font-size: var(--text-base, 1rem);
    line-height: var(--leading-relaxed, 1.75);
    color: var(--color-text-secondary);
    padding: var(--space-4) var(--space-5);
    background: var(--color-surface);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-5) 0;
}

.tool-definition strong {
    color: var(--color-text-primary);
}

/* ============================================
   1. TOOL PAGE HEADER
   ============================================ */

.tool-page-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-6);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tool-page-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tool-page-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.tool-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    border-radius: var(--radius-md);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.back-button:hover {
    background: var(--color-accent);
    color: white;
}

/* ============================================
   2. TOOL PAGE MAIN CONTAINER
   ============================================ */

.tool-page-main {
    max-width: var(--content-max-width, 1400px);
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    min-height: calc(100vh - var(--header-height, 72px));
}

@media (max-width: 1024px) {
    .tool-page-main {
        padding: var(--space-6) var(--space-4);
    }
}

@media (max-width: 768px) {
    .tool-page-main {
        padding: var(--space-4) var(--space-4);
        padding-bottom: calc(var(--space-16, 64px) + var(--mobile-nav-height, 64px) + 60px);
    }
}

.tool-container {
    width: 100%;
}

/* ============================================
   3. TOOL HEADER SECTION
   ============================================ */

.tool-header {
    margin-bottom: var(--space-8);
}

.tool-header-content {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
    margin-bottom: var(--space-5);
}

@media (max-width: 768px) {
    .tool-header-content {
        flex-direction: column;
        gap: var(--space-4);
    }
}

.tool-icon-large {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-subtle);
    border-radius: var(--radius-lg);
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    font-size: 36px;
}

@media (max-width: 768px) {
    .tool-icon-large {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
}

.tool-header-info {
    flex: 1;
}

.tool-title {
    font-size: var(--text-2xl, 1.75rem);
    font-weight: 700;
    line-height: var(--leading-tight, 1.25);
    letter-spacing: var(--tracking-tight, -0.025em);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

@media (max-width: 768px) {
    .tool-title {
        font-size: var(--text-xl, 1.5rem);
    }
}

.tool-subtitle {
    font-size: var(--text-base, 1rem);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed, 1.75);
    margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
    .tool-subtitle {
        font-size: var(--text-sm, 0.875rem);
    }
}

.tool-badges {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.badge {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-new {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.badge-popular {
    background: rgba(99, 102, 241, 0.15);
    color: var(--color-accent);
}

.badge-free {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.badge-privacy {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

/* ============================================
   4. PRIVACY NOTICE
   ============================================ */

.privacy-notice {
    background: var(--color-surface);
    border: 1px solid var(--color-success);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.08);
}

.privacy-notice .notice-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-notice strong {
    color: var(--color-success);
    display: block;
    margin-bottom: var(--space-1);
    font-size: var(--text-sm, 0.875rem);
}

.privacy-notice p {
    font-size: var(--text-xs, 0.75rem);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   5. PILLAR NAVIGATION (TABS)
   ============================================ */

.pillar-nav {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pillar-nav::-webkit-scrollbar {
    display: none;
}

.pillar-tab {
    padding: var(--space-3) var(--space-5);
    border: none;
    background: none;
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.pillar-tab:hover {
    color: var(--color-accent);
}

.pillar-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.pillar-tab .tab-icon {
    font-size: 16px;
}

/* ============================================
   6. TOOL SEARCH / FILTER
   ============================================ */

.tool-search-bar {
    position: relative;
    margin-bottom: var(--space-6);
}

.tool-search-bar input {
    width: 100%;
    padding: var(--space-3) var(--space-5);
    padding-left: 44px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: var(--text-sm, 0.875rem);
    transition: border-color var(--transition-fast);
    outline: none;
}

.tool-search-bar input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.tool-search-bar input::placeholder {
    color: var(--color-text-muted);
}

.tool-search-bar .search-icon-wrap {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

/* ============================================
   7. TOOL CARDS GRID
   ============================================ */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    cursor: pointer;
    transition: all var(--transition-base, 250ms ease);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.tool-card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-subtle);
    border-radius: var(--radius-md);
    font-size: 20px;
}

.tool-card-title {
    font-size: var(--text-base, 1rem);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.tool-card-desc {
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-secondary);
    line-height: 1.5;
    flex: 1;
}

.tool-card-tags {
    display: flex;
    gap: var(--space-1);
    flex-wrap: wrap;
}

.tool-card-tag {
    font-size: 0.6875rem;
    padding: 2px 8px;
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    border-radius: var(--radius-full);
    font-weight: 500;
}

/* ============================================
   8. TOOL MODAL / PANEL
   ============================================ */

.tool-panel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 400;
    animation: fadeIn 0.2s ease;
}

.tool-panel-overlay.active {
    display: block;
}

.tool-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 720px;
    height: 100vh;
    background: var(--color-bg);
    z-index: 500;
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.tool-panel.active {
    display: block;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tool-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tool-panel-title {
    font-size: var(--text-lg, 1.125rem);
    font-weight: 700;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tool-panel-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-elevated, var(--color-surface));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 18px;
}

.tool-panel-close:hover {
    background: var(--color-error);
    color: white;
    border-color: var(--color-error);
}

.tool-panel-body {
    padding: var(--space-5);
}

@media (max-width: 768px) {
    .tool-panel {
        max-width: 100%;
    }
}

/* ============================================
   9. FORM ELEMENTS (Inputs, Buttons, Toggles)
   ============================================ */

.cs-form-group {
    margin-bottom: var(--space-4);
}

.cs-label {
    display: block;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.cs-input,
.cs-textarea,
.cs-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: var(--text-sm, 0.875rem);
    transition: border-color var(--transition-fast);
    outline: none;
}

.cs-input:focus,
.cs-textarea:focus,
.cs-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.cs-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-mono, monospace);
}

.cs-input-mono {
    font-family: var(--font-mono, monospace);
}

.cs-input[autocomplete="off"] {
    -webkit-text-security: none;
}

/* Range Slider */
.cs-range-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.cs-range {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--color-border);
    outline: none;
}

.cs-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    border: 2px solid var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.cs-range-value {
    min-width: 40px;
    text-align: center;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-accent);
}

/* Toggle Switches */
.cs-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.cs-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-secondary);
    user-select: none;
}

.cs-toggle input[type="checkbox"] {
    position: relative;
    width: 36px;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.cs-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.cs-toggle input[type="checkbox"]:checked {
    background: var(--color-accent);
}

.cs-toggle input[type="checkbox"]:checked::after {
    transform: translateX(16px);
}

/* Buttons */
.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.cs-btn-primary {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.cs-btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    box-shadow: var(--shadow-md);
}

.cs-btn-secondary {
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}

.cs-btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.cs-btn-success {
    background: var(--color-success);
    color: white;
}

.cs-btn-success:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-md);
}

.cs-btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs, 0.75rem);
}

.cs-btn-row {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

/* ============================================
   10. OUTPUT / RESULTS
   ============================================ */

.cs-output {
    background: var(--color-surface-elevated, var(--color-surface));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-4);
    position: relative;
}

.cs-output-label {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.cs-output-value {
    font-family: var(--font-mono, monospace);
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-primary);
    word-break: break-all;
    line-height: 1.6;
    min-height: 24px;
}

.cs-output-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.cs-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cs-copy-btn:hover {
    background: var(--color-accent);
    color: white;
}

.cs-copy-btn.copied {
    background: var(--color-success);
    color: white;
}

/* ============================================
   11. STRENGTH METER
   ============================================ */

.strength-meter {
    margin-top: var(--space-4);
}

.strength-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-2);
}

.strength-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
    width: 0%;
}

.strength-bar-fill.score-0 { width: 5%; background: var(--color-error); }
.strength-bar-fill.score-1 { width: 25%; background: var(--color-error); }
.strength-bar-fill.score-2 { width: 50%; background: var(--color-warning); }
.strength-bar-fill.score-3 { width: 75%; background: #84cc16; }
.strength-bar-fill.score-4 { width: 100%; background: var(--color-success); }

.strength-text {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
}

.strength-text.score-0,
.strength-text.score-1 { color: var(--color-error); }
.strength-text.score-2 { color: var(--color-warning); }
.strength-text.score-3 { color: #84cc16; }
.strength-text.score-4 { color: var(--color-success); }

.strength-details {
    margin-top: var(--space-3);
    font-size: var(--text-xs, 0.75rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.strength-detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-1) 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

/* ============================================
   12. FILE DROP ZONE
   ============================================ */

.cs-dropzone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-4);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--color-surface);
    margin-bottom: var(--space-4);
}

.cs-dropzone:hover,
.cs-dropzone.drag-over {
    border-color: var(--color-accent);
    background: var(--color-accent-subtle);
}

.cs-dropzone-icon {
    font-size: 32px;
    margin-bottom: var(--space-2);
    opacity: 0.6;
}

.cs-dropzone-text {
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-secondary);
}

.cs-dropzone-text strong {
    color: var(--color-accent);
}

.cs-dropzone input[type="file"] {
    display: none;
}

/* ============================================
   13. HASH RESULTS TABLE
   ============================================ */

.cs-hash-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-4);
    font-size: var(--text-sm, 0.875rem);
}

.cs-hash-table th,
.cs-hash-table td {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.cs-hash-table th {
    font-weight: 600;
    color: var(--color-text-primary);
    background: var(--color-surface);
    font-size: var(--text-xs, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-hash-table td {
    font-family: var(--font-mono, monospace);
    color: var(--color-text-secondary);
    word-break: break-all;
    font-size: 0.75rem;
}

/* ============================================
   14. ENCODER/DECODER TAB INTERFACE
   ============================================ */

.cs-subtabs {
    display: flex;
    gap: var(--space-1);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 3px;
    margin-bottom: var(--space-4);
    overflow-x: auto;
}

.cs-subtab {
    flex: 1;
    min-width: 0;
    padding: var(--space-2) var(--space-3);
    border: none;
    background: none;
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-align: center;
    white-space: nowrap;
}

.cs-subtab.active {
    background: var(--color-accent);
    color: white;
}

.cs-subtab:hover:not(.active) {
    background: var(--color-accent-subtle);
    color: var(--color-accent);
}

/* ============================================
   15. FINGERPRINT AUDIT
   ============================================ */

.fingerprint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.fingerprint-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}

.fingerprint-item-label {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-1);
}

.fingerprint-item-value {
    font-size: var(--text-sm, 0.875rem);
    font-family: var(--font-mono, monospace);
    color: var(--color-text-primary);
    word-break: break-all;
}

.uniqueness-score {
    text-align: center;
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.uniqueness-score .score-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    color: var(--color-accent);
    line-height: 1;
}

.uniqueness-score .score-label {
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-secondary);
    margin-top: var(--space-2);
}

/* ============================================
   16. RISK INDICATORS
   ============================================ */

.risk-safe {
    color: var(--color-success);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-xs, 0.75rem);
}

.risk-warning {
    color: var(--color-warning);
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-xs, 0.75rem);
}

.risk-danger {
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-xs, 0.75rem);
}

/* ============================================
   17. PROGRESS INDICATOR
   ============================================ */

.cs-progress {
    display: none;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    margin-top: var(--space-3);
}

.cs-progress.active {
    display: flex;
}

.cs-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cs-progress-text {
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-secondary);
}

/* ============================================
   18. SECTION HEADINGS INSIDE PANELS
   ============================================ */

.cs-section-title {
    font-size: var(--text-base, 1rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border-subtle);
}

/* ============================================
   19. EXIF TABLE
   ============================================ */

.exif-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm, 0.875rem);
}

.exif-table th,
.exif-table td {
    text-align: left;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--color-border-subtle);
}

.exif-table th {
    font-weight: 600;
    color: var(--color-text-primary);
    width: 40%;
}

.exif-table td {
    color: var(--color-text-secondary);
    word-break: break-word;
}

.exif-table .exif-gps {
    color: var(--color-error);
    font-weight: 600;
}

/* ============================================
   20. GEO / SEO CONTENT SECTIONS
   ============================================ */

.geo-answer-block {
    margin-bottom: var(--space-8);
}

.geo-summary {
    font-size: var(--text-base, 1rem);
    line-height: var(--leading-relaxed, 1.75);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.geo-key-facts {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin: var(--space-6) 0;
}

.geo-key-facts h2 {
    font-size: var(--text-lg, 1.125rem);
    margin-bottom: var(--space-3);
    color: var(--color-text-primary);
}

.geo-key-facts ul {
    list-style: none;
    padding: 0;
}

.geo-key-facts li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border-subtle);
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-secondary);
}

.geo-key-facts li:last-child {
    border-bottom: none;
}

.geo-key-facts li strong {
    color: var(--color-text-primary);
}

.geo-faq {
    margin: var(--space-8) 0;
}

.geo-faq h2 {
    font-size: var(--text-lg, 1.125rem);
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.geo-faq details {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    overflow: hidden;
}

.geo-faq summary {
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: var(--text-sm, 0.875rem);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.geo-faq summary::-webkit-details-marker {
    display: none;
}

.geo-faq summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

.geo-faq details[open] summary::after {
    content: '-';
}

.geo-faq details p {
    padding: 0 var(--space-5) var(--space-4);
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.geo-related {
    margin: var(--space-8) 0;
}

.geo-related h2 {
    font-size: var(--text-lg, 1.125rem);
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.geo-related ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-3);
}

.geo-related li a {
    display: block;
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-accent);
    font-weight: 600;
    font-size: var(--text-sm, 0.875rem);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.geo-related li a:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   21. AD SLOTS
   ============================================ */

.ad-container {
    text-align: center;
    margin: var(--space-6) 0;
}

.ad-slot {
    display: inline-block;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ad-leaderboard {
    max-width: 728px;
    width: 100%;
    min-height: 90px;
}

.ad-rectangle {
    width: 300px;
    min-height: 250px;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: var(--text-xs, 0.75rem);
    padding: var(--space-4);
    min-height: inherit;
}

/* ============================================
   22. COMPARE INPUT
   ============================================ */

.cs-compare-wrap {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
    align-items: center;
}

.cs-compare-wrap input {
    flex: 1;
}

.cs-compare-result {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    margin-top: var(--space-2);
}

.cs-compare-result.match {
    color: var(--color-success);
}

.cs-compare-result.no-match {
    color: var(--color-error);
}

/* ============================================
   23. CODE OUTPUT (for header generator etc.)
   ============================================ */

.cs-code-block {
    background: #1e1e2e;
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-3);
    overflow-x: auto;
    position: relative;
}

.cs-code-block pre {
    margin: 0;
    font-family: var(--font-mono, monospace);
    font-size: 0.8125rem;
    color: #cdd6f4;
    line-height: 1.6;
    white-space: pre;
}

.cs-code-block .copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* ============================================
   24. RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .pillar-tab {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs, 0.75rem);
    }

    .cs-subtabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .cs-btn-row {
        flex-direction: column;
    }

    .cs-btn-row .cs-btn {
        width: 100%;
    }

    .fingerprint-grid {
        grid-template-columns: 1fr;
    }

    .tool-panel-body {
        padding: var(--space-4);
    }
}

/* ============================================
   25. CREDIT CARD VISUAL
   ============================================ */

.cc-visual {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    color: white;
    margin: var(--space-4) 0;
    max-width: 380px;
    aspect-ratio: 1.586;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--font-mono, monospace);
}

.cc-visual .cc-type {
    font-size: var(--text-lg, 1.125rem);
    font-weight: 700;
    text-align: right;
    opacity: 0.9;
}

.cc-visual .cc-number {
    font-size: 1.25rem;
    letter-spacing: 3px;
    text-align: center;
}

.cc-visual .cc-status {
    font-size: var(--text-sm, 0.875rem);
    text-align: center;
    opacity: 0.8;
}

/* ============================================
   26. PILLAR SECTION VISIBILITY
   ============================================ */

.pillar-section {
    display: none;
}

.pillar-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ============================================
   27. SECURITY HEADER CHECKBOXES
   ============================================ */

.cs-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.cs-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-secondary);
    cursor: pointer;
}

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

/* ============================================
   28. NOTIFICATION TOAST
   ============================================ */

.cs-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-surface-elevated, var(--color-surface));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-5);
    box-shadow: var(--shadow-lg);
    z-index: 700;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    color: var(--color-text-primary);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cs-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cs-toast.success {
    border-color: var(--color-success);
    color: var(--color-success);
}

/* ============================================
   29. REFERENCE TABLE (Common Ports etc.)
   ============================================ */

.cs-ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm, 0.875rem);
    margin-top: var(--space-4);
}

.cs-ref-table th,
.cs-ref-table td {
    text-align: left;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--color-border);
}

.cs-ref-table th {
    background: var(--color-surface);
    font-weight: 600;
    color: var(--color-text-primary);
    position: sticky;
    top: 0;
}

.cs-ref-table td {
    color: var(--color-text-secondary);
}

.cs-ref-table tbody tr:hover {
    background: var(--color-accent-subtle);
}

/* ============================================
   30. HIDDEN UTILITY
   ============================================ */

.cs-hidden {
    display: none !important;
}

/* Sticky Privacy Footer */
.sticky-privacy-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-success);
    padding: var(--space-2) var(--space-4);
    text-align: center;
    font-size: var(--text-xs, 0.75rem);
    color: var(--color-success);
    z-index: 50;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.sticky-privacy-footer span {
    font-weight: 600;
}
