/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;200;300;400;500;600;700;800&display=swap');

/* GLOBALS */
:root {
    --pure-white: #fff;
    --white: #fff;
    --gray: #727477;
    --light-gray: #f7f8fa;
    --highlight-gray: #e7e8ee;
    --medium-gray: #5d5e60;
    --dark-gray: #242428;
    --teal: #018777;
    --teal-dark: #017066;
    --teal-light: #eff7f6;
    --red: #fb5959;
    --red-light: #fb595910;
    --primary-green: #28a745;
    --secondary-green: #20c997;
    --input-shadow: 0 0 0 3px rgb(1, 135, 119, 0.1);
    
    /* Global Font Sizes */
    --font-size-tiny: 12px;
    --font-size-xs: 13px;
    --font-size-sm: 14px;
    --font-size-base: 15px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;
    --font-size-5xl: 48px;
    --font-size-6xl: 40px;
    
    /* Global Border Radius */
    --border-radiusS: 6px;
    --border-radius: 8px;
    --border-radiusL: 10px;
    
    /* Global Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* Global Font Family */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root[data-theme="dark"] {
    --dark-gray: #ffffff;
    --white: #1d1d1f;
    --light-gray: #19191b;
    --highlight-gray: #26272C;
    --medium-gray: #d8d8d8;
    --teal: #018777;
    --red: #ff6b6b;
}

@media (max-width: 768px) {
    :root {
        --font-size-tiny: 11px;
        --font-size-xs: 12px;
        --font-size-sm: 13px;
        --font-size-base: 14px;
        --font-size-lg: 17px;
        --font-size-xl: 19px;
        --font-size-2xl: 23px;
        --font-size-3xl: 29px;
        --font-size-4xl: 35px;
        --font-size-5xl: 47px;
        --font-size-6xl: 36px;
    }
}

/* LAZY LOADING STYLES */
.lazy-loading {
    position: absolute;
    background-color: var(--white);
    height: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 2;
}

.lazy-loading.loaded {
    display: none;
}

.profile-icon:empty {
    border: 1px solid transparent;
    background: linear-gradient(90deg, var(--light-gray) 5%, var(--highlight-gray) 50%, var(--light-gray) 100%);
    background-size: 200% 100%;
    animation: loading-gradient 1.5s infinite 0.2s;
}

/* Skeleton sections */
.lazy-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(90deg, var(--light-gray) 25%, var(--highlight-gray) 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: loading-gradient 1.5s infinite;
    border-radius: var(--border-radius);
    z-index: 1;
}

.lazy-loading .skeleton-section-0 {
    content: '';
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(90deg, var(--light-gray) 25%, var(--highlight-gray) 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: loading-gradient 1.5s infinite 0.2s;
    border-radius: var(--border-radius);
    z-index: 1;
}

.lazy-loading .skeleton-section-1 {
    position: absolute;
    top: 300px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(90deg, var(--light-gray) 25%, var(--highlight-gray) 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: loading-gradient 1.5s infinite 0.4s;
    border-radius: var(--border-radius);
    z-index: 1;
}

.lazy-loading .skeleton-section-2 {
    position: absolute;
    top: 440px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(90deg, var(--light-gray) 25%, var(--highlight-gray) 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: loading-gradient 1.5s infinite 0.6s;
    border-radius: var(--border-radius);
    z-index: 1;
}

@keyframes loading-gradient {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
}

/* Base Typography - Common Elements */
body {
    line-height: 1.75;
    color: var(--dark-gray);
    font-size: var(--font-size-sm);
    /* Mobile safe area support */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

body:has(.strict-page.gray-bg) {
    background-color: var(--light-gray);
}

/* Paragraphs */
p {
    color: var(--medium-gray);
    margin: 10px 0;
    font-size: var(--font-size-sm);
    line-height: 1.75;
}

/* Links */
a, .strict-page .faq-link {
    color: var(--gray);
    text-decoration: none;
    font-size: inherit;
    padding-bottom: 3px;
    border-bottom: 0.5px solid var(--gray);
}

a:hover, .strict-page .faq-link:hover {
    color: var(--dark-gray);
    border-bottom: 0.5px solid var(--dark-gray);   
}

img {
    max-width: 100%;
}

code {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9em;
    background-color: var(--highlight-gray);
    padding: 2px 6px;
    color: var(--dark-gray);
    border: 1px solid var(--highlight-gray);
    white-space: nowrap;
}

.left-text * {
    text-align: left;
}

.left-text .features-section .section-description {
    text-align: left;
    margin: 0;
}

/* Global Styles */
.icon {
    width: 17px;
    height: 17px;
    cursor: pointer;
    stroke: var(--dark-gray);
    stroke-width: 1.8;
    fill: none;
}

/* Headings */
h1 {
    margin: 26px 0 0 0;
    color: var(--dark-gray);
    line-height: 1.25;
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin: 38px 0 8px 0;
    color: var(--dark-gray);
    line-height: 1.25;
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin: 20px 0 8px 0;
    color: var(--dark-gray);
    line-height: 1.5;
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 4px 0;
    color: var(--dark-gray);
    line-height: 1.5;
}

h5, h6 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin: 4px 0;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* Lists */
ul, ol {
    margin: 0;
    padding-left: 26px;
}

ul ul, ol ol, li ol, ol li, li ul, ol ul {
    margin: 8px 0;
}

li {
    color: var(--medium-gray);
    font-size: var(--font-size-sm);
    line-height: 1.75;
}

/* Text formatting */
strong, b {
    color: var(--dark-gray);
    font-weight: 600;
}

em, i {
    font-style: italic;
    color: var(--medium-gray);
}

button {
    background-color: var(--teal);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

button:disabled, input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

input {
    padding: 16px;
    height: 50px;
    width: 100%;
    color: var(--dark-gray);
    font-size: var(--font-size-sm);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusL);
}

input:hover {
    border: 1px solid var(--teal);
}

input:focus {
    outline: none;
    border: 1px solid var(--teal);
    box-shadow: var(--input-shadow);
}

textarea:focus {
    outline: none;
}

input:disabled, textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

small {
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: none;
}

.backdrop.active {
    display: block;
}

/* Loading Spinner */
.loading-spinner-mini {
    width: 18px;
    height: 18px;
    border: 1.5px solid transparent;
    border-top: 1.5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite; 
}

.access-options .loading-spinner-mini {
    margin-right: 5px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HEADER STYLES */
.header-menu {
    background: var(--white);
    border-bottom: 1px solid var(--highlight-gray);
    position: sticky;
    padding: 0 20px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    text-decoration: none;
    border: none;
}

.header-logo:hover {
    border: none;
}

.header-logo .icon-logo {
    width: 42px;
    height: 42px;
    margin-left: -6px;
    border-radius: var(--border-radius);
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    text-decoration: none;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-menu-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
}

.header-menu-items li {
    margin: 0;
}

.header-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    padding: 8px 0;
    transition: color 0.2s ease;
    position: relative;
    border: none;
    text-decoration: none;
}

span.header-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 4px;
}

.header-link:hover {
    color: var(--teal);
    border: none;
}

.header-link:hover svg {
    transition: all 0.2s ease;
    stroke: var(--teal);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown:hover ~ .dropdown-menu, .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 1000px;
    max-width: calc(100vw - 40px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 3;
    padding: 15px 0;
    gap: 0;
}

.dropdown-inside {
    display: grid;
    list-style: none;
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px 15px 15px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    border: 1px solid var(--highlight-gray);
    background: var(--white);
    border-radius: var(--border-radiusL);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-menu-close {
    display: none;
    position: fixed;
    right: 12px;
    top: 12px;
    width: 40px;
    height: 40px;
    padding: 8px;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--medium-gray);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: background-color 0.2s ease;
    text-decoration: none;
    border: none;
}

/* Category Headers */
.dropdown-category {
    margin: 0;
}

.dropdown-category:last-child {
    border-right: none;
}

.category-header {
    display: block;
    padding: 10px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    color: var(--gray);
    margin: 0;
}

/* Subcategory Menu */
.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--white);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    text-decoration: none;
    font-size: var(--font-size-xs);
    transition: background-color 0.2s ease;
    position: relative;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 6px;
}

.dropdown-menu a:hover {
    background-color: var(--highlight-gray);
    color: var(--dark-gray);
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
    margin: 0 8px 0 -8px;
}

.hamburger-menu:hover {
    background-color: var(--highlight-gray);
}

.hamburger-menu .icon {
    width: 24px;
    height: 24px;
    stroke: var(--dark-gray);
    stroke-width: 2;
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-auth {
    align-items: center;
    display: flex;
    gap: 4px;
}

.btn-login {
    background: transparent;
    color: var(--gray);
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.btn-login:hover {
    color: var(--dark-gray);
    border: none;
}

.btn-signup {
    background: var(--teal);
    color: var(--white);
    border: 1px solid var(--teal);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-signup:hover {
    background: var(--teal-dark);
    color: var(--white);
    border: 1px solid var(--teal-dark);
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: clip;
    background: #D5E1FF;
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--highlight-gray);
}

.profile-icon:hover {
    transform: scale(1.05);
}

.profile-icon svg {
    width: 30px;
    height: 30px;
    margin-bottom: -4px;
}

.profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    padding: 12px 6px;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.profile-dropdown:hover:not(.active) .profile-dropdown-menu,
.profile-dropdown.active .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 6px 12px;
    margin: 0 6px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
    background-color: transparent;
    border-radius: var(--border-radiusS);
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-link-pro, .dropdown-link-pro:hover {
    color: var(--teal);
}

.dropdown-link-pro svg {
    stroke: var(--teal);
}

.dropdown-link:hover {
    background-color: var(--highlight-gray);
    border: none;
}

.dropdown-divider {
    border-bottom: 1px solid var(--highlight-gray);
    margin: 12px 6px;
}

/* FOOTER STYLES */
.footer {
    background: var(--dark-gray);
    border-top: 1px solid var(--highlight-gray);
    padding: 0 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-section svg {
    stroke: var(--light-gray);
    height: 24px;
    width: 24px;
}

.footer-compliance-badges {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-compliance-badges .compliance-badge-one {
    height: 100%;
    width: 170px;
    margin: -40px -20px 0 -20px;
    stroke: none;
}

.footer-compliance-badges .compliance-badge-two {
    height: 50px;
    width: 60px;
    margin-top: -30px;
    border-radius: var(--border-radius);
}

.footer-section h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--dark-gray);
    margin: 0 0 16px 0;
}

.footer-section h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--light-gray);
    margin: 0 0 16px 0;
}

.footer-section p {
    color: var(--medium-gray);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin: 0 0 8px 0;
}

.footer-section ul li a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.2s ease;
    padding: 0;
    border: none;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--medium-gray);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--teal);
}

.footer-bottom {
    border-top: 1px solid var(--medium-gray);
    padding: 20px 0 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--light-gray);
    font-size: var(--font-size-xs);
    margin: 0;
}

.footer-bottom a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

/* MAIN CONTENT STYLES */
.content-wrapper {
    padding: 0 20px 20px;
}

.hero-section {
    text-align: center;
    padding: 20px 0;
    margin: 0 auto;
    position: relative;
}

.hero-section.gray-bg {
    background: var(--light-gray);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--medium-gray);
    line-height: 1.6;
    max-width: 525px;
    margin: 6px auto;
}

.content {
    background: var(--white);
    border-radius: var(--border-radiusL);
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--highlight-gray);
}

/* CUSTOM STYLES */
.homepage .content-wrapper:first-child {
    max-width: 100%;
    overflow: clip;
    background-color: var(--light-gray);
}

.strict-page .features-section.comparison {
    padding: 30px;
    margin: 10px auto;
    max-width: 900px;
}

.strict-page .content-wrapper {
    padding: 0 20px;
}

.strict-page h2 {
    font-size: var(--font-size-2xl);
}

.strict-page h3 {
    font-size: var(--font-size-xl);
}

.homepage .hero-section {
    max-width: 1200px;
}

.homepage .hero-section::before {
    content: '';
    position: absolute;
    top: 200px;
    left: -120px;
    width: 350px;
    height: 350px;
    opacity: 0.15;
    border-radius: 50%;
    background: linear-gradient(125deg, var(--teal) 0%, var(--light-gray) 75%, var(--light-gray) 100%);
}
    
.homepage .hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 275px;
    height: 275px;
    opacity: 0.15;
    border-radius: 50px;
    transform: rotate(35deg);
    background: linear-gradient(125deg, var(--teal) 0%, var(--light-gray) 75%, var(--light-gray) 100%);
}

/* Tab Selector Styles */
.tab-selector:has(.tab-button.active[data-tab="generator"]) ~ .products-grid .product-card[data-category="reviewer"],
.tab-selector:has(.tab-button.active[data-tab="generator"]) ~ .products-grid .product-card[data-category="summarizer"],
.tab-selector:has(.tab-button.active[data-tab="generator"]) ~ .products-grid .product-card[data-category="transcriber"],
.tab-selector:has(.tab-button.active[data-tab="generator"]) ~ .products-grid .product-card[data-category="solver"] {
    display: none;
}

.tab-selector:has(.tab-button.active[data-tab="reviewer"]) ~ .products-grid .product-card[data-category="generator"],
.tab-selector:has(.tab-button.active[data-tab="reviewer"]) ~ .products-grid .product-card[data-category="summarizer"],
.tab-selector:has(.tab-button.active[data-tab="reviewer"]) ~ .products-grid .product-card[data-category="transcriber"],
.tab-selector:has(.tab-button.active[data-tab="reviewer"]) ~ .products-grid .product-card[data-category="solver"] {
    display: none;
}

.tab-selector:has(.tab-button.active[data-tab="summarizer"]) ~ .products-grid .product-card[data-category="generator"],
.tab-selector:has(.tab-button.active[data-tab="summarizer"]) ~ .products-grid .product-card[data-category="reviewer"],
.tab-selector:has(.tab-button.active[data-tab="summarizer"]) ~ .products-grid .product-card[data-category="transcriber"],
.tab-selector:has(.tab-button.active[data-tab="summarizer"]) ~ .products-grid .product-card[data-category="solver"] {
    display: none;
}

.tab-selector:has(.tab-button.active[data-tab="solver"]) ~ .products-grid .product-card[data-category="generator"],
.tab-selector:has(.tab-button.active[data-tab="solver"]) ~ .products-grid .product-card[data-category="reviewer"],
.tab-selector:has(.tab-button.active[data-tab="solver"]) ~ .products-grid .product-card[data-category="transcriber"],
.tab-selector:has(.tab-button.active[data-tab="solver"]) ~ .products-grid .product-card[data-category="summarizer"] {
    display: none;
}

.tab-selector:has(.tab-button.active[data-tab="transcriber"]) ~ .products-grid .product-card[data-category="generator"],
.tab-selector:has(.tab-button.active[data-tab="transcriber"]) ~ .products-grid .product-card[data-category="reviewer"],
.tab-selector:has(.tab-button.active[data-tab="transcriber"]) ~ .products-grid .product-card[data-category="solver"],
.tab-selector:has(.tab-button.active[data-tab="transcriber"]) ~ .products-grid .product-card[data-category="summarizer"] {
    display: none;
}

.tab-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px auto 20px;
    max-width: 1200px;
    flex-wrap: wrap;
    z-index: 1;
    position: relative;
}

.tab-button {
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radius);
    padding: 12px 20px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--medium-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

.tab-button.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
    transform: translateY(0px);
}

.tab-button.active:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: var(--white);
}

/* Product Grid Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 25px auto 0;
}

.product-card {
    text-align: left;
    background: var(--white);
    border-radius: var(--border-radiusL);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--highlight-gray);
    text-decoration: none;
    color: inherit;
    display: block;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--highlight-gray);
}

.product-icon {
    display: flex;
    align-items: center;
    justify-content: start;
    border-radius: var(--border-radius);
}

.product-icon svg {
    width: 40px;
    height: 40px;
}

.product-card h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    margin: 12px 0 8px;
    line-height: 1.3;
}

.product-card p {
    font-size: var(--font-size-xs);
    color: var(--gray);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Features Section Base Styles */
.features-section {
    margin: 100px auto;
    max-width: 1200px;
    display: grid;
    align-items: center;
    text-align: center;
}

.strict-page .features-section {
    max-width: 800px;
    margin: 60px auto;
}

.strict-page .features-section .faq-container, .strict-page .features-section .press-container {
    grid-template-columns: 1fr;
}

.features-section .features-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
}

.features-section .features-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.features-section .features-grid.one-col {
    grid-template-columns: 1fr;
}

.features-section.gray-bg, .strict-page .features-section {
    border-radius: var(--border-radiusL);
    padding: 60px;
}

.strict-page .features-section {
    background-color: var(--white);
    border: 1px solid var(--highlight-gray);
}

.features-section.gray-bg {
    background: var(--light-gray);
}

.features-section.teal-bg {
    background: var(--teal);
    border-radius: var(--border-radiusL);
    padding: 60px;
}

.features-content {
    position: relative;
}

.features-section.right-side .features-content {
    display: flex;
    flex-direction: row;
    text-align: left;
    align-items: center;
}

.features-section.left-side .features-content {
    display: flex;
    flex-direction: row;
    text-align: right;
}

.main-content:not(:has(.strict-page)) .features-section h2 {
    margin-top: 0;
}

.features-section .section-description {
    font-size: var(--font-size-lg);
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.features-section .description-wide {
    max-width: 750px;
}

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

.features-section .features-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusL);
    position: relative;
}

.features-section .features-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.features-section .features-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.features-image svg {
    height: 40px;
    width: 40px;
}

.features-section .features-card h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    margin: 0 0 4px;
}

.features-section .features-card p {
    font-size: var(--font-size-xs);
    color: var(--gray);
    line-height: 1.4;
    margin: 0;
}

.features-section .features-card a {
    font-size: var(--font-size-xs);
}

.joined-in-text {
    padding-top: 3.5px;
}

.features-section .features-text {
    position: relative;
}

.features-text h1 {
    margin: 0 0 6px;
}

.features-bundle {
    position: relative;
    width: 200px;
    height: 300px;
    margin: -20px 100px 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-bundle svg {
    height: 80px;
    width: 80px;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    position: absolute;
    transition: all 0.2s ease;
}

.features-bundle svg.bundle-x-icon {
    background: transparent;
    height: 225px;
    width: 225px;
    transform: rotate(0) translate(0, 0);
    z-index: 8;
}

.features-bundle svg:nth-child(1) {
    transform: rotate(20deg) translate(-100px, 20px);
    z-index: 5;
}

.features-bundle svg:nth-child(2) {
    transform: rotate(20deg) translate(-0px, -90px);
    z-index: 2;
}

.features-bundle svg:nth-child(3) {
    transform: rotate(35deg) translate(90px, 50px);
    z-index: 3;
}

.features-bundle svg:nth-child(4) {
    transform: rotate(-20deg) translate(-75px, 80px);
    z-index: 4;
}

.features-bundle svg:nth-child(5) {
    transform: rotate(-20deg) translate(-25px, -90px);
    z-index: 5;
}

.features-bundle svg:nth-child(6) {
    transform: rotate(-10deg) translate(115px, -30px);
    z-index: 1;
}

.features-bundle svg:nth-child(7) {
    transform: rotate(5deg) translate(-25px, 15px);
    padding: 15px;
}

.features-bundle svg:nth-child(8) {
    transform: rotate(-45deg) translate(-110px, -40px);
}

.features-bundle svg:nth-child(9) {
    transform: rotate(-45deg) translate(50px, 110px);
}

.features-bundle svg:nth-child(10) {
    transform: rotate(-40deg) translate(30px, 40px);
}

.features-bundle:hover svg:not(.bundle-x-icon) {
    height: 85px;
    width: 85px;
}

.features-section--benefits h4 {
    font-size: var(--font-size-lg);
}

.features-section .benefit-number {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--teal);
    line-height: 1;
}

.features-section.comparison .features-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.features-section.comparison .badge {
    background: var(--teal);
    color: var(--white);
    position: absolute;
    left: 50%;
    top: -14px;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-tiny);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.features-section.comparison .badge svg {
    width: 12px;
    height: 12px;
    transform: scaleX(-1);
}

.features-section.comparison h3 {
    font-size: var(--font-size-base);
    margin-bottom: 0;
}

.features-section.comparison .features-card p {
    font-size: var(--font-size-sm);
    color: var(--medium-gray);
    padding: 4px 0 8px;
}

.features-section.comparison .features-content .features-card--pro{
    border: 2px solid var(--teal);
    background-color: var(--teal-light);
}

.features-section.comparison .price {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
}

.features-section.comparison .price-text, .features-section.comparison .price-subtext {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

.features-section.comparison .features-card .price-subtext {
    margin-top: -2px;
    padding-bottom: 15px;
}

.features-section.comparison .compare-cta {
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    margin-top: auto;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    gap: 4px;
    height: 40px;
}

.features-section.comparison .compare-cta svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
}

.features-section.comparison .compare-cta--free svg {
    stroke: var(--teal);
}

.features-section.comparison .compare-cta--free .loading-spinner-mini {
    border-top: 1.5px solid var(--teal);
}

.features-section.comparison .compare-cta--pro svg {
    stroke: var(--white);
}

.compare-cta--pro.loading {
    pointer-events: none;
    opacity: 0.5;
}

.features-section.comparison .compare-cta:hover {
    background: var(--teal-dark);
}

.features-section.comparison .compare-cta--free {
    background: var(--white);
    color: var(--teal);
    border: 1px solid var(--teal);
}

.features-section.comparison .compare-cta--free:hover {
    background: var(--teal-light);
}

/* Checkmark icons for compare-list items */
.compare-list {
    list-style: none;
    padding-left: 0;
}

.compare-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.compare-list li:last-of-type {
    margin-bottom: 40px;
}

.compare-list li::before {
    content: '';
    position: absolute;
    left: 0;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23018777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M5 12l5 5l10 -10' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    background: var(--highlight-gray);
    border-radius: var(--border-radius);
    padding: 4px;
    margin: 20px auto;
    gap: 4px;
    max-width: 300px;
    justify-content: center;
}

.pricing-option {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    cursor: pointer;
    border-radius: calc(var(--border-radius) - 2px);
    transition: all 0.2s ease;
    text-align: center;
    justify-content: center;
}

.pricing-option:hover {
    color: var(--dark-gray);
    background: var(--white);
}

.pricing-option.active {
    background: var(--white);
    color: var(--dark-gray);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Members Count Toggle */
.members-count-toggle {
    margin: 0 0 15px;
    text-align: left;
    flex-direction: column;
}

.teams-section .members-count-toggle {
    margin: 0;
}

.members-count-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.members-count-toggle label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.members-count-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
    height: 40px;
    width: 100%;
}

.teams-section .btn-primary {
    white-space: nowrap;
    height: 40px;
}

.members-count-btn {
    background: var(--white);
    color: var(--white);
    height: 30px;
    width: 40px;
    margin: 0 5px;
    border: none;
    border-radius: var(--border-radiusS);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.members-count-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--dark-gray);
}

.members-count-btn:hover {
    background: var(--highlight-gray);
}

.members-count-field {
    border: none;
    padding: 8px 12px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    text-align: center;
    background: var(--white);
    width: 100%;
    margin: 0;
    border-radius: 0;
}

.members-count-field:hover {
    border: none;
}

.members-count-field:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.members-count-field:focus + .members-count-input,
.members-count-input:focus-within {
    box-shadow: var(--input-shadow);
    border: 1px solid var(--teal);
}

.members-count-input:hover {
    border: 1px solid var(--teal);
}

.members-price-display {
    margin: 12px 0 0;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.members-price-inside {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.members-price-display p {
    font-size: var(--font-size-tiny);
    margin: 4px 0 0;
}

.update-team-btn:has(.loading-spinner-mini) {
    padding: 8px 10px;
}

.price-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--medium-gray);
}

.price-value {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--dark-gray);
}

.features-section.comparison .features-card p.billing-info-text {
    font-size: var(--font-size-xs);
    color: var(--medium-gray);
    text-align: center;
    max-width: 400px;
    margin: 4px auto -15px;
}

/* FAQ & PRESS Section */
/* FAQ & PRESS SECTION STYLES */
.faq-section .features-content {
    text-align: center;
}

.faq-container, .press-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.faq-item, .press-item {
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusL);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover, .press-item:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 12px rgba(1, 135, 119, 0.1);
    border: 1px solid var(--teal);
}

.faq-question, .press-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    transition: all 0.2s ease;
    gap: 16px;
}

.faq-question span, .press-question span {
    flex: 1;
    text-align: left;
}

.faq-icon {
    width: 20px;
    height: 20px;
    stroke: var(--teal);
    stroke-width: 2;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.faq-answer, .press-answer {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease, height 0.3s ease;
    padding: 0 24px 0;
    text-align: left;
    height: 0;
    cursor: pointer;
}

.faq-item.active .faq-answer, .press-item.active .press-answer {
    opacity: 1;
    transform: translateY(0);
    padding: 0 24px 24px;
    height: auto;
}

.faq-item:not(.active) .faq-answer p {
    margin: 0 -25px;
    padding: 0 25px 100px;
}

.faq-answer p, .press-answer p {
    margin: 0;
    color: var(--medium-gray);
    line-height: 1.6;
    font-size: var(--font-size-sm);
}

.faq-answer ul {
    margin-bottom: 0;
}

.press-question, .press-answer {
    cursor: inherit;
}

/* Contact Section Styles */
.contact-section {
    padding: 40px 0;
    margin-top: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radiusL);
    text-align: center;
}

.contact-content h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--dark-gray);
    margin-top: 0;
}

.contact-content p {
    font-size: var(--font-size-base);
    color: var(--medium-gray);
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.btn-contact {
    background: var(--teal);
    color: var(--white);
    border: 1px solid var(--teal);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-contact:hover {
    color: var(--white);
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    border: 1px solid var(--teal-dark);
}

  /* SIGN UP AND LOGIN STYLES */
.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--white);
}

.auth-form {
    max-width: 400px;
    width: 100%;
}

.auth-logo {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 6px;
    margin: 0 10px 16px 6px;
}

.auth-logo svg {
    width: 40px;
    height: 40px;
    margin-top: -4px;
}

.auth-subtitle {
    text-align: center;
    margin: 5px 0 20px;
    font-size: var(--font-size-lg);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusS);
    background: var(--white);
    color: var(--dark-gray);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.auth-btn svg {
    height: 22px;
    width: 22px;
}

.auth-btn:hover {
    background: var(--light-gray);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 8px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--highlight-gray);
}

.auth-divider span {
    position: relative;
    background: var(--white);
    padding: 0 16px;
    color: var(--gray);
    font-size: var(--font-size-xs);
}

.auth-form-inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group input {
    height: auto;
    border-radius: var(--border-radiusS);
}

.input-wrap {
    position: relative;
    transition: all 0.3s ease;
}

.input-wrap::before {
    position: absolute;
    content: '';
    background-repeat: no-repeat;
    background-position: center;
    left: 14px;
    top: 15px;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 1;
}

.input-wrap:has(input[type="email"])::before {
    background-size: 19px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23727477' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z' /%3E%3Cpath d='M3 7l9 6l9 -6' /%3E%3C/svg%3E");
}

.input-wrap:has(:not(:placeholder-shown)) ~ .input-wrap:has(input[type="password"])::before {
    background-size: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23727477' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z' /%3E%3Cpath d='M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0' /%3E%3Cpath d='M8 11v-4a4 4 0 1 1 8 0v4' /%3E%3C/svg%3E");
}

.input-wrap:has(input[type="tel"])::before {
    background-size: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23727477' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' class='icon icon-tabler icons-tabler-outline icon-tabler-dialpad'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M4 3h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z' /%3E%3Cpath d='M18 3h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z' /%3E%3Cpath d='M11 3h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z' /%3E%3Cpath d='M4 10h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z' /%3E%3Cpath d='M18 10h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z' /%3E%3Cpath d='M11 10h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z' /%3E%3Cpath d='M11 17h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z' /%3E%3C/svg%3E");
}

.input-wrap:not(:placeholder-shown) ~ .input-wrap {
    margin-top: -30px;
    z-index: -1;
}

.input-wrap:has(:not(:placeholder-shown)) ~ .input-wrap {
    margin-top: 0;
    z-index: 1;
}
  
.input-wrap input {
    padding-left: 44px;
    position: relative;
    border-radius: var(--border-radiusS);
}

/* Error states for auth inputs */
.auth-input.error {
    border: 1px solid var(--red);
    box-shadow: 0 0 0 3px rgba(251, 89, 89, 0.1);
}

.auth-error-message {
    color: var(--red);
    font-size: var(--font-size-xs);
    text-align: left;
    display: none;
}

.auth-error-message.show {
    display: block;
}

.form-group .auth-error-message {
    margin-top: -3px;
}

/* Hide password input by default */
.password-input {
    max-height: 0;
    height: 0;
    opacity: 0;
    margin: -10px 0 0 0;
    padding: 0 16px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

/* Show password input when email has text */
.input-wrap:has(:not(:placeholder-shown)) ~ .input-wrap .password-input {
    max-height: 200px;
    height: 50px;
    opacity: 1;
    margin-top: 0;
    background-size: 20px;
}

/* Forgot password steps */
.forgot-step {
    display: block;
}

.forgot-step .auth-error-message, .forgot-step .input-wrap:last-of-type  {
    margin-top: 8px;
}

.forgot-step .input-wrap:has(input[type="password"])::before {
    background-size: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23727477' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z' /%3E%3Cpath d='M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0' /%3E%3Cpath d='M8 11v-4a4 4 0 1 1 8 0v4' /%3E%3C/svg%3E");
}

.input-wrap:has(input:disabled)::before {
    opacity: 0.5;
}

.auth-btn-primary {
    background: var(--teal);
    color: var(--white);
    border: 1px solid var(--teal);
    padding: 12px 20px;
    border-radius: var(--border-radiusS);
    font-size: var(--font-size-base);
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

.auth-btn-apple, .auth-btn-google {
    height: 46px;
}

.auth-btn-primary:hover {
    color: var(--white);
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

.auth-footer-text {
    text-align: center;
    color: var(--gray);
    font-size: var(--font-size-xs);
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--light-gray);
    color: var(--pure-white);
    position: relative;
    overflow: clip;
}

.auth-info {
    max-width: 500px;
    z-index: 1;
}

.auth-info h2 {
    margin-top: 0;
}

.auth-info svg {
    height: 20px;
    width: 20px;
}

.auth-info p {
    font-size: var(--font-size-base);
    margin-bottom: 20px;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.auth-features ul {
    padding-left: 10px;
}

.auth-features ul:first-child{
    padding-left: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    white-space: nowrap;
    font-size: var(--font-size-tiny);
}

/* WELCOME NOTIFICATION STYLES */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 500px;
}

.notification.active, .notification.permanent {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.notification-content {
    background: var(--dark-gray);
    border-radius: var(--border-radiusL);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.notification-message {
    font-size: var(--font-size-xs);
    color: var(--white);
    line-height: 1.3;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
    margin: -5px;
}

.notification-close .icon {
    stroke: var(--white);
}

.notification-close:hover .icon {
    stroke: var(--gray);
}

/* SETTINGS STYLES */
.account-settings {
    max-width: 800px;
    margin: 0 auto;
}

.account-header {
    text-align: center;
    margin-bottom: 20px;
}

.account-header h1 {
    font-size: var(--font-size-3xl);
    margin: 0 0 8px;
}

.account-header .section-description {
    font-size: var(--font-size-lg);
    color: var(--medium-gray);
    margin: 0;
}

/* Membership Status */
.membership-status {
    margin-bottom: 32px;
}

.membership-card {
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusL);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.membership-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 12px rgba(1, 135, 119, 0.1);
}

.membership-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.membership-details h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--dark-gray);
    margin: 0 0 4px 0;
}

.membership-details p {
    font-size: var(--font-size-sm);
    color: var(--medium-gray);
    margin: 0;
}

.membership-actions {
    display: flex;
    gap: 12px;
}

.membership-actions a {
    transition: none;
}

.membership-actions:hover a {
    transition: all 0.3s ease;
}

.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.settings-section h3 {
    margin-top: 0;
}

.settings-section {
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusL);
    padding: 32px;
    transition: border-color 0.2s ease;
}

.settings-section:hover {
    border-color: var(--teal);
}

.settings-section.danger-zone {
    border-color: var(--red);
    background: rgba(251, 89, 89, 0.02);
}

.settings-section.danger-zone:hover {
    border-color: var(--red);
}

/* TOGGLE SWITCH STYLES */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.toggle-info {
    flex: 1;
}

.toggle-info label {
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 4px;
    display: block;
}

.toggle-info p {
    color: var(--medium-gray);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.toggle-switch {
    flex-shrink: 0;
}

.toggle-input {
    display: none;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    cursor: pointer;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-gray);
    border-radius: 24px;
    transition: background-color 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-input:checked + .toggle-label .toggle-slider {
    background-color: var(--teal);
}

.toggle-input:checked + .toggle-label .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-input:focus + .toggle-label .toggle-slider {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* TEAM MEMBERS STYLES */
.team-auth-page {
    min-height: 100dvh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-auth-section .auth-container {
    min-height: auto;
}

.team-auth-error a {
    gap: 6px;
}

.team-auth-error svg {
    height: 20px;
    width: 20px;
    stroke: var(--white);
}

.team-auth-section .auth-left {
    padding: 0;
}

.teams-features:has(.lazy-loading:not(.loaded)) .features-content {
    min-height: 540px;
}

.team-members-container {
    margin-top: 32px;
}

.team-members-container h5 {
    margin-bottom: 16px;
    text-align: left;
}

.team-members-subtitle {
    font-size: var(--font-size-sm);
    color: var(--gray);
    margin: 16px 0 -12px;
}

.team-members-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-member-row {
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusL);
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
}

.team-member-row:hover {
    border-color: var(--teal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-member-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.team-member-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d5e1ff; /* Default fallback color */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.team-member-icon svg {
    width: 35px;
    height: 35px;
    margin-bottom: -6px;
}

.team-member-details {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.team-member-name {
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.team-member-email {
    font-size: var(--font-size-base);
    color: var(--dark-gray);
}

/* Simple Team Link Section */
.teams-section {
    text-align: left;
    margin-top: 20px;
}

.teams-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.teams-header h5 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.teams-header h5 svg {
    stroke-width: 2;
}

.teams-header button {
    padding: 6px 12px 6px 8px;
    border-radius: var(--border-radiusS);
    font-size: var(--font-size-tiny);
    gap: 4px;
}

.teams-header button svg {
    stroke: var(--gray);
    height: 16px;
    width: 16px;
}

.team-link-features {
    display: flex;
    gap: 8px;
}

.team-link-content {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

#teamLinkInput {
    flex: 1;
    padding: 8px 12px;
    font-size: var(--font-size-tiny);
    border-radius: var(--border-radiusS);
    background: var(--light-gray);
    font-family: monospace;
}

.lock-message {
    margin-top: 12px;
    color: var(--medium-gray);
    font-style: italic;
}

.team-link-features button:hover {
    color: var(--dark-gray);
}

.team-link-features button:hover svg {
    stroke: var(--dark-gray);
}

.team-link-features button.team-link-active, .team-link-features button.team-link-active:hover {
    color: var(--teal);
    border: 1px solid var(--teal);
    background-color: var(--white);
}

.team-link-features button.team-link-active svg {
    stroke: var(--teal);
    transition: all 0.2s ease;
}

.section-header h3 {
    margin-bottom: 4px;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.settings-section .section-header {
    margin-bottom: 24px;
}

.section-header p {
    color: var(--medium-gray);
    font-size: var(--font-size-sm);
    margin: 0;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.strict-page .btn-primary {
    display: flex;
    align-items: center;
    border-radius: var(--border-radiusS);
    gap: 8px;
}

.strict-page .btn-primary svg {
    stroke: var(--white);
}

.strict-page .btn-primary:hover {
    border: 1px solid var(--teal);
    background: var(--teal-dark);
    color: var(--white);
}

/* Profile Icon Selector */
.profile-icon-section {
    margin-bottom: 20px;
}

.profile-icon-selector {
    display: flex;
    flex-direction: column;
}

.current-icon {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--highlight-gray);
    position: relative;
    z-index: 1;
}

.btn-edit-icon, .btn-delete-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusS);
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit-icon svg, .btn-delete-icon svg {
    stroke: var(--dark-gray);
    transition: all 0.2s ease;
}

.btn-edit-icon:hover svg {
    stroke: var(--teal);
}

.btn-edit-icon:hover {
    background: var(--teal-light);
    border-color: var(--teal);
    color: var(--teal);
}

.btn-delete-icon:hover {
    background: var(--red-light);
    border-color: var(--red);
    color: var(--red);
}

.btn-delete-icon:hover svg {
    stroke: var(--red);
}

.btn-delete-icon .loading-spinner-mini {
    border-top: 1.5px solid var(--teal);
}

.icon-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 8px;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--highlight-gray);
}

.dropdown-header h4 {
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
}

.dropdown-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--highlight-gray);
    background: var(--light-gray);
}

.dropdown-actions .dropdown-actions-btns {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
}

.icon-preview {
    width: 60px;
    height: 60px;
    background: #D5E1FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    overflow: clip;
    border: 1px solid var(--highlight-gray);
}

.icon-preview svg {
    width: 50px;
    height: 50px;
    margin-bottom: -10px;
}

.icon-info {
    display: flex;
    flex-direction: column;
}

.icon-name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
}

.icon-text {
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.icon-color {
    font-size: var(--font-size-sm);
    color: var(--medium-gray);
    font-family: 'JetBrains Mono', monospace;
}

.icon-options {
    display: flex;
    flex-direction: column;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 12px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.icon-grid svg {
    padding: 12px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--light-gray);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-grid svg:hover {
    border-color: var(--teal);
    background: var(--teal-light);
}

.icon-grid svg.selected {
    border-color: var(--teal);
    background: var(--teal-light);
    box-shadow: 0 0 0 2px rgba(1, 135, 119, 0.2);
}

/* Color Swatches*/
.color-swatches {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0 20px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 5px solid;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    box-shadow: 0 0 0 2px var(--teal);
    transform: scale(1.05);
}

.color-swatch h4 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-option:hover,
.color-option.selected {
    border-color: var(--dark-gray);
    transform: scale(1.1);
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    gap: 8px;
    display: flex;
    align-items: center;
}

.form-group label:hover + .input-group input:not(:focus) {
    border: 1px solid var(--highlight-gray);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    padding-right: 48px;
}

.change-password-new {
    margin-top: -15px;
}

.btn-edit,
.btn-toggle-password {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--border-radiusS);
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit:hover,
.btn-toggle-password:hover {
    background: var(--highlight-gray);
}

.btn-edit svg,
.btn-toggle-password svg {
    width: 16px;
    height: 16px;
    stroke: var(--medium-gray);
}

.field-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* Profile Buttons */
.edit-buttons-container {
    position: absolute;
    gap: 8px;
    right: 10px;
}

.edit-buttons-container button {
    padding: 6px;
}

.edit-buttons-container button svg {
    stroke: var(--dark-gray);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-secondary {
    background: var(--white);
    color: var(--medium-gray);
    border: 1px solid var(--highlight-gray);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary svg {
    stroke: var(--medium-gray);
}

.btn-secondary:hover {
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    border: 1px solid var(--teal);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary svg {
    stroke: var(--white);
}

.btn-primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

.btn-resend-activation {
    background: none;
    border: none;
    border-radius: 0;
    font-weight: var(--font-weight-normal);
    border-bottom: 0.5px solid var(--gray);
    color: var(--gray);
    cursor: pointer;
    font-size: 14px;
    padding: 3px 0;
}

.btn-resend-activation:hover {
    color: var(--teal);
    border-bottom: 0.5px solid var(--teal);
}

.btn-resend-activation:disabled {
    border-bottom: none;
    color: var(--gray);
}

/* Danger Zone */
.danger-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(251, 89, 89, 0.05);
    border: 1px solid rgba(251, 89, 89, 0.2);
    border-radius: var(--border-radiusL);
}

.btn-danger {
    background: var(--red);
    color: var(--white);
    border: 1px solid var(--red);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radiusS);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-danger:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* Library */
.features-text:not(:has(.nomaterials-message[style*="display: none"])) h1 {
    text-align: center;
}

.library .actions-header {
    margin-top: -40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.library h1 {
    font-size: var(--font-size-3xl);
    white-space: nowrap;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    text-align: left;
}

.library .actions-header h1 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    width: 0;
}

.library h1 svg {
    height: 30px;
    width: 30px;
    stroke-width: 2px;
}

.library .features-section {
    max-width: 1200px;
    padding: 40px;
}

.library .lazy-loading:not(.loaded) + .features-text {
    min-height: 280px;
}

.nomaterials-message {
    max-width: 200px;
    margin: 0 auto;
}

.nomaterials-message p {
    margin: 5px 0 15px;
}

.nomaterials-message a {
    width: fit-content;
    margin: 0 auto;
    gap: 4px;
    padding-right: 12px;
}

.materials-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.material-item {
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusL);
    padding: 20px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    cursor: pointer;
}

.material-item span {
    background-color: var(--light-gray);
    margin: 0 -20px -20px -20px;
    width: calc(100% + 40px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 10px;
    border-top: 1px solid var(--highlight-gray);
}

.material-item:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.material-date {
    font-size: var(--font-size-xs);
    color: var(--gray);
    text-align: center;
}

.material-item-shimmer {
    cursor: default;
    pointer-events: none;
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.material-item-shimmer:hover {
    border-color: var(--highlight-gray);
    box-shadow: none;
}

.material-item-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--light-gray) 25%, rgba(255, 255, 255, 0.5) 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: shimmer-slide 1.5s infinite;
}

@keyframes shimmer-slide {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.material-type {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--dark-gray);
    text-align: center;
}

.material-type svg {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
}

.material-pin-button, .material-delete-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    pointer-events: auto;
    position: relative;
}

.material-delete-button {
    padding-left: 0;
    margin-left: -2px;
}

.material-pin-button svg, .material-delete-button svg {
    stroke: var(--medium-gray);
}

.material-delete-button:hover svg {
    stroke: var(--red);
}

.material-pin-button:hover svg {
    stroke: #F0D10A;
}

.material-pin-button[data-pinned="true"] svg {
    fill: #F0D10A;
    stroke: #F0D10A;
}

.material-button-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.material-content {
    font-size: var(--font-size-sm);
    color: var(--medium-gray);
    line-height: 1.6;
    text-align: center;
    height: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.library .text-output {
    width: calc(100% + 40px);
    margin: 20px 0 0 -20px;
    padding: 0 20px 40px;
}

.affiliate-page .btn-primary:hover {
    color: var(--white);
}

.affiliate-page .features-section:first-of-type {
    position: relative;
}

.affiliate-page .features-section:first-of-type::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -50px;
    width: 350px;
    height: 350px;
    opacity: 0.15;
    border-radius: 50%;
    background: linear-gradient(125deg, var(--teal) 0%, var(--light-gray) 75%, var(--light-gray) 100%);
}

.affiliate-page .content-wrapper {
    overflow-x: hidden;
}

.affiliate-page .features-section:first-of-type::after {
    content: '';
    position: absolute;
    bottom: -260px;
    right: 25px;
    width: 250px;
    height: 250px;
    opacity: 0.15;
    border-radius: 50px;
    z-index: -1;
    transform: rotate(343deg);
    background: linear-gradient(272deg, var(--teal) 0%, var(--light-gray) 75%, var(--light-gray) 100%);
}

.affiliate-page .features-section:first-of-type br {
    display: none;
}

.affiliate-page .features-card svg {
    stroke: var(--teal);
    stroke-width: 1.5px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1050px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .dropdown-inside {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .features-section.right-side .features-content {
        flex-direction: column;
        text-align: center;
    }

    .features-bundle {
        margin: 30px auto 20px;
        height: 250px;
    }

    .features-section.gray-bg  {
        padding: 30px 20px;
    }

    .strict-page .features-section {
        margin: 0 auto;
    }

    .strict-page .features-section {
        padding: 30px;
    }

    .features-section .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-section .features-grid, .faq-container, .press-container {
        gap: 15px;
    }

    .auth-right {
        display: none;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .profile-icon {
        width: 38px;
        height: 38px;
    }

    .header-nav {
        width: 0;
    }

    .header-logo {
        margin-right: auto;
    }

    .header-content {
        height: 56px;
    }
    
    .hamburger-menu {
        display: flex;
        margin-right: 8px;
    }
    
    .hamburger-menu .icon {
        width: 20px;
        height: 20px;
    }
    
    .header-link {
        font-size: var(--font-size-base);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 16px 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }

    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .header-actions {
        gap: 8px;
    }

    /* Hide normal header navigation on mobile */
    .header-desktop, span.header-link.header-desktop {
        display: none;
    }

    .header-menu-items {
        position: relative;
        left: auto;
        transform: none;
    }

    /* Style dropdown-menu as mobile menu - clean implementation */
    .dropdown-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100dvh;
        height: 100vh;
        background: var(--white);
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--highlight-gray);
        z-index: 3;
        transition: left 0.3s ease;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 0;
        min-width: auto;
        list-style: none;
        display: block;
        grid-template-columns: none;
        max-width: none;
    }

    .dropdown-inside {
        grid-template-columns: 1fr;
        border: none;
        border-radius: 0;
        width: 100%;
        max-height: 100dvh;
        max-height: 100vh;
        padding: 40px 0 40px;
    }

    .dropdown-menu.active {
        padding-top: 50px;
        max-height: 100dvh;
        max-height: 100vh;
        padding: 0;
        left: 0;
    }

    .dropdown-menu.active .dropdown-menu-close {
        display: block;
        z-index: 1;
    }

    .dropdown-menu li {
        margin: 0;
        width: 100%;
    }
    
    /* Mobile Category Headers */
    .category-header {
        margin: 20px 8px 0;
    }

    /* Mobile Subcategory Menu */
    .dropdown-menu a {
        margin: 0 8px;
        font-size: var(--font-size-sm);
    }

    .dropdown-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        background-color: var(--white);
    }

    .hero-section h1, .features-text h1 {
        font-size: var(--font-size-2xl);
    }

    .features-section h2 {
        font-size: var(--font-size-xl);
    }

    .features-section h3 {
        font-size: var(--font-size-lg);
    }

    .hero-description {
        max-width: 400px;
    }

    .hero-description, .features-section .section-description {
        font-size: var(--font-size-base);
    }

    .tab-selector {
        gap: 6px;
        margin: 20px auto 15px;
    }
    
    .tab-button {
        padding: 10px 16px;
        font-size: var(--font-size-xs);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card {
        padding: 16px;
    }
    
    .product-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .product-card h3 {
        font-size: var(--font-size-base);
    }
    
    .product-card p {
        font-size: var(--font-size-xs);
    }

    .features-section {
        margin: 80px auto;
    }

    .features-bundle svg {
        padding: 25px;
    }

    .features-bundle svg:nth-child(7) {
        padding: 20px;
    }
    
    .features-section.comparison .features-grid {
        grid-template-columns: 1fr;
    }

    .features-section.comparison .features-card {
        padding: 24px;
    }

    .features-section.comparison .features-card:last-child {
        top: 10px;
    }

    .compare-list {
        margin-bottom: 20px;
    }

    .faq-container, .press-container {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        padding: 30px 20px;
    }
    
    .contact-content h3 {
        font-size: var(--font-size-xl);
    }
    
    .contact-content p {
        font-size: var(--font-size-sm);
        margin-bottom: 15px;
    }

    .features-section .benefit-number {
        font-size: var(--font-size-xl);
    }

    .features-section--benefits h4 {
        font-size: var(--font-size-base);
        margin-top: 0;
    }

    .features-section.comparison .price {
        font-size: var(--font-size-xl);
    }

    .features-section .features-grid {
        margin-top: 20px;
    }

    .features-section .features-grid.three-col {
        grid-template-columns: 1fr;
    }

    .features-section .features-grid.one-col {
        grid-template-columns: 1fr;
    }
    
    .auth-btn svg {
        height: 20px;
        width: 20px;
    }
    
    .notification {
        bottom: 20px;
        width: calc(100% - 40px);
    }
    
    .notification-content {
        margin: 0 auto;
        max-width: fit-content;
        padding: 14px 16px;
        gap: 10px;
    }

    .notification-message {
        max-width: fit-content;
    }

    .current-icon {
        padding: 10px;
    }

    .btn-edit-icon {
        top: 10px;
        right: 10px;
    }

    .membership-actions .btn-secondary span {
        display: none;
    }

    .icon-preview {
        height: 45px;
        width: 45px;
    }

    .icon-preview svg {
        height: 35px;
        width: 35px;
    }

    .icon-grid {
        gap: 6px;
        padding: 10px;
        max-height: 250px;
    }

    .dropdown-actions {
        flex-direction: column;
        align-items: center;
        padding-top: 15px;
    }

    .settings-section .section-header {
        margin-bottom: 15px;
    }

    .section-header {
        margin-bottom: 0;
    }

    .membership-status {
        margin-bottom: 10px;
    }

    .strict-page .features-section {
        padding: 24px;
    }

    .membership-card, .settings-section {
        padding: 20px;
    }

    .icon-dropdown {
        position: fixed;
        left: 0;
        right: 0;
        top: 100px;
        bottom: 0;
        margin-top: auto;
    }

    .icon-grid {
        gap: 6px;
        padding: 10px;
        max-height: calc(100% - 110px);
        height: 100%;
    }

    .header-logo .icon-logo {
        height: 40px;
        width: 40px;
    }

    .logo-text {
        font-size: var(--font-size-lg);
    }

    .library .actions-header h1 {
        font-size: var(--font-size-base);
    }

    .affiliate-page .features-section:first-of-type::after {
        right: -30px;
    }

    .profile-dropdown:hover:not(.active) .profile-dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .features-section .features-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}