:root {
    color-scheme: only light;
    --accent-color: #ecfdf5;
    --hero-accent: #fde68a;
    --overlay-color: rgba(16, 185, 129, 0.45);
}

/* Splash ekran stilleri */
#splash {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.08) 100%);
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.splash-logo {
    /* Increased for stronger brand presence on splash */
    width: clamp(140px, 28vw, 220px);
    height: clamp(140px, 28vw, 220px);
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    padding: 12px;
    box-shadow: 0 12px 40px rgba(2,6,23,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
    transform: translateY(6px) scale(0.98);
    opacity: 0;
    animation: splashIn 520ms cubic-bezier(.2,.9,.2,1) forwards;
}

@keyframes splashIn {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Gizleme state: yumuşak solma */
.splash-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    transform: scale(0.995);
}

/* Uygulama içeriğini splash bitene kadar gizle */
.hidden-until-ready {
    visibility: hidden !important;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    overflow: hidden;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: env(safe-area-inset-top) clamp(14px, 4vw, 32px) env(safe-area-inset-bottom);
    color: #f8fafc;
    position: relative;
}

.background-wrapper {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.background-layer {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    filter: saturate(115%) brightness(0.95);
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 1.8s ease;
    opacity: 0.55;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-color);
    mix-blend-mode: multiply;
    opacity: 0.85;
    transition: background 0.6s ease, opacity 0.6s ease;
}

.mobile-container {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - clamp(28px, 8vw, 64px));
    max-height: 720px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: clamp(24px, 5vw, 32px);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    padding: clamp(18px, 5vw, 30px);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vh, 24px);
    overflow: hidden;
}

.hero-section {
    position: relative;
    flex: 1;
    min-height: 240px;
    border-radius: clamp(18px, 4vw, 26px);
    overflow: hidden;
    isolation: isolate;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 1.6s ease, opacity 0.8s ease;
    filter: contrast(105%) saturate(110%);
    opacity: 1;
}

.hero-visual.is-transitioning .hero-image {
    transform: scale(1.08);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(195deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.75) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: clamp(20px, 5vw, 32px);
    color: #f8fafc;
    text-shadow: 0 0 22px rgba(15, 23, 42, 0.4);
}

.hero-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: var(--hero-accent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.4vw, 1.05rem);
    font-weight: 400;
    opacity: 0.92;
    max-width: 90%;
}

.hero-progress {
    position: absolute;
    left: clamp(20px, 5vw, 32px);
    right: clamp(20px, 5vw, 32px);
    bottom: clamp(18px, 4vw, 28px);
    height: 4px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.22);
    overflow: hidden;
    z-index: 2;
}

.hero-progress .progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--hero-accent);
    border-radius: inherit;
    opacity: 0.9;
    transition: background 0.6s ease;
}

.hero-progress .progress-bar.animate {
    animation: heroProgress var(--progress-duration, 6000ms) linear forwards;
}

@keyframes heroProgress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.content-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #f8fafc;
}

.logo {
    /* Make main in-page logo larger and more prominent */
    width: clamp(120px, 28vw, 180px);
    height: clamp(120px, 28vw, 180px);
    object-fit: contain;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    padding: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.logo:not([src]),
.logo[src=""] {
    display: none;
}

.welcome-text {
    font-size: clamp(1.7rem, 4.8vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #ffffff;
}

.dynamic-tagline {
    font-size: clamp(0.9rem, 2.6vw, 1rem);
    line-height: 1.55;
    max-width: 28ch;
    color: rgba(248, 250, 252, 0.88);
    text-align: center;
}

.interactive-links {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    border-radius: clamp(18px, 4vw, 26px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.link-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: clamp(16px, 4.5vw, 22px) clamp(18px, 6vw, 28px);
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
    color: rgba(248, 250, 252, 0.92);
}

.link-item:last-child {
    border-bottom: none;
}

.link-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.link-left {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(52px, 52px) 1fr;
    align-items: center;
    gap: 12px;
}

.link-icon {
    width: 52px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.link-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.link-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(248, 250, 252, 0.95);
}

.link-subtitle {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.66);
}

.link-arrow {
    font-size: 1.4rem;
    color: rgba(248, 250, 252, 0.65);
    transition: transform 0.35s ease, color 0.35s ease;
    margin-left: auto;
}

.link-item:hover,
.link-item:focus-visible {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.35);
}

.link-item:hover::before,
.link-item:focus-visible::before {
    opacity: 1;
}

.link-item:hover .link-arrow,
.link-item:focus-visible .link-arrow {
    transform: translateX(4px);
    color: var(--accent-color);
}

.link-item:active {
    transform: translateY(-1px);
}

.link-item:focus-visible {
    outline: 2px solid rgba(248, 250, 252, 0.45);
    outline-offset: 4px;
}

.link-item.is-active .link-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.link-item.is-active .link-arrow {
    transform: translateX(6px);
    color: var(--accent-color);
}

.link-item.is-active .link-title {
    color: var(--accent-color);
}

@media (max-width: 480px) {
    body {
        padding: env(safe-area-inset-top) clamp(12px, 4vw, 18px) env(safe-area-inset-bottom);
    }

    .mobile-container {
        width: 100%;
        height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        border-radius: 0;
        max-height: none;
        padding: clamp(16px, 5vw, 24px);
        box-shadow: none;
    }

    .hero-section {
        min-height: 220px;
        border-radius: clamp(16px, 6vw, 24px);
    }

    .interactive-links {
        border-radius: clamp(16px, 6vw, 24px);
    }
}

@media (max-width: 360px) {
    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .link-item {
        padding: 14px 18px;
    }

    .link-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    body {
        padding: clamp(24px, 6vh, 48px);
    }

    .mobile-container {
        max-width: 460px;
        height: 720px;
        border-radius: 32px;
    }

    .hero-section {
        min-height: 260px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    overflow: hidden;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 0;
    margin: 0;
}

.mobile-container {
    width: 100%;
    height: 100vh;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Logo Bölümü */
.logo-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    /* Desktop / alternate rule: increase default max-size so logo isn't tiny */
    max-width: 220px;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo:not([src]) {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

/* İçerik Bölümü */
.content-section {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-text {
    font-size: 24px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Footer Linkler */
.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.link-item:last-child {
    border-bottom: none;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.link-item:active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(0px);
}

.link-icon {
    font-size: 24px;
}

.link-text {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.instagram-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.reviews-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 480px) {
    .mobile-container {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        min-height: 100vh;
    }

    .logo-section {
        min-height: 120px;
        padding: 20px;
    }

    .logo {
        max-width: 335px;
        max-height: max-content;
    }

    .content-section {
        padding: 15px;
    }

    .welcome-text {
        font-size: 18px;
    }

    .footer-links {
        gap: 0;
        padding: 0;
    }

    .link-item {
        padding: 12px 15px;
        border-bottom: 1px solid #e9ecef;
    }

    .link-item:last-child {
        border-bottom: none;
    }

    .link-text {
        font-size: 14px;
    }
}

/* Masaüstü ekranda da göster - Modern Glassmorphism */
@media (min-width: 769px) {
    .mobile-container {
        max-width: 480px;
        height: auto;
        max-height: 90vh;
        border-radius: 20px;
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    body {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        height: 100vh;
        min-height: 100vh;
    }

    .logo-section {
        border-radius: 20px 20px 0 0;
    }

    .footer-links .link-item:last-child {
        border-radius: 0 0 20px 20px;
    }
}

/* Cards Theme Overrides */
[data-theme="cards"] #splash { display: none; }
#appRoot.hidden-until-ready { visibility: visible !important; }

[data-theme="cards"].mobile-container {
    /* prefer page scroll instead of inner scroll */
    overflow: visible;
    /* avoid fixed-height traps */
    height: auto;
    min-height: 100dvh;
    max-height: none;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
}

[data-theme="cards"] .card {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
    padding: 16px;
}

/* Brand Card */
[data-theme="cards"] .brand-card {
    display: flex;
    align-items: center;
    gap: 14px;
}
[data-theme="cards"] .brand-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.28);
    display: grid;
    place-items: center;
    overflow: hidden;
}
[data-theme="cards"] .brand-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
[data-theme="cards"] .brand-title {
    font-size: 1.25rem;
    font-weight: 700;
}
[data-theme="cards"] .brand-subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Welcome Card */
[data-theme="cards"] .welcome-card {
    text-align: center;
}
[data-theme="cards"] .welcome-card .welcome-text {
    font-size: 1.4rem;
}
[data-theme="cards"] .welcome-card .dynamic-tagline {
    max-width: 30ch;
    margin: 0 auto;
}

/* Links Card */
[data-theme="cards"] .links-card {
    padding: 18px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 18px;
    backdrop-filter: blur(12px) saturate(110%);
    -webkit-backdrop-filter: blur(12px) saturate(110%);
    box-shadow: 0 18px 40px rgba(2,6,23,0.28), inset 0 1px 0 rgba(255,255,255,0.25);
}
[data-theme="cards"] .links-card-header {
    font-size: 0.95rem;
    opacity: 0.9;
    padding: 4px 6px 10px 6px;
}
[data-theme="cards"] .links-card.interactive-links {
    margin-top: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}
[data-theme="cards"] .links-card .link-item {
    border-radius: 12px;
    margin: 6px 0;
    border: 1px solid rgba(255,255,255,0.16);
}
[data-theme="cards"] .links-card .link-item:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.16);
}

/* Positioning: center links, push hero to bottom */
[data-theme="cards"] .links-card {
    margin-top: auto;
    margin-bottom: auto;
}
[data-theme="cards"] .hero-section {
    margin-top: auto;
}

/* Small-height devices: reduce hero size and tighten spacing */
@media (max-height: 720px) {
    [data-theme="cards"] .hero-section { min-height: 200px; }
    [data-theme="cards"] .links-card { padding: 18px 12px 12px; }
}
@media (max-height: 600px) {
    [data-theme="cards"] .hero-section { min-height: 170px; }
    [data-theme="cards"] .brand-avatar { width: 56px; height: 56px; }
    [data-theme="cards"] .brand-title { font-size: 1.1rem; }
}

/* Prefer full-page vertical scroll (overrides global overflow:hidden) */
html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100dvh;
}

/* Ensure splash is fully disabled (overlay can block scroll on some devices) */
#splash { display: none !important; }

/* Disable vertical centering to allow natural flow + scroll */
[data-theme="cards"] .links-card {
    margin-top: 0;
    margin-bottom: 0;
}
[data-theme="cards"] .hero-section {
    margin-top: 12px;
}

/* Refined Links Menu Style (Cards Theme) */
[data-theme="cards"] .links-card {
    position: relative;
    padding: 22px 14px 14px 14px; /* room for floating header */
}
[data-theme="cards"] .links-card-header {
    position: absolute;
    top: -12px;
    left: 16px;
    z-index: 1;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
[data-theme="cards"] .links-card .link-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 16px;
    padding: 14px 16px 14px 24px; /* room for accent bar */
    margin: 0 0 12px 0;
    box-shadow: 0 8px 24px rgba(2,6,23,0.18);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
[data-theme="cards"] .links-card .link-item:last-child { margin-bottom: 0; }
[data-theme="cards"] .links-card .link-item::before {
    background: radial-gradient(120px 40px at 0% 50%, rgba(255,255,255,0.25), transparent 60%);
}
[data-theme="cards"] .links-card .link-item::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: 4px;
    border-radius: 999px;
    background: var(--accent-color);
    opacity: .9;
    transform: scaleY(.8);
    transform-origin: center;
    transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .22s ease;
}
[data-theme="cards"] .links-card .link-item:hover::after,
[data-theme="cards"] .links-card .link-item:focus-visible::after,
[data-theme="cards"] .links-card .link-item.is-active::after {
    transform: scaleY(1);
    opacity: 1;
}
[data-theme="cards"] .links-card .link-icon {
    width: 56px; /* fixed box ensures consistent left edge */
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 8px 18px rgba(2,6,23,0.22), 0 0 0 2px rgba(255,255,255,0.16), 0 0 0 3px rgba(255,255,255,0.08), 0 0 0 6px rgba(2,6,23,0.12);
    font-size: 1.3rem;
    color: var(--accent-color);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    line-height: 1;
    padding: 0;
    font-family: 'Segoe UI Emoji','Noto Color Emoji','Twemoji Mozilla','Apple Color Emoji','EmojiOne Color', system-ui, sans-serif;
}
[data-theme="cards"] .links-card .link-arrow {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    color: var(--accent-color);
    line-height: 0;
    transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}
[data-theme="cards"] .links-card .link-item:hover .link-arrow,
[data-theme="cards"] .links-card .link-item:focus-visible .link-arrow {
    background: rgba(255,255,255,0.22);
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(2,6,23,0.18);
}

/* Ensure left-side icon alignment inside links-card */
[data-theme="cards"] .links-card .link-left {
    display: grid;
    grid-template-columns: minmax(56px, 56px) 1fr;
    align-items: center;
    gap: 14px;
}

/* If icon element is left empty, allow setting via CSS var or data attribute */
[data-theme="cards"] .links-card .link-icon:empty::before {
    content: var(--icon, attr(data-icon));
}

/* Titles and subtitles inside cards links */
[data-theme="cards"] .links-card .link-title {
    color: rgba(248,250,252,0.96);
    font-weight: 700;
    letter-spacing: -0.01em;
}
[data-theme="cards"] .links-card .link-subtitle {
    color: rgba(248,250,252,0.70);
}

/* Hover/focus elevation and tint */
[data-theme="cards"] .links-card .link-item:hover,
[data-theme="cards"] .links-card .link-item:focus-visible,
[data-theme="cards"] .links-card .link-item.is-active {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10));
    border-color: rgba(255,255,255,0.28);
    box-shadow: 0 14px 30px rgba(2,6,23,0.24);
}

/* Keyboard accessibility */
[data-theme="cards"] .links-card .link-item:focus-visible {
    outline: 2px solid rgba(255,255,255,0.45);
    outline-offset: 3px;
}

/* On small screens, avoid flex-centering on body; allow natural flow + page scroll */
@media (max-width: 640px) {
    body {
        display: block !important;
        padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
    }
    [data-theme="cards"].mobile-container {
        width: 100% !important;
        height: auto !important;
        min-height: 100dvh !important;
        border-radius: 0;
    }
}

/* Extra hardening: very short displays must always scroll */
@media (max-height: 700px) {
    body { display: block !important; height: auto !important; }
    html, body { overflow-y: auto !important; }
    #appRoot.mobile-container { height: auto !important; min-height: 100vh !important; overflow: visible !important; }
}
@media (max-height: 520px) {
    [data-theme="cards"] .hero-section { min-height: 140px; }
}
