/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Fonts */
    --font-primary: 'Outfit', sans-serif;

    /* Transition speeds */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark Theme (Default) */
body.dark-theme {
    --bg-primary: hsl(230, 25%, 8%);
    --bg-secondary: hsl(230, 25%, 12%);
    --bg-card: rgba(26, 29, 46, 0.75);
    --bg-card-hover: rgba(36, 40, 64, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: hsl(260, 80%, 65%);
    
    --text-primary: hsl(230, 20%, 94%);
    --text-secondary: hsl(230, 15%, 65%);
    --text-muted: hsl(230, 10%, 45%);
    
    --accent-color: hsl(260, 85%, 60%);
    --accent-hover: hsl(260, 95%, 65%);
    --accent-glow: rgba(139, 92, 246, 0.3);
    --accent-gradient: linear-gradient(135deg, hsl(260, 85%, 60%) 0%, hsl(290, 85%, 55%) 100%);
    
    --success: hsl(142, 70%, 45%);
    --danger: hsl(350, 80%, 55%);
    --danger-hover: hsl(350, 90%, 60%);

    --glow-one: rgba(139, 92, 246, 0.12);
    --glow-two: rgba(217, 70, 239, 0.08);
}

/* Light Theme */
body.light-theme {
    --bg-primary: hsl(220, 25%, 97%);
    --bg-secondary: hsl(220, 20%, 93%);
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-focus: hsl(260, 75%, 55%);
    
    --text-primary: hsl(220, 30%, 15%);
    --text-secondary: hsl(220, 15%, 45%);
    --text-muted: hsl(220, 10%, 60%);
    
    --accent-color: hsl(260, 75%, 55%);
    --accent-hover: hsl(260, 85%, 60%);
    --accent-glow: rgba(139, 92, 246, 0.15);
    --accent-gradient: linear-gradient(135deg, hsl(260, 75%, 55%) 0%, hsl(290, 75%, 50%) 100%);
    
    --success: hsl(142, 65%, 40%);
    --danger: hsl(350, 75%, 50%);
    --danger-hover: hsl(350, 85%, 55%);

    --glow-one: rgba(139, 92, 246, 0.05);
    --glow-two: rgba(217, 70, 239, 0.03);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Glow Effects */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.glow-bg::before, .glow-bg::after {
    content: '';
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(120px);
    opacity: 0.8;
}

.glow-bg::before {
    width: 600px;
    height: 600px;
    background: var(--glow-one);
    top: -200px;
    right: -100px;
}

.glow-bg::after {
    width: 500px;
    height: 500px;
    background: var(--glow-two);
    bottom: -150px;
    left: -100px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background: rgba(20, 22, 37, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

body.light-theme header {
    background: rgba(255, 255, 255, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span span {
    color: var(--accent-color);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.tabs-nav {
    display: flex;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    gap: 4px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    color: var(--text-primary);
}

.nav-btn.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

/* ==========================================================================
   CARDS & CONTAINER LAYOUT
   ========================================================================== */
.container {
    max-width: 1000px;
    width: 100%;
    margin: 20px auto;
    padding: 0 20px;
    flex-grow: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

body.light-theme .card {
    box-shadow: 0 15px 30px rgba(0,0,0,0.04);
}

/* ==========================================================================
   SIMPLE CLICKER TAB
   ========================================================================== */
.clicker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.counter-display {
    font-size: 6.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px var(--border-color);
    transition: transform 0.05s ease;
}

.counter-display.pulse {
    transform: scale(1.1);
    color: var(--accent-color);
}

.click-area-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin-bottom: 40px;
}

.main-click-btn {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-family: var(--font-primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--accent-glow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    outline: none;
}

.main-click-btn span {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.main-click-btn small {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-click-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px var(--accent-glow);
}

.main-click-btn:active {
    transform: translateY(2px) scale(0.98);
}

.main-click-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

.main-click-btn.animate-ripple::after {
    animation: ripple 0.4s ease-out;
}

/* Floating click text anim */
.click-floater {
    position: absolute;
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.5rem;
    pointer-events: none;
    animation: floatUp 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.control-row {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 380px;
    justify-content: center;
    margin-bottom: 40px;
}

.control-btn {
    flex: 1;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: translateY(1px);
}

.reset-btn {
    flex: 1.5;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.reset-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* Settings Grid */
.settings-panel {
    width: 100%;
    max-width: 600px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: left;
}

.settings-panel h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.setting-item input[type="number"] {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.setting-item input[type="number"]:focus {
    border-color: var(--border-focus);
}

.toggle-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.toggle-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: .3s;
    border-radius: var(--radius-full);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .3s;
    border-radius: var(--radius-full);
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: white;
}

/* ==========================================================================
   CPS TEST TAB
   ========================================================================== */
.cps-card {
    text-align: center;
}

.cps-header {
    margin-bottom: 30px;
}

.cps-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.cps-header p {
    color: var(--text-secondary);
}

.time-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.time-btn {
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.time-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.time-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.cps-stats-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.stat-box {
    flex: 1;
    max-width: 160px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cps-click-btn {
    width: 100%;
    max-width: 420px;
    height: 200px;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.08);
    border: 2px dashed var(--accent-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    outline: none;
    user-select: none;
}

.cps-click-btn span {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-color);
}

.cps-click-btn small {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.cps-click-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    border-style: solid;
}

.cps-click-btn:active {
    transform: scale(0.99);
}

.cps-record-box {
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   MULTI-COUNTER TAB
   ========================================================================== */
.multi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.multi-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.multi-header p {
    color: var(--text-secondary);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: white;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: all var(--transition-fast);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.multi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.multi-item-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    transition: all var(--transition-fast);
}

.multi-item-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.multi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.multi-title-input {
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    width: 80%;
    outline: none;
    border-bottom: 1px dashed transparent;
    transition: border-color var(--transition-fast);
}

.multi-title-input:focus {
    border-bottom-color: var(--text-muted);
}

.delete-counter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color var(--transition-fast);
}

.delete-counter-btn:hover {
    color: var(--danger);
}

.multi-value-display {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin: 10px 0;
}

.multi-card-controls {
    display: flex;
    gap: 10px;
}

.multi-card-controls button {
    flex: 1;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
}

.multi-card-controls button:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.multi-card-controls .multi-reset-btn {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.multi-card-controls .multi-reset-btn:hover {
    background: var(--danger);
    color: white;
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    animation: fadeIn var(--transition-fast);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 90%;
    max-width: 440px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: scale(1);
    animation: scaleUp var(--transition-normal) forwards;
}

.modal h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.result-rank-icon {
    font-size: 4.5rem;
    margin: 20px 0 10px;
}

.result-rank-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.result-stats {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.result-stats p {
    font-size: 1.05rem;
    margin: 8px 0;
    color: var(--text-secondary);
}

.result-stats strong {
    color: var(--text-primary);
}

.result-message {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.modal-content button {
    width: 100%;
}

/* ==========================================================================
   SEO CONTENT SECTION
   ========================================================================== */
.seo-section {
    margin-top: 40px;
}

.seo-section h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

.seo-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 12px;
}

.seo-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--text-muted);
}

.faq-item.active {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.faq-icon {
    color: var(--text-secondary);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 24px 20px 24px;
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.developer-note {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.developer-note p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-links a {
    margin: 0 12px;
    color: var(--text-secondary);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes ripple {
    from { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    to { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-80px) scale(0.8); opacity: 0; }
}

/* Screen alert pulse for meta targets */
.alert-pulse {
    animation: alertGlow 0.8s ease-in-out infinite alternate;
}

@keyframes alertGlow {
    from { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }
    to { box-shadow: 0 0 40px rgba(139, 92, 246, 0.8), inset 0 0 20px rgba(139, 92, 246, 0.3); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .tabs-nav {
        width: 100%;
        justify-content: space-around;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex: 1;
        justify-content: center;
    }

    .nav-btn span {
        display: none; /* Icon-only on very narrow mobile headers to save space */
    }

    .nav-btn svg {
        margin: 0;
    }

    .actions {
        display: none; /* Move theme toggle to header layout logic */
    }

    .counter-display {
        font-size: 5rem;
    }

    .main-click-btn {
        height: 150px;
    }

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

    .cps-stats-row {
        gap: 10px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

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

/* Custom Styles for Hero & SEO Content Enhancements */
.hero-section {
    text-align: center;
    padding: 0px 20px 0px 20px;
    margin-bottom: 15px;
    position: relative;
}

.hero-section h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.hero-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 10px auto;
    line-height: 1.5;
}

.cta-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 20px var(--accent-glow);
    border: none;
    background: var(--accent-gradient);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--accent-glow);
}

.cta-btn:active {
    transform: translateY(1px);
}

.seo-section ul {
    margin-left: 24px;
    margin-bottom: 20px;
    list-style-type: disc;
}

.seo-section li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

#tool-section {
    margin-bottom: 40px;
}

/* ==========================================================================
   RATING SECTION
   ========================================================================== */
.rating-bottom-section {
    margin: 50px auto 30px auto;
    text-align: center;
    max-width: 400px;
    animation: fadeIn var(--transition-normal);
}

.rating-pill {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    display: inline-block;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.05);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

body.light-theme .rating-pill {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.15);
}

.rating-pill:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.15);
}

.stars-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.star-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 6px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
}

.star-btn:hover {
    transform: scale(1.25) rotate(5deg);
}

.star-btn svg {
    fill: transparent;
    stroke: currentColor;
    transition: all var(--transition-fast);
}

.star-btn.active svg,
.star-btn.hovered svg {
    fill: #f59e0b;
    stroke: #d97706;
    color: #f59e0b;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

.rating-value {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 2.4rem;
    margin: 6px 0 2px 0;
    line-height: 1;
    letter-spacing: -1px;
}

.rating-votes {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.rating-feedback-msg {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 8px 20px;
    border-radius: var(--radius-md);
    display: inline-block;
    animation: fadeIn var(--transition-normal);
}



