/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Color Variables */
:root {
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transition */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables (Default) */
[data-theme="dark"] {
    --bg-app: #080d16;
    --bg-surface: #111824;
    --bg-surface-hover: #1e2633;
    --bg-surface-glass: rgba(17, 24, 36, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: #94a3b8;
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary: #ffffff;
    --primary-hover: #e2e8f0;
    --primary-text: #080d16;
    --primary-light: rgba(255, 255, 255, 0.1);
    
    --success: #38bdf8;
    --success-light: rgba(56, 189, 248, 0.1);
    
    --warning: #fbbf24;
    --warning-light: rgba(251, 191, 36, 0.1);
    
    --error: #f87171;
    --error-light: rgba(248, 113, 113, 0.1);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px rgba(255, 255, 255, 0.08);
    
    --glass-blur: blur(12px);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-app: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-surface-glass: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-focus: #475569;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #1e293b;
    --primary-hover: #0f172a;
    --primary-text: #ffffff;
    --primary-light: rgba(30, 41, 59, 0.05);
    
    --success: #334155;
    --success-light: rgba(30, 41, 59, 0.03);
    
    --warning: #d97706;
    --warning-light: rgba(217, 119, 6, 0.1);
    
    --error: #dc2626;
    --error-light: rgba(220, 38, 38, 0.1);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(30, 41, 59, 0.05), 0 2px 4px -1px rgba(30, 41, 59, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(30, 41, 59, 0.08), 0 4px 6px -2px rgba(30, 41, 59, 0.03);
    --shadow-glow: 0 0 15px rgba(30, 41, 59, 0.05);
    
    --glass-blur: blur(12px);
}

/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Header */
header {
    background-color: var(--bg-surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
}

.logo svg {
    color: var(--primary);
    width: 2rem;
    height: 2rem;
}

.logo-pro-badge {
    background: var(--pro-gradient);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.25rem;
    box-shadow: var(--shadow-pro-glow);
    display: none;
}

body.user-is-pro .logo-pro-badge {
    display: inline-block;
}

/* Nav Menu */
nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-text);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-pro {
    background: var(--pro-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-pro-glow);
    border: none;
}

.btn-pro:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

body.user-is-pro .btn-pro {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
    pointer-events: none;
    box-shadow: none;
}

/* Theme Switcher */
.theme-switch {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-switch:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

.theme-switch svg {
    width: 1.25rem;
    height: 1.25rem;
}

.theme-switch .sun-icon {
    display: block;
}

.theme-switch .moon-icon {
    display: none;
}

[data-theme="light"] .theme-switch .sun-icon {
    display: none;
}

[data-theme="light"] .theme-switch .moon-icon {
    display: block;
}

/* Main Content Area */
main.container {
    flex-grow: 1;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Single Unified Card layout */
.main-tool-card {
    max-width: 800px;
    margin: 0 auto;
}


/* Cards & Containers */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.card-title-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.badge-free {
    background-color: var(--primary-light);
    color: var(--primary);
}

.badge-pro {
    background: var(--pro-gradient);
    color: #fff;
    box-shadow: var(--shadow-pro-glow);
}

body.user-is-pro .badge-free {
    display: none;
}

body:not(.user-is-pro) .badge-pro {
    display: none;
}

/* Form inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.textarea-2fa {
    width: 100%;
    min-height: 250px;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    word-break: break-all;
    white-space: pre-wrap;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.textarea-2fa:focus {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-glow);
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.limit-indicator.limit-warning {
    color: var(--error);
    font-weight: 600;
}

/* Actions list */
.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tool-actions button {
    flex-grow: 1;
}

/* Results Area */
.results-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* SVG Countdown timer styling */
.timer-circle-svg {
    transform: rotate(-90deg);
}

.timer-bg-circle {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 3px;
}

.timer-progress-circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3px;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

@media (min-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.result-card {
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.result-card:hover {
    border-color: var(--border-focus);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.result-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.result-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.result-status.status-valid {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.result-status.status-invalid {
    background-color: var(--error);
    box-shadow: 0 0 8px var(--error);
}

.result-code-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.result-code {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--primary);
    letter-spacing: 0.05em;
    cursor: pointer;
    user-select: all;
    line-height: 1;
}

.result-code.code-invalid {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.btn-copy {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-copy:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    background-color: var(--border-color);
}

.result-secret-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.result-secret {
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
}

.btn-toggle-secret {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-toggle-secret:hover {
    color: var(--text-secondary);
}

/* Empty State */
.results-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    text-align: center;
}

.results-empty svg {
    width: 3.5rem;
    height: 3.5rem;
    stroke-width: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.results-empty p {
    max-width: 320px;
    font-size: 0.95rem;
}

/* Banner Upgrade Pro */
.upgrade-banner {
    background: var(--pro-light);
    border: 1px dashed var(--pro-color);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .upgrade-banner {
        flex-direction: row;
        text-align: left;
    }
}

.upgrade-banner-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .upgrade-banner-content h4 {
        justify-content: flex-start;
    }
}

.upgrade-banner-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* SEO Content Area */
.seo-section {
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}

.seo-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.seo-title span {
    color: var(--primary);
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .seo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.seo-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
}

.seo-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seo-card h3 svg {
    color: var(--primary);
    flex-shrink: 0;
}

.seo-card p, .seo-card li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.seo-card ul {
    padding-left: 1.25rem;
}

/* Full Width FAQ Accordion */
.faq-section {
    margin-top: 4rem;
}

.faq-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--bg-surface-hover);
}

.faq-question svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-muted);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.btn-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}

.btn-modal-close:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Upgrading/Payment styling */
.pro-pricing {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pro-pricing .price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pro-color);
}

.pro-pricing .period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pro-features {
    list-style: none;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pro-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    text-align: left;
}

.pro-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

.payment-options {
    margin-top: 2rem;
}

.payment-tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.payment-tab-btn {
    flex-grow: 1;
    background: none;
    border: none;
    padding: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.payment-tab-btn.active {
    color: var(--pro-color);
    border-bottom-color: var(--pro-color);
}

.payment-content {
    display: none;
}

.payment-content.active {
    display: block;
}

.qr-code-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.qr-code-placeholder {
    width: 200px;
    height: 200px;
    background: #fff;
    border: 4px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-placeholder img {
    max-width: 100%;
    height: auto;
}

.qr-details {
    text-align: center;
    font-size: 0.9rem;
}

.qr-details div {
    margin-bottom: 0.25rem;
}

.qr-details span {
    font-weight: 700;
    color: var(--text-primary);
}

.card-payment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-styled {
    width: 100%;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: var(--text-primary);
}

.input-styled:focus {
    border-color: var(--pro-color);
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.15);
}

.activation-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

/* Secondary Pages (About, Terms, Privacy, Contact) */
.page-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.rich-text {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.rich-text h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.rich-text h2:first-of-type {
    margin-top: 0;
}

.rich-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.rich-text ul, .rich-text ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.rich-text li {
    margin-bottom: 0.5rem;
}

/* Contact Form Specifics */
.contact-form-card {
    max-width: 600px;
    margin: 0 auto;
}

.contact-success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.contact-success-state svg {
    width: 4rem;
    height: 4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

/* Toasts notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 350px;
    width: calc(100% - 4rem);
}

.toast {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(1rem);
    opacity: 0;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.toast.toast-success {
    border-left: 4px solid var(--success);
}

.toast.toast-error {
    border-left: 4px solid var(--error);
}

.toast.toast-pro {
    border-left: 4px solid var(--pro-color);
}

.toast svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.toast-success svg {
    color: var(--success);
}

.toast-error svg {
    color: var(--error);
}

.toast-pro svg {
    color: var(--pro-color);
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes toastIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast-out {
    transform: translateY(-1rem);
    opacity: 0 !important;
}

/* Footer styling */
footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-info p {
    margin-top: 0.75rem;
    max-width: 320px;
}

.footer-links-col h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
}

/* Hide PRO upgrade buttons and banners by default to avoid showing them obviously */
#btn-open-pro {
    display: none !important;
}
.upgrade-banner {
    display: none !important;
}

/* Mobile Responsive Optimizations & Layout Balance */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    header .container {
        height: 4rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        font-size: 1.25rem;
    }

    .logo svg {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    main.container {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .card {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }
    
    .card h2 {
        font-size: 1.25rem;
    }
    
    .textarea-2fa {
        min-height: 180px;
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    .results-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        max-height: 500px;
    }
    
    .result-card {
        padding: 1rem;
    }
    
    .result-code {
        font-size: 1.85rem;
    }
    
    .seo-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }
    
    .seo-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
        line-height: 1.3;
    }
    
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .seo-card {
        padding: 1.25rem;
    }
    
    .faq-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-answer-inner {
        padding: 0 1.25rem 1rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .rich-text {
        padding: 1.5rem 1.25rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-header {
        margin-bottom: 2rem;
    }
    
    footer {
        padding: 2rem 0;
    }
    
    .footer-grid {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
}


