:root {
    --content-width: min(1060px, 100%);
    --main-width: min(800px, 100%);
    --lifehacks-width: min(900px, 100%);
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --accent-color: #4361ee;
    --text-color: #333;
    --light-text: #666;
    --bg-light: #f8f8f8;
    --border-radius: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
    font-size: clamp(15px, 1.8vw, 18px);
    overflow-x: hidden;
    width: 100%;
    min-width: 250px;
}

@media (min-width: 601px) {
    body {
        font-size: clamp(16px, 2vw, 20px);
    }
}

.flex-container {
    display: flex;
    align-items: center;
}

h1 {
    font-size: clamp(1.7rem, 3.8vw, 2.3rem);
    line-height: 1.3;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

h2 {
    font-size: clamp(1.3rem, 2.8vw, 1.6rem);
    line-height: 1.4;
    margin-top: 2.3rem;
    margin-bottom: 0.9rem;
    letter-spacing: -0.01em;
    color: #2c3e50;
}

.top-bar {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: linear-gradient(to right, #f8fdfa, #f0f9ff);
    border-bottom: 1px solid rgba(42, 125, 107, 0.1);
}

.top-bar-container {
    position: relative;
    width: 100%;
    max-width: var(--content-width);
    padding: 5px 20px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-container {
    position: relative;
    margin-right: 10px;
}

.search-box {
    padding: 6px 10px;
    padding-right: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    width: 280px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
}

.search-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

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

.social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.2s ease;
    border-radius: 50%;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 1024px) {
    .search-container,
    .social-icons {
        display: none;
    }
    
    .top-bar-right {
        gap: 5px;
    }
}

.logo {
    height: 30px;
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #444;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.logo img {
    height: 100%;
    width: auto;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: inherit;
    height: 100%;
}

.logo a:hover {
    text-decoration: none;
    color: inherit;
}

.advertorial-label {
    position: relative;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    font-size: 0.65em;
    font-weight: 500;
    color: #666;
    text-align: center;
    letter-spacing: 0.02em;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 4px 0;
    background: #333;
    transition: transform 0.3s ease;
}

.main-menu {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background-color: #f0f4fd;
    background-image: linear-gradient(to right, #f0f4fd 0%, #e9f1fc 50%, #e8f0ff 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(67, 97, 238, 0.08);
}

.main-menu ul {
    list-style: none;
    height: 46px;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
}

.main-menu li {
    margin: 0;
    padding: 0;
}

.main-menu a {
    display: block;
    padding: 15px 20px;
    color: #2d3748;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.main-menu a:hover {
    color: #4361ee;
    background-color: rgba(67, 97, 238, 0.08);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .main-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        padding-top: 60px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
        will-change: transform;
        pointer-events: auto;
    }

    .main-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    .main-menu ul {
        flex-direction: column;
        height: auto;
        padding: 0;
    }

    .main-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .main-menu a {
        padding: 15px 25px;
        width: 100%;
        box-sizing: border-box;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        z-index: 1000;
        pointer-events: none;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    body.menu-open {
        overflow: hidden;
    }
}

.content-wrapper {
    width: 100%;
    width: var(--content-width);
    max-width: 1060px;
    max-width: var(--content-width);
}

.content-wrapper {
    position: relative;
    width: var(--content-width);
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

main {
    width: 100%;
    background-color: #fff;
    padding: 10px;
    border-radius: 6px;
    border-radius: var(--border-radius);
    contain: paint layout;
}

main p {
    margin-bottom: 0.8em;
    color: #2c3e50;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.55;
}

.author-info {
    margin: 10px 0 0;
    padding: 5px 0;
    font-size: 0.9rem;
    align-items: center;
    letter-spacing: -0.01em;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    aspect-ratio: 1 / 1;
}

.author-details {
    gap: 8px;
    color: #555;
}

.author-details b {
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.author-details i {
    color: #666;
    font-style: normal;
    font-size: 0.9em;
}

.text-divider {
    margin: 0 6px;
    font-size: 0.85em;
    color: #ddd;
}

.hero-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 6px;
    contain: layout;
}

.responsive-image, 
.responsive-video {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 6px;
    contain: layout;
}

.widget {
    width: 100%;
    padding: 15px;
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.widget h3 {
    margin-bottom: 10px;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    letter-spacing: -0.01em;
    font-weight: 600;
    color: #444;
}

.widget img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 6px;
}

.widget p {
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.widget button {
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.widget button:hover {
    background-color: #0056b3;
}

.promotion-update {
    background: linear-gradient(145deg, #fffdf4 0%, #fff9e5 100%);
    padding: 25px;
    margin: 25px 0;
    border: 1px dashed #e2c000;
    border-radius: 12px;
    font-size: 1em;
    color: #333;
    box-shadow: 0 2px 8px -2px rgba(255, 215, 0, 0.15);
}

.promotion-update p {
    margin: 0;
    line-height: 1.5;
}

.promotion-update b {
    color: #e63946;
    font-weight: 700;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .promotion-update {
        padding: 20px;
        margin: 25px 0;
        font-size: 0.9em;
    }
}

.red-button {
    width: 100%;
    padding: 12px 10px;
    background-image: linear-gradient(150deg, #DC2626 0%, #EF4444 50%, #F87171 100%);
    color: #fff;
    font-size: 1em;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px -2px rgba(220, 38, 38, 0.5),
                0 1px 3px -1px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    will-change: transform;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    margin-bottom: 1rem;
}

.red-button:hover {
    background-image: linear-gradient(150deg, #B91C1C 0%, #DC2626 50%, #EF4444 100%);
    box-shadow: 0 8px 20px -3px rgba(220, 38, 38, 0.7),
                0 4px 8px -2px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px) scale(1.02);
    color: #fff;
    text-decoration: none;
    animation: buttonPulse 1s infinite alternate;
}

.red-button:active {
    background-image: linear-gradient(150deg, #991B1B 0%, #B91C1C 50%, #DC2626 100%);
    box-shadow: 0 2px 8px -2px rgba(220, 38, 38, 0.4),
                0 1px 2px -1px rgba(0, 0, 0, 0.2);
    transform: translateY(1px) scale(0.99);
    animation: none;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 8px 20px -3px rgba(220, 38, 38, 0.7),
                   0 4px 8px -2px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 10px 25px -2px rgba(220, 38, 38, 0.8),
                   0 6px 10px -1px rgba(0, 0, 0, 0.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .red-button:hover {
        animation: none;
    }
}

a.red-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 1rem;
    text-decoration: none;
    font-family: inherit;
    line-height: normal;
}

a.red-button:hover, 
a.red-button:active, 
a.red-button:focus {
    color: #fff;
    text-decoration: none;
}

.author-bio {
    margin-top: 40px;
    padding: 25px;
    border-radius: 8px;
    background: #f9f9f9;
    content-visibility: auto;
    contain-intrinsic-size: 1px 120px;
}

.author-bio-text {
    flex: 1;
    font-size: clamp(0.85em, 1.8vw, 0.9em);
    color: #666;
    line-height: 1.6;
}

.author-bio-text strong {
    font-size: 1.1em;
    color: #444;
}

footer {
    margin: 60px auto 0;
    width: 1060px;
    max-width: 100%;
    padding: 40px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    content-visibility: auto;
    contain-intrinsic-size: 1px 120px;
}

.footer-content {
    width: 100%;
    margin: 10px 0 0;
    padding: 10px 20px;
    color: #666;
    text-align: left;
}

.health-claim {
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    line-height: 1.7;
    margin: 15px 0;
    max-width: 100%;
    text-align: left;
    color: #555;
}

.health-claim b {
    color: #333;
    font-weight: 600;
}

.health-claim:first-of-type {
    margin-top: 0;
}

.health-claim br {
    display: block;
    content: "";
    margin-top: 15px;
}

.footer-links {
    padding: 0 0 5px;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #333;
}

.copyright {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    padding: 0 0 10px;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    margin-top: 5px;
}

.category-link {
    display: inline-block;
    padding: 3px 12px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    user-select: none;
    touch-action: manipulation;
}

.feature-label {
    font-size: 0.75rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, rgba(255, 62, 62, 0.85), rgba(255, 0, 21, 0.75));
    padding: 1px 4px;
    border-radius: 6px;
    white-space: nowrap;
    touch-action: manipulation;
    box-shadow: 0 1px 4px rgba(255, 0, 21, 0.2);
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.feature-label::before {
    content: "🔥";
    margin-right: 3px;
    font-size: 0.75rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 21, 0.5);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 0, 21, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 21, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-label {
        animation: none;
    }
}

.offer-image-container {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 6px;
    background-color: transparent;
    content-visibility: auto;
    contain-intrinsic-size: 1px auto;
    transition: transform 0.2s ease;
}

.offer-image-container img,
.offer-image-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    object-fit: contain;
}

.page-lifehacks .content-wrapper {
    max-width: var(--lifehacks-width);
    width: var(--lifehacks-width);
    margin: 0 auto;
    box-sizing: border-box;
}

.page-lifehacks main {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.page-lifehacks h1 {
    text-align: center;
    font-size: clamp(2rem, 4.7vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    color: #111;
}

.page-lifehacks h2 {
    position: relative;
}

.page-lifehacks h2 kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    padding: 0 8px;
    margin-right: 12px;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25), 
                0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.95em;
    line-height: 1;
    vertical-align: middle;
    position: relative;
    top: -2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lifehacks h2:hover kbd {
    transform: scale(1.1) translateY(-1px);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #004494 100%);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4), 
                0 2px 6px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .content-wrapper {
        max-width: 100%;
        padding: 0 15px;
        margin: 0 auto;
    }
    
    main {
        width: 100%;
        padding: 15px;
        margin: 0 auto;
        max-width: 600px;
    }
    
    h1 { 
        font-size: clamp(1.5rem, 3.4vw, 1.7rem);
    }
    
    h2 { 
        font-size: clamp(1.4rem, 2.8vw, 1.5rem);
    }
    
    main p {
        font-size: clamp(1.2rem, 2.9vw, 1.25rem);
        line-height: 1.6;
        margin-bottom: 0.9em;
    }

    .footer-links a {
        padding: 8px;
        margin: 0 5px;
    }
    
    .red-button {
        padding: 18px 20px;
    }

    .promotion-update {
        font-size: 0.95em;
    }
    
    .author-bio-text {
        font-size: clamp(0.85em, 1.8vw, 0.9em);
    }
    
    .health-claim {
        font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        max-width: var(--main-width);
        padding: 0 15px;
    }
    
    main {
        width: 100%;
        padding: 20px 15px;
        margin: 0 auto;
    }
}

@media print {
    .menu-toggle,
    .main-menu,
    .red-button,
    .sharethis-inline-share-buttons {
        display: none !important;
    }
    
    body, main {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .content-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2 {
        page-break-after: avoid;
    }
    
    img, .offer-image-container {
        page-break-inside: avoid;
        max-width: 100% !important;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
}

@supports not (display: grid) {
    .content-wrapper {
        display: block;
    }
    
    main {
        width: 100%;
    }
}

@supports (-webkit-touch-callout: none) {
    .content-wrapper {
        gap: 0;
    }
    
    main {
        margin-right: 20px;
    }

    video {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .red-button {
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
}

@-moz-document url-prefix() {
    .red-button {
        background-color: #DC2626;
    }
    
    .stars-container {
        line-height: normal;
    }
}

@supports not (gap: 20px) {
    .content-wrapper > * + * {
        margin-left: 20px;
    }
    
    .article-meta > * + * {
        margin-left: 12px;
    }
}

center .offer-image-container {
    display: block;
    margin: 0;
    padding: 0;
}

center .offer-image-container video {
    margin-bottom: 0 !important;
}

video[style*="margin-bottom"] {
    margin-bottom: 0 !important;
}

.page-loaded {
    overflow-anchor: auto;
}

img {
    max-width: 100%;
    height: auto;
}

.hero-image, 
.responsive-image, 
.responsive-video {
    contain: layout;
}

@font-face {
    font-family: 'SystemFont';
    src: local(-apple-system), local(BlinkMacSystemFont);
    font-display: swap;
}

.fonts-loaded {
    text-rendering: optimizeLegibility;
}

.footer-container,
.author-bio,
.promotion-update {
    content-visibility: auto;
    contain-intrinsic-size: 1px 200px;
}

.main-menu ul {
    overscroll-behavior-x: contain;
}

.red-button,
.menu-toggle,
.page-lifehacks h2 kbd {
    transform: translateZ(0);
    backface-visibility: hidden;
}

@supports (content-visibility: auto) {
    .offer-image-container:not(:first-child):not(:nth-child(2)):not(:nth-child(3)) {
        content-visibility: auto;
        contain-intrinsic-size: 1px auto;
    }
}

video {
    object-fit: contain;
    max-width: 100%;
    height: auto !important;
}

.red-button:focus,
.widget button:focus,
.main-menu a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.offer-section {
    margin: 2.5rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.offer-section:last-child {
    border-bottom: none;
}

hr {
    margin: 1rem 0;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2.5rem 0;
    color: #777;
    font-size: 0.9em;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.separator::before {
    margin-right: 1em;
}

.separator::after {
    margin-left: 1em;
}

.offer-image-container:last-of-type {
    margin-bottom: 1.5rem;
}

.disclosure-link {
    margin-left: 0;
    font-size: 0.9em;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    font-style: normal;
}

.disclosure-link:hover, 
.disclosure-link:focus {
    color: #666;
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: var(--main-width);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: modalFade 0.3s ease;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #333;
    padding-right: 30px;
}

.modal-content p {
    margin-bottom: 15px;
    font-size: 0.8em;
    line-height: 1.5;
    color: #555;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    line-height: 0.8;
}

.close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }
    
    .modal-content h3 {
        font-size: 1.1em;
    }
    
    .modal-content p {
        font-size: 0.9em;
        line-height: 1.6;
    }
    
    .disclosure-link {
        font-size: 0.9em;
    }
}

.simple-rating {
    position: absolute;
    top: 5px;
    left: 10px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    padding: 4px 6px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.25));
    border-radius: 5px;
    backdrop-filter: blur(6px);
    line-height: 1.2;
}

.simple-rating .stars {
    color: #FFD700;
}

@media (max-width: 768px) {
    .simple-rating {
        font-size: 14px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .simple-rating {
        font-size: 12px;
        padding: 5px 8px;
    }
}

a, a:visited {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

.main-menu a:hover,
.social-icon:hover,
.red-button:hover,
.menu-toggle:hover {
    text-decoration: none;
}

.widget p a, 
.widget p a:visited {
    color: inherit;
}

@supports not (display: flex) {
    .flex-container {
        display: block;
    }
    
    .flex-container > * {
        display: inline-block;
        vertical-align: middle;
        margin-right: 8px;
    }
    
    .author-details.flex-container > * {
        display: inline-block;
        vertical-align: middle;
    }
}

.author-date {
    color: #666;
    font-style: normal;
    font-size: 0.9em;
}

/* Scroll buttons */
.scroll-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.scroll-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.scroll-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-icon {
    font-size: 12px;
    line-height: 1;
    margin-bottom: 2px;
}

.button-text {
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .scroll-buttons {
        right: 15px;
        bottom: 15px; /* Updated to match the changed positioning */
    }
    
    .scroll-button {
        width: 50px;
        height: 50px;
    }
    
    .button-text {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .scroll-buttons {
        right: 10px;
        bottom: 10px; /* Updated to match the changed positioning */
    }
    
    .scroll-button {
        width: 40px;
        height: 40px;
    }
    
    .button-icon {
        font-size: 16px;
    }
    
    .button-text {
        font-size: 8px;
    }
}

/* Category Filter Styles */
.category-filter-container {
    margin: 5px 0;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-filter-container h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #333;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-button {
    padding: 5px 8px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-button:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.category-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

/* Hide offers that don't match the selected category */
.offer-section.filtered {
    display: none;
}

@media (max-width: 768px) {
    .page-lifehacks h2 kbd {
        min-width: 32px;
        height: 32px;
        font-size: 0.85em;
        margin-right: 8px;
        padding: 0 6px;
    }
    
    .page-lifehacks h2:hover kbd {
        transform: scale(1.05) translateY(-1px);
    }
}