/*=====================================================
GoogleWidget.com.tr
Versiyon: v8.0.0
------------------------------------------------------*/
:root {
    --primary: #1a73e8;
    --primary-dark: #1666c8;
    --secondary: #FF6584;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --light-bg: #f8f9ff;
    --card-shadow: 0 4px 24px rgba(108,99,255,.12);
    --radius: 16px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--light-bg);
    color: #333;
}

/* ─── Navbar ─── */
.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary) !important;
}
.navbar-brand span { color: var(--secondary); }

/* ─── Hero (Yeni) ─── */
.hero-new {
    background: #fff;
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero-tag {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 14px;
    letter-spacing: .5px;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 420px;
}

.btn-hero-cta {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.btn-hero-cta:hover {
    background: #d01e6a;
    color: #fff;
    transform: translateY(-2px);
}

.hero-sub {
    margin-top: 10px;
    font-size: .82rem;
    color: #aaa;
}

/* Blob arka plan */
.hero-blob {
    position: relative;
}
.hero-blob::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(238,42,123,.12) 0%, rgba(108,99,255,.08) 60%, transparent 80%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Instagram Mockup */
.ig-mockup {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
    overflow: hidden;
    max-width: 520px;
    width: 100%;
    border: 1px solid #f0f0f0;
}

.ig-mock-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.ig-mock-avatar { flex-shrink: 0; }
.ig-mock-info { flex: 1; }
.ig-mock-stats {
    display: flex;
    gap: 14px;
}
.ig-mock-stat {
    text-align: center;
    font-size: .72rem;
    color: #888;
    line-height: 1.3;
}
.ig-mock-stat strong {
    display: block;
    font-size: .85rem;
    color: #1a1a2e;
}
.ig-mock-follow {
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ig-mock-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}
.ig-mock-cell {
    aspect-ratio: 1;
    overflow: hidden;
}
.ig-mock-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.ig-mock-cell:hover img { transform: scale(1.05); }

@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .ig-mockup { max-width: 100%; }
    .hero-blob::before { width: 300px; height: 300px; }
}

/* ─── Features Section ─── */
.features-section {
    background: #f7f7fb;
    padding: 80px 0 70px;
}
.features-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.features-subtitle {
    color: #888;
    font-size: 1rem;
    margin-bottom: 0;
}

.feat-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
}
.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(108,99,255,.14);
}
.feat-body {
    padding: 32px 28px 16px;
    flex: 1;
}
.feat-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    margin-bottom: 16px;
}
.feat-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.feat-desc {
    color: #777;
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.feat-illus {
    background: #f7f7fb;
    padding: 20px 24px 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.feat-illus svg {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
}

/* ─── Hero (Eski — kaldırıldı ama badge için) ─── */
.hero .badge-hero {
    background: rgba(255,255,255,.2);
    color: #fff;
    border-radius: 50px;
    padding: 6px 18px;
    font-size: .85rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* ─── Pricing Cards ─── */
.pricing-section { padding: 80px 0; }

.pricing-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 40px 32px;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
    position: relative;
    height: 100%;
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(108,99,255,.2);
}
.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.04);
}
.pricing-card.popular:hover { transform: scale(1.04) translateY(-6px); }

.badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 20px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card .plan-name {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 12px;
}
.pricing-card .price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--gray); }
.pricing-card .price small { font-size: 1.2rem; vertical-align: super; }

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
}
.pricing-card ul li {
    padding: 7px 0;
    color: #444;
    font-size: .95rem;
    border-bottom: 1px solid #f0f0f0;
}
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    margin-right: 10px;
}

.btn-plan {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 36px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: background .2s, transform .2s;
}
.btn-plan:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn-plan-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-plan-outline:hover {
    background: var(--primary);
    color: #fff;
}
/* ─── SSS Accordion ─── */
.sss-group-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 10px;
}
.sss-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.sss-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    font-size: .95rem;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.sss-btn::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform .2s;
}
.sss-btn:not(.collapsed)::after {
    content: '−';
}
.sss-body {
    padding: 0 20px 18px;
    font-size: .9rem;
    color: #555;
    line-height: 1.7;
}
.sss-body a { color: var(--primary); }

/* ─── Auth Forms ─── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
    padding: 40px 0;
}
.auth-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    padding: 40px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
.auth-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}
.auth-card .subtitle { color: var(--gray); font-size: .9rem; margin-bottom: 28px; }

.form-label { font-weight: 600; font-size: .88rem; color: #444; }
.form-control, .form-select {
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    padding: 11px 14px;
    font-size: .95rem;
    transition: border-color .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}

/* Payment method selector */
.payment-option {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    display: flex;
    align-items: center;
    gap: 14px;
}
.payment-option:hover { border-color: var(--primary); background: #f8f7ff; }
.payment-option.selected { border-color: var(--primary); background: #e8f0fe; }
.payment-option .pay-icon { font-size: 2rem; }
.payment-option .pay-title { font-weight: 700; font-size: .95rem; }
.payment-option .pay-desc { font-size: .82rem; color: var(--gray); }

/* ─── Dashboard ─── */
.sidebar {
    width: 260px;
    background: var(--dark);
    min-height: 100vh;
    padding: 24px 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}
.sidebar-brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}
.sidebar-brand span { color: var(--secondary); }
.sidebar-nav { padding: 16px 0; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s, background .2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    color: #fff;
    background: rgba(108,99,255,.3);
}
.sidebar-nav a svg { width: 18px; height: 18px; }

.main-content {
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
}

.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 1.6rem; font-weight: 800; color: var(--dark); }
.page-header p { color: var(--gray); font-size: .9rem; }

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4285f4, #1a73e8, #34a853);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-label { font-size: .82rem; color: var(--gray); font-weight: 600; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--dark); }

.card {
    background: #fff;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    padding: 18px 24px;
    font-weight: 700;
    font-size: 1rem;
}

/* ===== Widget kod kartı (dashboard) ===== */
.iw-code-card {
    max-width: 500px;
    background: #1e1b3a;
    background-image: linear-gradient(160deg, #262247 0%, #1a1830 100%);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(26,24,48,.18);
}

.iw-code-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.iw-dots { display: flex; gap: 5px; flex-shrink: 0; }
.iw-dots i {
    width: 9px; height: 9px;
    border-radius: 50%;
    display: block;
}
.iw-dots i:nth-child(1) { background: #ff5f57; }
.iw-dots i:nth-child(2) { background: #febc2e; }
.iw-dots i:nth-child(3) { background: #28c840; }

.iw-code-title {
    flex: 1;
    color: rgba(255,255,255,.55);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .4px;
    white-space: nowrap;
}
.iw-code-title i { opacity: .7; margin-right: 2px; }

.iw-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .18s, transform .12s, box-shadow .18s;
}
.iw-copy-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(108,99,255,.4);
}
.iw-copy-btn:active { transform: scale(.96); }
.iw-copy-btn.copied {
    background: #22c55e;
    box-shadow: 0 4px 12px rgba(34,197,94,.35);
}

.iw-code-body {
    margin: 0;
    padding: 14px 16px;
    max-height: 130px;
    overflow: auto;
    color: #d9d6ff;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: .72rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-all;
    tab-size: 2;
}
.iw-code-body code { color: inherit; background: none; padding: 0; }
.iw-code-body::-webkit-scrollbar { width: 6px; }
.iw-code-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.16);
    border-radius: 3px;
}

.iw-code-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 9px 14px;
    background: rgba(108,99,255,.14);
    border-top: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.62);
    font-size: .7rem;
    line-height: 1.45;
}
.iw-code-hint i { color: var(--primary); margin-top: 1px; flex-shrink: 0; }

@media (max-width: 767px) {
    .iw-code-card { max-width: 100%; }
    .iw-code-body { display: none; }
    .iw-code-head { flex-wrap: wrap; }
    .iw-copy-btn { width: 100%; justify-content: center; padding: 9px 0; font-size: .85rem; }
    .iw-code-hint { border-top: none; }
}

/* Widget code box */
.widget-code-box {
    background: #1a1a2e;
    color: #a8ff78;
    border-radius: 10px;
    padding: 16px;
    font-family: monospace;
    font-size: .85rem;
    word-break: break-all;
    position: relative;
}
.copy-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: .78rem;
    cursor: pointer;
}

/* Instagram grid */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.ig-post {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.ig-post img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.ig-post:hover img { transform: scale(1.05); }
.ig-post .overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
    color: #fff; font-size: .85rem;
}
.ig-post:hover .overlay { opacity: 1; }

/* ─── Status badges ─── */
.badge-pending  { background: #fff3cd; color: #856404; padding: 4px 10px; border-radius: 50px; font-size: .78rem; }
.badge-active   { background: #d1e7dd; color: #0f5132; padding: 4px 10px; border-radius: 50px; font-size: .78rem; }
.badge-rejected { background: #f8d7da; color: #842029; padding: 4px 10px; border-radius: 50px; font-size: .78rem; }

/* ─── Alert flash ─── */
.flash-alert,
.alert {
    border-radius: 10px !important;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: .9rem;
    border: 1px solid transparent;
    display: block;
}

/* Success */
.flash-alert.alert-success,
.alert.alert-success,
.alert-success {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
    border-color: #a3cfbb !important;
}

/* Danger / Error */
.flash-alert.alert-danger,
.alert.alert-danger,
.alert-danger {
    background-color: #f8d7da !important;
    color: #842029 !important;
    border-color: #f1aeb5 !important;
}

/* Warning */
.flash-alert.alert-warning,
.alert.alert-warning,
.alert-warning {
    background-color: #fff3cd !important;
    color: #664d03 !important;
    border-color: #ffe69c !important;
}

/* Info */
.flash-alert.alert-info,
.alert.alert-info,
.alert-info {
    background-color: #cff4fc !important;
    color: #055160 !important;
    border-color: #9eeaf9 !important;
}

/* ─── Pending page ─── */
.pending-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--light-bg);
}

/* ─── Mobile Top Bar ─── */
.mobile-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    z-index: 200;
}

.hamburger-btn {
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    justify-content: center;
    align-items: center;
}
.hamburger-btn span {
    display: block;
    width: 22px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all .3s;
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .3s;
        z-index: 100;
        top: 0;
    }
    .sidebar.open { transform: translateX(0); }
    .main-content {
        margin-left: 0;
        padding: 76px 16px 20px;
    }
    .hero h1 { font-size: 1.9rem; }
    .pricing-card.popular { transform: scale(1); }
    .ig-grid { grid-template-columns: repeat(2, 1fr); }

    /* Widget kodu — mobilde kod metnini gizle, sadece buton göster */
    .widget-code-text { display: none; }
    .widget-copy-btn {
        position: static !important;
        transform: none !important;
        width: 100%;
        text-align: center;
        padding: 8px 0 !important;
        font-size: .85rem !important;
    }
    .widget-code-wrap {
        background: transparent !important;
        padding: 0 !important;
        border-radius: 8px !important;
    }
}
/* Sidebar Support Card */
.sidebar { display: flex; flex-direction: column; }
.sidebar-nav { flex: 1; }
.sidebar-support {
    margin: 16px;
    background: #33306d;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
}
.sidebar-support-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #1a73e8, #34a853);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.4rem;
    color: #ffffff;
}
.sidebar-support-title {
    font-weight: 700;
    font-size: .9rem;
    color: #efefef;
    margin-bottom: 6px;
    line-height: 1.4;
}
.sidebar-support-desc {
    font-size: .75rem;
    color: #d3d3d3;
    margin-bottom: 14px;
    line-height: 1.5;
}
.sidebar-support-btn {
    display: block;
    background: linear-gradient(135deg, #4285f4, #1a73e8, #34a853);
    color: #fff;
    border-radius: 50px;
    padding: 10px 14px;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
    transition: opacity .2s;
}
.sidebar-support-btn:hover { opacity: .88; color: #fff; }
