*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #333333;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}


@keyframes blog-pulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }
}

.blog-anim-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
    animation: blog-pulse 2s infinite ease-in-out;
    padding: 0 5px;
}

.blog-anim-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    animation: none;
    transform: scale(1.1);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 10%, #2a3a50 0%, #121212 60%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
}

.bg-decoration {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #3b82f6, transparent 70%);
    top: -150px;
    right: -100px;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    bottom: 10%;
    left: -120px;
    opacity: 0.09;
}

.bg-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.06;
}

.container {
    width: 100%;
    max-width: 1300px;
    padding: 40px 20px;
}

header {
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding: 0;
}

.header-branding {
    flex: 1;
}

header h1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    font-size: clamp(3.5rem, 10vw, 6rem);
    line-height: 0.95;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -2px;
}

.title-3d span {
    position: relative;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
}

.text-white {
    background: linear-gradient(180deg, #ffffff 0%, #dddddd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.4));
}

.header-cta {
    flex: 0 1 420px;
    padding: 22px 16px 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: visible;
}

.header-cta-glow {
    display: none;
}

.header-cta::before {
    display: none;
}

.header-cta-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header-cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.25);
    color: #60a5fa;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

.header-cta-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 6px #60a5fa;
}

.cta-mockup {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 8px;
}

.cta-mockup-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.28);
}

.cta-cards {
    position: relative;
    width: 100%;
    height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 0;
    padding-bottom: 20px;
}

.cta-card {
    position: absolute;
    width: 88%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(12px);
    transition: transform 0.4s ease;
}

.cta-card-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.cta-card-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    flex: 1;
}

.cta-card-time {
    font-size: 1rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
    color: #fff;
    text-shadow: 0 0 18px rgba(59,130,246,0.6);
    flex-shrink: 0;
}

.cta-card-bar {
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.cta-card-bar div {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.cta-card--back-2 {
    transform: translateY(-105px) scale(0.78);
    opacity: 0.2;
    z-index: 0;
}

.cta-card--back {
    transform: translateY(-70px) scale(0.85);
    opacity: 0.35;
    z-index: 1;
}

.cta-card--mid {
    transform: translateY(-35px) scale(0.92);
    opacity: 0.6;
    z-index: 2;
}

.cta-card--front {
    transform: translateY(0) scale(1);
    opacity: 1;
    z-index: 3;
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.cta-mockup-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
    z-index: 10;
    position: relative;
}

.cta-mockup-divider {
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
}

.cta-mockup-link {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.cta-mockup-link:hover {
    color: rgba(255,255,255,0.8);
}

.header-cta-sub {
    margin: 0;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.55;
}

.search-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    margin-bottom: 30px;
}

.search-container {
    flex: 1;
    position: relative;
}

.search-container input {
    width: 100%;
    height: 54px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0 20px 0 20px;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-family: inherit;
    text-align: center;
}

.search-container input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    background: #222;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #666;
    pointer-events: none;
    transition: color 0.3s;
}

.search-container input:focus + .search-icon {
    color: var(--accent);
}

.sort-container {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sort-icon {
    position: absolute;
    left: 16px;
    width: 17px;
    height: 17px;
    color: #666;
    pointer-events: none;
    z-index: 1;
}

#sortSelect {
    position: relative;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.custom-select-trigger {
    background: #1f1f1f;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
    padding: 0 20px 0 44px;
    height: 54px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    white-space: nowrap;
    display: flex;
    align-items: center;
    min-width: 160px;
}

#sortSelect.open .custom-select-trigger {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
    background: #222;
}

.custom-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    overflow: hidden;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 6px 0;
}

#sortSelect.open .custom-select-options {
    display: block;
}

.custom-select-option {
    color: white;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.custom-select-option:hover {
    background: rgba(255,255,255,0.07);
}

.custom-select-option.selected {
    color: var(--accent);
}

.no-results {
    text-align: center;
    color: var(--text-secondary);
    grid-column: 1 / -1;
    padding: 40px;
    display: none;
    font-size: 1.1rem;
}

.header-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.header-pill {
    padding: 9px 14px;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 14px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.header-pill-yt {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.header-pill-yt:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.35);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.15);
    transform: translateX(4px);
}

.header-pill-email {
    background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(37,99,235,0.08) 100%);
    border-color: rgba(59,130,246,0.25);
    color: #93c5fd;
}

.header-pill-email:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.22) 0%, rgba(37,99,235,0.16) 100%);
    border-color: rgba(59,130,246,0.5);
    color: white;
    box-shadow: 0 4px 20px rgba(59,130,246,0.2);
    transform: translateX(4px);
}

.yt-icon-small {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.header-pill .yt-icon-small {
    color: #ff0000;
}

.header-pill .email-icon {
    color: currentColor;
}

.yt-icon-small path {
    fill: currentColor;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

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

.video-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.4);
    border-color: rgba(59, 130, 246, 0.5);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
    opacity: 0.6;
}

.video-thumbnail-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 56px;
    height: 56px;
    background: #ff0000;
    border-radius: 14px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 1;
}

.video-thumbnail-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-44%, -50%) scale(0.5);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 18px;
    border-color: transparent transparent transparent white;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    pointer-events: none;
}

.video-card:hover .video-thumbnail-container::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-card:hover .video-thumbnail-container::before {
    opacity: 1;
    transform: translate(-44%, -50%) scale(1);
}

.video-info {
    padding: 20px;
    background: linear-gradient(180deg, rgba(30,30,30,0) 0%, rgba(30,30,30,1) 100%);
}

.video-title {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #f1f5f9;
    transition: color 0.2s;
}

.video-card:hover .video-title {
    color: var(--accent);
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.video-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.video-views, .video-likes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.timer-section {
    margin-bottom: 0;
    width: 100%;
}

.timer-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    padding: 36px 40px 64px;
    width: 100%;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

.timer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), #8b5cf6, var(--accent), transparent);
    opacity: 0.9;
}

.timer-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.timer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.timer-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    height: auto;
}

.timer-header h2 {
    margin: 0 0 8px 0;
    font-size: 2.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    font-weight: 800;
}

.timer-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.4;
}

.timer-display {
    font-size: 6.5rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.5), 0 0 80px rgba(59, 130, 246, 0.15);
    letter-spacing: -3px;
    min-width: 260px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    height: auto;
}

.timer-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    padding-left: 40px;
    height: auto;
}

.timer-input-row {
    display: flex;
    gap: 8px;
}

.timer-input-row #timerInput {
    flex: 1;
}

.timer-input-row .start-btn {
    flex: 0 0 100px;
    padding-left: 10px;
    padding-right: 10px;
}

#timerInput {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
    text-align: center;
    min-width: 0;
    backdrop-filter: blur(8px);
}

#timerInput:focus {
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

#timerInput::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.timer-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.reset-btn {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 0.75rem;
    min-height: 0;
    margin-top: 2px;
    opacity: 0.8;
}

.reset-btn:hover {
    opacity: 1;
}

.timer-btn svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.start-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.stop-btn {
    background: linear-gradient(135deg, #b45555 0%, #943b3b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(148, 59, 59, 0.3);
}

.stop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(148, 59, 59, 0.5);
}

.reset-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .header-branding {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header h1 {
        justify-content: center;
    }

    .badges-container {
        justify-content: center;
        margin-bottom: 10px;
        display: none;
    }

    .header-cta {
        width: 100%;
        max-width: 100%;
        padding: 28px 0 16px;
        border-radius: 14px;
        overflow: hidden;
        flex: none;
        height: auto;
        gap: 0;
    }

    .cta-mockup {
        border-radius: 0;
        gap: 10px;
        padding: 0 12px 10px;
    }

    .cta-cards {
        height: 100px;
    }

    .timer-content {
        flex-direction: column;
        text-align: center;
        gap: 28px;
        align-items: center;
    }

    .timer-header {
        padding-right: 0;
        border-right: none;
        align-items: center;
    }

    .timer-display {
        padding: 0;
        border-right: none;
        min-width: auto;
    }

    .timer-controls {
        width: 100%;
        max-width: 320px;
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    header h1 {
        flex-direction: column;
        align-items: center;
    }

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

    .header-links {
        flex-direction: column;
        width: 100%;
    }

    .timer-card {
        padding: 28px 20px;
    }

    .timer-display {
        font-size: 3.8rem;
    }

    .timer-controls {
        max-width: 100%;
    }

    #timerInput, .timer-btn {
        width: 100%;
        max-width: 300px;
    }
}



.about-section {
    margin: 56px 0 0;
}

.about-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: none;
    border-radius: 0 0 24px 24px;
    padding: 48px 40px 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    -webkit-mask-image: linear-gradient(to top, black 55%, transparent 100%);
    mask-image: linear-gradient(to top, black 55%, transparent 100%);
}

.about-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), #8b5cf6, var(--accent), transparent);
    opacity: 0.9;
}

.about-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.about-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.8;
}

.about-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.15;
}

.about-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
    max-width: 420px;
}

.about-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, transform 0.18s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.about-btn:hover {
    transform: translateY(-1px);
}

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

.about-btn-primary:hover {
    background: var(--accent-hover);
}

.about-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.about-right {
    flex-shrink: 0;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.about-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 28px;
    gap: 4px;
}

.about-stat-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.about-stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.about-stat-div {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}



.blog-section {
    margin: 96px 0 0;
}

.blog-section-header {
    text-align: center;
    margin-bottom: 28px;
}

.blog-section-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.blog-section-title-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.blog-section-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0;
    color: var(--text-primary);
    white-space: nowrap;
}

.blog-section-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.blog-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s, gap 0.18s;
    flex-shrink: 0;
}

.blog-see-all:hover {
    color: #93c5fd;
    gap: 9px;
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px;
    gap: 14px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 100px;
}

.blog-tag-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.blog-tag-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.blog-tag-green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.blog-card-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

.blog-card-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.35;
}

.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.blog-card-read {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.18s;
}

.blog-card:hover .blog-card-read {
    gap: 8px;
}

.blog-card-time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}



.blog-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 0 52px;
}

.blog-page,
.legal-page,
.error-page,
.with-side-mockups {
    position: relative;
    isolation: isolate;
}

.blog-page::before,
.legal-page::before,
.error-page::before,
.with-side-mockups::before,
.blog-page::after,
.legal-page::after,
.error-page::after,
.with-side-mockups::after {
    content: '';
    position: fixed;
    width: 640px;
    height: 640px;
    border-radius: 52px;
    pointer-events: none;
    z-index: -1;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.10),
        inset 0 0 0 48px rgba(59, 130, 246, 0.025),
        inset 0 0 0 96px rgba(255, 255, 255, 0.012),
        inset 0 0 0 180px rgba(139, 92, 246, 0.018),
        inset 0 0 0 280px rgba(255, 255, 255, 0.008),
        0 0 80px rgba(59, 130, 246, 0.04);
    background:
        radial-gradient(ellipse at 38% 38%, rgba(59, 130, 246, 0.14) 0%, transparent 62%),
        radial-gradient(ellipse at 72% 68%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(0deg,   rgba(255,255,255,0.045) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg,  rgba(255,255,255,0.038) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(45deg,  rgba(255,255,255,0.015) 0 1px, transparent 1px 46px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.010) 0 1px, transparent 1px 46px);
}

.blog-page::before,
.legal-page::before,
.error-page::before,
.with-side-mockups::before {
    opacity: 0.32;
    top: 100px;
    left: 0;
    transform: translateX(-400px) rotate(-14deg);
}

.blog-page::after,
.legal-page::after,
.error-page::after,
.with-side-mockups::after {
    opacity: 0.24;
    top: 280px;
    right: 0;
    transform: translateX(390px) rotate(12deg);
    background:
        radial-gradient(ellipse at 60% 40%, rgba(139, 92, 246, 0.16) 0%, transparent 58%),
        radial-gradient(ellipse at 28% 72%, rgba(6, 182, 212, 0.09) 0%, transparent 50%),
        repeating-linear-gradient(0deg,   rgba(255,255,255,0.04) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg,  rgba(255,255,255,0.034) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(45deg,  rgba(255,255,255,0.014) 0 1px, transparent 1px 46px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.009) 0 1px, transparent 1px 46px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.09),
        inset 0 0 0 48px rgba(139, 92, 246, 0.025),
        inset 0 0 0 96px rgba(255, 255, 255, 0.01),
        inset 0 0 0 180px rgba(6, 182, 212, 0.018),
        inset 0 0 0 280px rgba(255, 255, 255, 0.006),
        0 0 80px rgba(139, 92, 246, 0.04);
}

.inner-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
}

.inner-topbar-group {
    pointer-events: all;
    display: inline-flex;
    align-items: stretch;
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.inner-topbar-brand {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255,255,255,0.28);
    padding: 9px 24px;
    transition: color 0.18s, background 0.18s;
}

.inner-topbar-brand:hover {
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
}

.inner-topbar-brand .tb-accent {
    color: rgba(59,130,246,0.5);
    transition: color 0.18s;
}

.inner-topbar-brand:hover .tb-accent {
    color: var(--accent);
}

.inner-topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255,255,255,0.22);
    padding: 9px 14px 9px 16px;
    border-right: 1px solid rgba(255,255,255,0.09);
    transition: color 0.18s, background 0.18s;
}

.inner-topbar-back svg {
    opacity: 0.45;
    flex-shrink: 0;
    transition: opacity 0.18s;
}

.inner-topbar-back:hover {
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
}

.inner-topbar-back:hover svg {
    opacity: 0.85;
}

.blog-post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 7px 14px 7px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    width: fit-content;
    transition: background 0.2s, color 0.2s;
    margin-bottom: 32px;
}

.blog-post-back:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.blog-post-date {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.blog-post-read-time {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-post-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 20px;
}

.blog-post-lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin: 0 0 36px;
    border-left: 3px solid var(--accent);
    padding-left: 18px;
}

.blog-post-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 36px 0;
}

.blog-post-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.blog-post-body h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-post-body h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.blog-post-body p {
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.78;
    margin: 0;
}

.blog-post-body ul {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-post-body ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    padding-left: 20px;
    position: relative;
}

.blog-post-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.7;
}

.blog-highlight-box {
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    padding: 20px 24px;
}

.blog-highlight-box p {
    font-size: 0.94rem !important;
    color: rgba(255,255,255,0.7) !important;
}

.blog-cta-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: 8px;
}

.blog-cta-text h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 5px;
}

.blog-cta-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.blog-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s, transform 0.18s;
}

.blog-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.blog-end-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
}

.blog-end-cta {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.blog-end-cta h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.blog-end-cta p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.blog-end-vdivider {
    width: 1px;
    background: rgba(255,255,255,0.07);
    margin: 24px 0;
}

.blog-end-next {
    padding: 28px 32px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.18s;
}

.blog-end-next:hover {
    background: rgba(255,255,255,0.025);
}

.blog-end-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.28);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-end-next-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 2px 0 0;
}

.blog-end-next-excerpt {
    font-size: 0.855rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.blog-end-read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 4px;
}

.blog-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
}

.blog-post-nav-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 18px 20px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-post-nav-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.14);
}

.blog-post-nav-card span:first-child {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-post-nav-card span:last-child {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.blog-post-nav-card.nav-next {
    text-align: right;
}

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

    .blog-page {
        padding: 36px 0 60px;
    }

    .blog-end-card {
        grid-template-columns: 1fr;
    }

    .blog-end-vdivider {
        width: auto;
        height: 1px;
        margin: 0 28px;
    }

    .blog-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .blog-post-nav {
        grid-template-columns: 1fr;
    }

    .blog-post-nav-card.nav-next {
        text-align: left;
    }

    .blog-page::before,
    .legal-page::before,
    .error-page::before,
    .with-side-mockups::before {
        width: 420px;
        height: 420px;
        left: 0;
        top: 110px;
        opacity: 0.18;
        transform: translateX(-310px) rotate(-14deg);
    }

    .blog-page::after,
    .legal-page::after,
    .error-page::after,
    .with-side-mockups::after {
        display: none;
    }
}

.app-footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 60px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 14px;
}

.footer-legal-link {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    transition: color 0.18s;
    letter-spacing: 0.02em;
}

.footer-legal-link:hover {
    color: var(--text-secondary);
}

.footer-legal-sep {
    color: rgba(255,255,255,0.12);
    font-size: 0.78rem;
    user-select: none;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    padding-bottom: 10px;
}

.footer-left,
.footer-right {
    flex: 1;
}

.footer-right {
    text-align: right;
}

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.footer-link-button {
    border: none;
    background: transparent;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

.footer-nav-link {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.18s;
    background: transparent;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.footer-nav-link:hover {
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--accent);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.2);
}

.footer-right a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    header {
        margin-bottom: 30px;
    }

    .app-footer {
        padding-bottom: 0;
    }

    .footer-main {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .footer-center {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .footer-divider {
        display: none;
    }

    .footer-right {
        text-align: center;
    }

    .about-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        gap: 20px;
    }

    .about-actions {
        width: 100%;
    }

    .about-btn {
        justify-content: center;
        width: 100%;
    }

    .search-bar-row {
        flex-wrap: wrap;
        gap: 16px;
        align-items: flex-start;
    }

    .search-container {
        flex: 1 1 100%;
        order: 1;
        margin-bottom: 0;
    }

    .sort-container {
        flex: 1 1 100%;
        order: 2;
        width: 100%;
        margin-bottom: 0;
    }
    
    #sortSelect {
        width: 100%;
    }
    .custom-select-trigger {
        width: 100%;
    }

    .pagination-container {
        flex: 1 1 100%;
        justify-content: center;
        order: 3;
        margin-top: 0;
        padding-top: 4px;
    }
    
    .pagination-bar {
        width: 100%;
        justify-content: space-between;
        padding: 0 4px;
    }
    
    .timer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 20px 0;
    }
    
    .timer-header, 
    .timer-display,
    .timer-controls {
        border-right: none;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding-bottom: 30px;
        min-height: auto;
    }
    
    .timer-controls {
        border-bottom: none;
        padding-bottom: 0;
        padding-left: 0;
        align-items: center;
        width: 100%;
    }
    
    .timer-input-row {
        width: 100%;
        max-width: 300px;
    }

    .reset-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .timer-display {
        min-width: 0;
        font-size: 5rem;
    }
}

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

.pagination-bar {
    display: inline-flex;
    align-items: center;
    background: #252525;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50px;
    overflow: hidden;
    height: 54px;
}

.pagination-btn {
    width: 42px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.pagination-btn:not(.disabled):hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.pagination-btn.disabled {
    opacity: 0.2;
    cursor: default;
}

.pagination-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.pagination-info {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0 1rem;
    white-space: nowrap;
    letter-spacing: 0.5px;
    user-select: none;
    flex-grow: 1;
    text-align: center;
}



.legal-hero {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 84px 0 48px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legal-hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legal-hero-right {
    flex: 0 1 400px;
    perspective: 800px;
    display: flex;
    justify-content: center;
}

.legal-back-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 7px 14px 7px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    width: fit-content;
    transition: background 0.2s, color 0.2s;
}

.legal-back-pill svg {
    opacity: 0.7;
    flex-shrink: 0;
}

.legal-back-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    border-radius: 100px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: fit-content;
}

.legal-title {
    display: flex;
    flex-direction: column;
    line-height: 0.97;
    font-size: clamp(3.2rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 0;
}

.legal-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
    max-width: 440px;
}

.legal-updated {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}



.legal-mockup-stack {
    position: relative;
    width: 320px;
    height: 260px;
    margin: 0 auto;
}

.legal-mockup-card {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
}

.lmc--front {
    top: 0;
    transform: translateY(0px) scale(1);
    z-index: 4;
}

.lmc--mid {
    top: 0;
    transform: translateY(58px) scale(0.96);
    opacity: 0.72;
    z-index: 3;
}

.lmc--back {
    top: 0;
    transform: translateY(116px) scale(0.92);
    opacity: 0.42;
    z-index: 2;
}

.lmc--back-2 {
    top: 0;
    transform: translateY(174px) scale(0.88);
    opacity: 0.2;
    z-index: 1;
}

.legal-mockup-stack:hover .lmc--front  { transform: translateY(-10px) scale(1); }
.legal-mockup-stack:hover .lmc--mid    { transform: translateY(52px) scale(0.96); }
.legal-mockup-stack:hover .lmc--back   { transform: translateY(112px) scale(0.92); }
.legal-mockup-stack:hover .lmc--back-2 { transform: translateY(170px) scale(0.88); }

.lmc-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.lmc-blue   { background: rgba(59,  130, 246, 0.2); color: #60a5fa; }
.lmc-green  { background: rgba(34,  197, 94,  0.2); color: #4ade80; }
.lmc-red    { background: rgba(239, 68,  68,  0.2); color: #f87171; }
.lmc-purple { background: rgba(168, 85,  247, 0.2); color: #c084fc; }
.lmc-yellow { background: rgba(234, 179, 8,   0.2); color: #facc15; }

.lmc-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.lmc-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 100px;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Legal Sections ─────────────────────────────────────────────── */
.legal-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0;
    counter-reset: lsc-counter;
    position: relative;
    z-index: 1;
}

.legal-section-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 26px 28px 24px;
    position: relative;
    counter-increment: lsc-counter;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease,
                border-color 0.22s ease, background 0.22s ease;
}

.legal-section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Faint counter watermark top-right */
.legal-section-card::before {
    content: counter(lsc-counter, decimal-leading-zero);
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 0.64rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* ─── Blog Table Styles ────────────────────────────────────────── */
.blog-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.blog-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: var(--text-secondary);
    min-width: 600px; /* Ensure table doesn't squish too much */
}

.blog-comparison-table th {
    text-align: left;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.blog-comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    line-height: 1.6;
}

.blog-comparison-table tr:last-child td {
    border-bottom: none;
}

.blog-comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.blog-comparison-table strong {
    color: var(--text-primary);
}

/* Table Tag Pills */
.tag-cell {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}

.tag-5m { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border-color: rgba(59, 130, 246, 0.3); }
.tag-25m { background: rgba(34, 197, 94, 0.15); color: #86efac; border-color: rgba(34, 197, 94, 0.3); }
.tag-50m { background: rgba(168, 85, 247, 0.15); color: #c4b5fd; border-color: rgba(168, 85, 247, 0.3); }


/* In-Content Links */
.blog-post-body a:not(.blog-cta-btn), 
.text-link {
    color: var(--accent); /* Uses the bright blue from root */
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.blog-post-body a:not(.blog-cta-btn):hover,
.text-link:hover {
    color: #60a5fa; /* Lighter blue on hover */
    border-bottom-color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 2px;
}


.legal-section-card::after {
    display: none;
}

/* ── Bottom edge fade — consistent with site card style ─────────── */
.legal-section-card:not(.lsc-contact) {
    -webkit-mask-image: linear-gradient(to bottom, black 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 62%, transparent 100%);
}

/* Colored top accent per icon type */
.legal-section-card:has(.lsc-icon-blue)   { border-top: 2px solid rgba(59, 130, 246, 0.55); }
.legal-section-card:has(.lsc-icon-purple) { border-top: 2px solid rgba(139, 92, 246, 0.55); }
.legal-section-card:has(.lsc-icon-red)    { border-top: 2px solid rgba(239, 68, 68, 0.55); }
.legal-section-card:has(.lsc-icon-green)  { border-top: 2px solid rgba(34, 197, 94, 0.55); }
.legal-section-card:has(.lsc-icon-yellow) { border-top: 2px solid rgba(234, 179, 8, 0.55); }
.legal-section-card:has(.lsc-icon-gray)   { border-top: 2px solid rgba(148, 163, 184, 0.45); }
.legal-section-card:has(.lsc-icon-orange) { border-top: 2px solid rgba(249, 115, 22, 0.55); }

/* Icon badges — full-height strip, SVG top-aligned */
.lsc-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 40px;
    align-self: stretch;
    border-radius: 11px;
    flex-shrink: 0;
    padding-top: 11px;
}

.lsc-icon-blue   { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.lsc-icon-purple { background: rgba(139, 92, 246, 0.18); color: #c4b5fd; }
.lsc-icon-red    { background: rgba(239, 68, 68, 0.18);  color: #fca5a5; }
.lsc-icon-green  { background: rgba(34, 197, 94, 0.18);  color: #86efac; }
.lsc-icon-yellow { background: rgba(234, 179, 8, 0.18);  color: #fde047; }
.lsc-icon-gray   { background: rgba(148, 163, 184, 0.12); color: #94a3b8; }
.lsc-icon-orange { background: rgba(249, 115, 22, 0.18);  color: #fdba74; }

.lsc-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    flex: 1;
}

.lsc-body h2 {
    margin: 0 0 7px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.lsc-body p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.72;
    font-size: 0.88rem;
}

.lsc-body a {
    color: #93c5fd;
    text-decoration: none;
}

.lsc-body a:hover {
    text-decoration: underline;
}

/* Contact card — spans full width, dissolves toward bottom */
.lsc-contact {
    grid-column: 1 / -1;
    align-items: center;
    gap: 20px;
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-top: 2px solid rgba(59, 130, 246, 0.6) !important;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%) !important;
}

.lsc-contact:hover {
    background: rgba(59, 130, 246, 0.11);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.12);
}

.lsc-contact .lsc-body h2 {
    color: #93c5fd;
}

.lsc-reveal {
    opacity: 0;
    transform: translateY(10px);
}

.lsc-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition:
        opacity 0.38s ease calc(var(--lsc-delay, 0s)),
        transform 0.38s ease calc(var(--lsc-delay, 0s));
}

/* ─── Legal Footer ───────────────────────────────────────────────── */
.legal-footer {
    text-align: center;
    padding: 32px 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.legal-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
}

.legal-footer a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.legal-footer-sep {
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.88rem;
    user-select: none;
}



.cookie-modal {
    position: fixed;
    inset: 0;
    background: transparent;
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 9999;
    padding: 20px;
    pointer-events: none;
}

.cookie-modal.is-visible {
    display: flex;
    animation: cookieSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

.cookie-modal-card {
    width: min(420px, calc(100vw - 40px));
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04);
    pointer-events: auto;
}

.cookie-modal-header {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.cookie-modal-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.cookie-modal-title-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.cookie-modal-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cookie-modal-subtitle {
    margin: 6px 0 0;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.75);
}

.cookie-modal-divider {
    margin: 12px 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie type rows */
.cookie-type-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 10px;
}

.cookie-type-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 10px 12px;
}

.cookie-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    flex-shrink: 0;
}

.cti-green  { background: rgba(34,  197, 94,  0.2); color: #4ade80; }
.cti-blue   { background: rgba(59,  130, 246, 0.2); color: #60a5fa; }

.cookie-type-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cookie-type-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cookie-type-desc {
    font-size: 0.76rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cookie-type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.badge-always {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-optional {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.cookie-modal-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 0;
}

.cookie-modal-note a {
    color: #93c5fd;
    text-decoration: none;
}

.cookie-modal-note a:hover {
    text-decoration: underline;
}

.cookie-modal-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    width: 100%;
}

.cookie-btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    transition: background 0.18s, border-color 0.18s;
}

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

.cookie-btn-primary:hover {
    background: var(--accent-hover);
}

.cookie-btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--text-primary);
}

.cookie-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.06);
}

/* ─── Legal Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .legal-hero {
        flex-direction: column;
        padding: 52px 0 32px;
        gap: 36px;
    }

    .legal-hero-right {
        width: 100%;
        flex: unset;
    }

    .legal-mockup-stack {
        width: 100%;
        max-width: 380px;
    }

    .legal-subtitle {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 36px 0 24px;
    }

    .legal-hero-left {
        align-items: center;
    }

    .legal-title {
        font-size: clamp(2.6rem, 11vw, 3.8rem);
    }

    .legal-hero-right {
        display: none;
    }

    .legal-sections {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 48px;
    }

    .legal-section-card {
        padding: 20px 22px 18px;
    }

    .lsc-contact {
        grid-column: 1;
    }

    .cookie-modal {
        padding: 12px;
    }

    .cookie-modal-card {
        width: min(380px, calc(100vw - 24px));
    }

    .cookie-modal-actions {
        gap: 8px;
    }
}
