:root {
    --bg-main: #fbfaf8;
    --card-bg: #ffffff;
    --card-border: #e8e2dc;
    --card-hover-border: #c87451;
    --text-primary: #111827;
    --text-secondary: #57606a;
    --brand-primary: #c87451;
    --brand-light: #e5936f;
    --brand-dark: #9c5335;
    --brand-soft: #fcf4f0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    min-height: 100%;
    min-height: 100dvh;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    letter-spacing: -0.025em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Kurumsal Hafif Arka Plan Işıkları (Bakır / Bronz Tonları) */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
}

.orb-1 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, var(--brand-light), transparent 70%);
    top: -120px;
    right: -80px;
}

.orb-2 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, var(--brand-primary), transparent 70%);
    bottom: -110px;
    left: -90px;
}

/* Ana Mobil Konteyner */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 24px 18px 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Üst Bilgi & Paylaş Barı */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--brand-primary);
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.share-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.share-btn:active {
    transform: scale(0.95);
}

/* Kurumsal Logo Bölümü */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px -6px rgba(17, 24, 39, 0.05);
}

.brand-logo-img {
    max-width: 240px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.brand-subtitle {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
    line-height: 1.48;
    max-width: 360px;
}

/* Bağlantı Kartları Listesi */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px -4px rgba(17, 24, 39, 0.04);
}

.link-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(200, 116, 81, 0.16);
}

.link-card:active {
    transform: scale(0.985);
}

/* Cihaza Uygun Öne Çıkan Kart */
.link-card.recommended {
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-soft) 100%);
    box-shadow: 0 10px 24px -8px rgba(200, 116, 81, 0.22);
}

/* Mobil Uygulama Simgesi Kutuları (Squircle App Icon) */
.app-icon-tile {
    position: relative;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.ios-tile {
    background: #111827;
    color: #ffffff;
}

.play-tile {
    background: #18181b;
}

.web-tile {
    background: linear-gradient(145deg, var(--brand-light), var(--brand-primary));
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(200, 116, 81, 0.3);
}

.store-svg {
    width: 28px;
    height: 28px;
}

.mini-app-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding: 2px 5px;
    border-radius: 5px;
    background: var(--brand-primary);
    color: #ffffff;
    border: 1.5px solid #ffffff;
}

/* Kart İçeriği */
.card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.store-tag {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
}

.recommended-badge {
    display: none;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--brand-primary);
    color: #ffffff;
}

.link-card.recommended .recommended-badge {
    display: inline-block;
}

.card-title {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--text-primary);
}

.card-meta {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sağ Aksiyon Dairesi */
.card-action {
    display: flex;
    align-items: center;
}

.action-circle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.link-card:hover .action-circle {
    background: var(--brand-primary);
    color: #ffffff;
}

/* Web Sitesi Kartı & Domain Alanı */
.web-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.web-main-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.domain-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    padding: 4px 10px;
    background: var(--brand-soft);
    border: 1px solid rgba(200, 116, 81, 0.28);
    border-radius: 8px;
    width: fit-content;
    max-width: 100%;
}

.domain-text {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-domain-btn {
    width: 100%;
    padding: 9px 14px;
    border-radius: 10px;
    background: #f8f7f5;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.copy-domain-btn:hover {
    background: var(--brand-soft);
    border-color: var(--brand-primary);
    color: var(--brand-dark);
}

/* Alt Bilgi */
.footer {
    margin-top: 4px;
    display: flex;
    justify-content: center;
}

.security-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
}

/* Bildirim Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: var(--text-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: -0.02em;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 50;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 360px) {
    .container {
        padding: 18px 14px 28px;
    }
    .brand-logo-img {
        max-width: 200px;
    }
    .app-icon-tile {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
}
