* {
    box-sizing: border-box;
}

:root {
    --wine: #6f1725;
    --wine-dark: #4d0e18;
    --bg: #f3f4f6;
    --text: #1d1d1f;
    --muted: #6b7280;
    --border: #e5e7eb;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.admin-bg {
    background: var(--bg);
    min-height: 100vh;
}

.admin-wrap {
    width: min(1200px, calc(100% - 40px));
    margin: auto;
    padding: 40px 0;
}

.admin-wrap.narrow {
    max-width: 850px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}

.admin-header h1 {
    margin: 0 0 5px;
}

.admin-header p {
    margin: 0;
    color: var(--muted);
}

.header-actions,
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    border: 0;
    background: var(--wine);
    color: white;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 10px;
    cursor: pointer;
}

.btn.secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn.ghost {
    background: transparent;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.stat b {
    display: block;
    font-size: 32px;
}

.stat span {
    color: var(--muted);
}

.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
}

.panel h2 {
    margin-top: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 13px;
}

.actions a {
    color: var(--wine);
    text-decoration: none;
}

.table-scroll {
    overflow-x: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.form-grid label {
    font-size: 13px;
    font-weight: 600;
}

.form-grid input {
    width: 100%;
    display: block;
    margin-top: 6px;
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 9px;
}

.full {
    grid-column: 1/-1;
}

.checkbox input {
    width: auto;
    display: inline;
}

.login-box {
    width: min(390px, calc(100% - 30px));
    margin: 12vh auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
}

.login-box h1 {
    margin-bottom: 2px;
}

.login-box p {
    color: var(--muted);
    margin-top: 0;
}

.login-box input {
    width: 100%;
    padding: 13px;
    margin: 6px 0;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.login-box button {
    width: 100%;
    padding: 13px;
    border: 0;
    border-radius: 9px;
    background: var(--wine);
    color: white;
    margin-top: 10px;
}

.error {
    background: #fee2e2;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* PUBLIC CARD */

.card-body {
    min-height: 100vh;
    background:
      radial-gradient(circle at top, #9a3344, var(--wine-dark) 42%, #ececec 42%);
    padding: 35px 15px;
}

.card-shell {
    width: min(430px, 100%);
    margin: auto;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,.22);
}

.hero {
    padding: 34px 24px 24px;
    text-align: center;
}

.brand {
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--wine);
    margin-bottom: 24px;
}

.avatar {
    width: 122px;
    height: 122px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 4px 20px rgba(0,0,0,.16);
}

.avatar.placeholder {
    display: grid;
    place-items: center;
    margin: auto;
    background: var(--wine);
    color: white;
    font-size: 42px;
}

.hero h1 {
    font-size: 25px;
    margin: 16px 0 6px;
}

.job {
    font-size: 14px;
    color: var(--muted);
}

.company {
    margin-top: 5px;
    font-weight: 600;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 7px;
    padding: 0 18px 20px;
}

.quick-actions a {
    text-decoration: none;
    text-align: center;
    color: var(--wine);
}

.quick-actions span {
    width: 48px;
    height: 48px;
    margin: auto auto 5px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f7ecee;
    font-size: 19px;
}

.quick-actions small {
    font-size: 11px;
}

.save-contact {
    display: block;
    margin: 0 22px;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    background: var(--wine);
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 22px 25px;
    gap: 10px;
}

.secondary-actions button {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
}

.lead-box {
    background: #f7f7f8;
    padding: 24px 22px 30px;
}

.lead-box h2 {
    margin: 0;
    font-size: 20px;
}

.lead-box p {
    color: var(--muted);
    font-size: 13px;
}

.lead-box input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px;
    margin-bottom: 9px;
    background: white;
}

.lead-box button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 14px;
    background: var(--wine);
    color: white;
    font-weight: 700;
}

.consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 11px;
    color: var(--muted);
    margin: 8px 0 14px;
}

.consent input {
    width: auto;
    margin: 1px 0;
}

.success {
    margin: 0 22px 15px;
    padding: 12px;
    background: #dcfce7;
    border-radius: 10px;
    font-size: 13px;
}

.qr-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    place-items: center;
    padding: 20px;
}

.qr-modal.open {
    display: grid;
}

.qr-window {
    width: min(340px,100%);
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    position: relative;
}

.qr-window img {
    width: 230px;
    max-width: 100%;
}

.close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: none;
    border: 0;
    font-size: 28px;
}

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

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

    .full {
        grid-column: auto;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }
}


.brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 58px;
    margin-bottom: 22px;
}

.brand-logo {
    display: block;
    object-fit: contain;
    max-width: 100%;
}

.zorel-logo {
    width: 145px;
    max-height: 58px;
}

.farmeq-logo {
    width: 125px;
    max-height: 52px;
}

@media(max-width:480px) {
    .brand-logos {
        gap: 16px;
    }

    .zorel-logo {
        width: 135px;
    }

    .farmeq-logo {
        width: 115px;
    }
}

/* Kart üzerindeki kurumsal logolar */
.profile-card .brand-logos {
    margin-top: 10px;
    margin-bottom: 22px;
    min-height: 42px;
    gap: 18px;
}

.profile-card .zorel-logo {
    width: 125px;
    max-height: 48px;
}

.profile-card .farmeq-logo {
    width: 112px;
    max-height: 44px;
}

/* ===== Public card refinement ===== */

.profile-card .brand-logos,
.hero .brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 46px;
    margin-top: 0;
    margin-bottom: 20px;
}

.profile-card .zorel-logo,
.hero .zorel-logo {
    width: 112px;
    max-height: 44px;
}

.profile-card .farmeq-logo,
.hero .farmeq-logo {
    width: 100px;
    max-height: 40px;
}

/* gerçek iletişim ikonları */
.quick-actions .action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-actions .action-icon img {
    width: 21px;
    height: 21px;
    display: block;
}

@media (max-width: 480px) {
    .profile-card .brand-logos,
    .hero .brand-logos {
        gap: 12px;
        margin-bottom: 18px;
    }

    .profile-card .zorel-logo,
    .hero .zorel-logo {
        width: 106px;
    }

    .profile-card .farmeq-logo,
    .hero .farmeq-logo {
        width: 94px;
    }
}

/* Farmeq logosunu Zorel ile optik olarak ortala */
.hero .farmeq-logo {
    transform: translateY(4px);
}

/* 5'li iletişim aksiyonları */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-items: start;
}

.quick-actions a {
    min-width: 0;
    text-align: center;
}

.quick-actions .action-icon {
    margin: 0 auto 7px;
}

.quick-actions .action-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.quick-actions small {
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .quick-actions {
        gap: 6px;
    }

    .quick-actions small {
        font-size: 11px;
    }

    .quick-actions .action-icon img {
        width: 21px;
        height: 21px;
    }
}

/* İletişim ikonlarını mevcut sayıya göre otomatik ortala */
.quick-actions {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 34px;
}

.quick-actions a {
    flex: 0 0 66px;
    min-width: 0;
    text-align: center;
}

@media (max-width: 480px) {
    .quick-actions {
        gap: 10px;
        justify-content: space-evenly;
    }

    .quick-actions a {
        flex: 0 1 62px;
    }
}

/* ===== Kart ana aksiyon butonları ===== */

.save-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 18px;
    transition:
        transform .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.save-contact img {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) invert(1);
}

.save-contact:hover {
    background: var(--wine-dark);
    box-shadow: 0 7px 18px rgba(111, 23, 37, .18);
}

.save-contact:active {
    transform: translateY(1px);
}

.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 22px 25px;
    gap: 10px;
}

.secondary-actions button {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;

    font: inherit;
    color: #222;
    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.secondary-actions button img {
    width: 19px;
    height: 19px;
    display: block;

    /* Zorel bordo tonu */
    filter: invert(12%) sepia(43%) saturate(3868%)
            hue-rotate(326deg) brightness(84%) contrast(94%);
}

.secondary-actions button:hover {
    border-color: var(--wine);
    background: #fcf7f8;
    box-shadow: 0 5px 14px rgba(111, 23, 37, .08);
}

.secondary-actions button:active {
    transform: translateY(1px);
}

/* İletişim ikonları - kompakt ve ortalanmış */
.quick-actions {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    padding-left: 16px;
    padding-right: 16px;
}

.quick-actions a {
    flex: 0 0 62px;
    width: 62px;
    min-width: 62px;
    text-align: center;
}

.quick-actions .action-icon {
    margin: 0 auto 6px;
}

.quick-actions small {
    display: block;
    font-size: 11px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .quick-actions {
        gap: 5px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .quick-actions a {
        flex-basis: 60px;
        width: 60px;
        min-width: 60px;
    }

    .quick-actions small {
        font-size: 10.5px;
    }
}


/* ==========================================================
   PERSONEL KAYIT
   ========================================================== */

.register-body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(
            180deg,
            #74192a 0,
            #74192a 240px,
            #f5f5f5 240px,
            #f5f5f5 100%
        );
    font-family: Arial, Helvetica, sans-serif;
    color: #272727;
}

.register-shell {
    width: min(92%, 680px);
    margin: 0 auto;
    padding: 42px 0 70px;
}

.register-brand {
    text-align: center;
    color: white;
    margin-bottom: 24px;
}

.register-brand .brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.register-brand .zorel-logo {
    width: 118px;
}

.register-brand .farmeq-logo {
    width: 105px;
    transform: translateY(4px);
}

.register-brand h1 {
    margin: 0;
    font-size: 27px;
}

.register-brand p {
    margin: 7px 0 0;
    opacity: .9;
}

.register-form,
.register-success {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow:
        0 15px 45px rgba(0,0,0,.12);
}

.register-section {
    margin-bottom: 28px;
}

.register-section h2 {
    font-size: 17px;
    color: #74192a;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.register-form label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 17px;
}

.register-form input {
    box-sizing: border-box;
    width: 100%;
    margin-top: 7px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 15px;
    background: white;
}

.register-form input:focus {
    outline: none;
    border-color: #74192a;
    box-shadow: 0 0 0 3px rgba(116,25,42,.08);
}

.register-form label small {
    display: block;
    font-weight: 400;
    color: #777;
    margin-top: 6px;
    line-height: 1.4;
}

.register-photo input {
    display: none;
}

.register-photo {
    border: 2px dashed #d7c1c5;
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    cursor: pointer;
    background: #fffafb;
}

.register-photo > span {
    display: block;
    color: #74192a;
    font-size: 15px;
}

.register-photo-preview {
    text-align: center;
    margin-top: 15px;
}

.register-photo-preview img {
    width: 125px;
    height: 125px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.register-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: #f8f4f5;
    border-radius: 10px;
    margin-bottom: 20px;
}

.register-info b {
    color: #74192a;
}

.register-info span {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.register-submit {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #74192a;
    color: white;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.register-submit:hover {
    opacity: .94;
}

.register-footer-note {
    margin: 16px 0 0;
    text-align: center;
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}

.register-error {
    background: #fff1f2;
    color: #9c1c2f;
    border: 1px solid #efc7cd;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.register-success {
    text-align: center;
}

.register-success-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: #edf7ef;
    color: #287a3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
}

.register-success h2 {
    color: #74192a;
    margin: 0 0 14px;
}

.register-success p {
    color: #555;
    line-height: 1.55;
}

.register-success-note {
    margin-top: 20px;
    padding: 13px;
    border-radius: 10px;
    background: #f7f7f7;
    font-size: 13px;
    color: #666;
}


/* ADMIN STATUS */

.status-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge.active {
    background: #e8f6ec;
    color: #26743a;
}

.status-badge.pending {
    background: #fff3d8;
    color: #8a5a00;
}


@media (max-width: 600px) {

    .register-shell {
        width: calc(100% - 26px);
        padding-top: 30px;
    }

    .register-form,
    .register-success {
        padding: 21px 18px;
        border-radius: 17px;
    }

    .register-brand .zorel-logo {
        width: 105px;
    }

    .register-brand .farmeq-logo {
        width: 94px;
    }

    .register-brand h1 {
        font-size: 23px;
    }

}



/* ==========================================================
   ORTA EKRAN KAYIT UYARISI
   ========================================================== */

.register-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(24, 10, 13, .58);
    backdrop-filter: blur(3px);
}

.register-alert-box {
    width: min(90vw, 420px);
    background: #fff;
    border-radius: 20px;
    padding: 30px 26px 25px;
    text-align: center;
    box-shadow: 0 22px 70px rgba(0,0,0,.28);
}

.register-alert-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3d8;
    color: #a26900;
    font-size: 34px;
    font-weight: 800;
}

.register-alert-box h3 {
    margin: 0 0 10px;
    color: #74192a;
    font-size: 21px;
}

.register-alert-box p {
    margin: 0;
    color: #454545;
    line-height: 1.55;
}

.register-alert-box button {
    margin-top: 22px;
    min-width: 125px;
    border: 0;
    border-radius: 10px;
    padding: 12px 22px;
    background: #74192a;
    color: white;
    font-weight: 700;
    cursor: pointer;
}


/* ==========================================================
   TELEFON + ÜLKE KODU
   ========================================================== */

.phone-row {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 8px;
    margin-top: 7px;
}

.register-form .phone-row input,
.register-form .phone-row select {
    margin-top: 0;
}

.country-code {
    width: 100%;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    padding: 13px 9px;
    background: white;
    font-size: 14px;
}


/* ==========================================================
   LEAD COUNTRY / PHONE
   ========================================================== */

.lead-field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.lead-country-select {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 13px 12px;
    background: white;
    font-size: 15px;
}

.lead-phone-row {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 8px;
}

.lead-dial-code {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f7f7f7;
    color: #74192a;
    font-weight: 700;
}

.lead-phone-row input {
    margin: 0 !important;
}


@media (max-width: 480px) {

    .phone-row {
        grid-template-columns: 104px 1fr;
    }

    .country-code {
        padding-left: 7px;
        padding-right: 7px;
    }

}



/* ==========================================================
   COUNTRY JSON SELECT
   ========================================================== */

.country-select,
.lead-country-select {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    padding: 13px 10px;
    background: #fff;
    color: #242424;
    font-size: 14px;
    cursor: pointer;
}

.country-select:focus,
.lead-country-select:focus {
    outline: none;
    border-color: #74192a;
    box-shadow:
        0 0 0 3px rgba(116, 25, 42, .08);
}


.phone-row {
    display: grid;
    grid-template-columns:
        minmax(180px, 230px)
        1fr;
    gap: 8px;
    margin-top: 7px;
}

.register-form .phone-row input,
.register-form .phone-row select {
    margin-top: 0;
}


.lead-field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
}


.lead-country-select {
    margin-top: 7px;
}


.lead-phone-row {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 8px;
}


.lead-dial-code {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f7f7f7;
    color: #74192a;
    font-weight: 700;
}


.lead-phone-row input {
    margin: 0 !important;
}


/* ==========================================================
   CODE BY
   ========================================================== */

.code-by {
    margin: 24px auto 5px;
    text-align: center;
    font-size: 11px;
    letter-spacing: .15px;
    color: #969696;
    user-select: none;
}

.code-by span {
    color: #74192a;
    font-weight: 700;
}


@media (max-width: 600px) {

    .phone-row {
        grid-template-columns: 1fr;
    }

    .country-select {
        font-size: 14px;
    }

    .code-by {
        margin-top: 20px;
        font-size: 10.5px;
    }

}



/* ==========================================================
   COUNTRY JSON SELECT
   ========================================================== */

.country-select,
.lead-country-select {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    padding: 13px 10px;
    background: #fff;
    color: #242424;
    font-size: 14px;
    cursor: pointer;
}

.country-select:focus,
.lead-country-select:focus {
    outline: none;
    border-color: #74192a;
    box-shadow:
        0 0 0 3px rgba(116, 25, 42, .08);
}


.phone-row {
    display: grid;
    grid-template-columns:
        minmax(180px, 230px)
        1fr;
    gap: 8px;
    margin-top: 7px;
}

.register-form .phone-row input,
.register-form .phone-row select {
    margin-top: 0;
}


.lead-field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
}


.lead-country-select {
    margin-top: 7px;
}


.lead-phone-row {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 8px;
}


.lead-dial-code {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f7f7f7;
    color: #74192a;
    font-weight: 700;
}


.lead-phone-row input {
    margin: 0 !important;
}


/* ==========================================================
   CODE BY
   ========================================================== */

.code-by {
    margin: 24px auto 5px;
    text-align: center;
    font-size: 11px;
    letter-spacing: .15px;
    color: #969696;
    user-select: none;
}

.code-by span {
    color: #74192a;
    font-weight: 700;
}


@media (max-width: 600px) {

    .phone-row {
        grid-template-columns: 1fr;
    }

    .country-select {
        font-size: 14px;
    }

    .code-by {
        margin-top: 20px;
        font-size: 10.5px;
    }

}



/* ==========================================================
   PROFESSIONAL COUNTRY PICKER
   ========================================================== */

.country-picker {
    position: relative;
    width: 100%;
}


.country-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}


.country-picker-trigger {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 12px;

    border: 1px solid #d6d6d6;
    border-radius: 10px;

    background: #fff;
    color: #242424;

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
    text-align: left;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}


.country-picker-trigger:hover {
    border-color: #b8b8b8;
}


.country-picker.open
.country-picker-trigger {
    border-color: #74192a;

    box-shadow:
        0 0 0 3px
        rgba(116, 25, 42, .08);
}


.country-picker-current {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
}


.country-picker-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.country-picker-code {
    flex: 0 0 auto;
    color: #74192a;
    font-weight: 700;
}


.country-picker-arrow {
    flex: 0 0 auto;

    margin-left: 2px;

    color: #777;
    font-size: 12px;

    transition:
        transform .15s ease;
}


.country-picker.open
.country-picker-arrow {
    transform: rotate(180deg);
}


.country-flag {
    width: 25px;
    height: 18px;

    flex: 0 0 25px;

    object-fit: cover;

    border-radius: 3px;

    box-shadow:
        0 0 0 1px
        rgba(0, 0, 0, .08);
}


.country-picker-dropdown {
    position: absolute;

    top: calc(100% + 7px);
    left: 0;

    width: 100%;

    z-index: 9999;

    display: none;

    overflow: hidden;

    border:
        1px solid #dddddd;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 16px 36px
        rgba(0, 0, 0, .15);
}


.country-picker.open
.country-picker-dropdown {
    display: block;
}


.country-picker-search-wrap {
    padding: 10px;

    border-bottom:
        1px solid #eeeeee;

    background:
        #ffffff;
}


.country-picker-search {
    box-sizing: border-box;

    width: 100%;

    height: 42px;

    margin: 0 !important;

    padding: 0 12px !important;

    border:
        1px solid #d7d7d7 !important;

    border-radius:
        9px !important;

    background:
        #fafafa !important;

    font-family: inherit;
    font-size: 14px;
}


.country-picker-search:focus {
    outline: none;

    border-color:
        #74192a !important;

    box-shadow:
        0 0 0 3px
        rgba(116, 25, 42, .07);
}


.country-picker-list {
    max-height: 310px;

    overflow-y: auto;

    overscroll-behavior:
        contain;
}


.country-picker-item {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 10px 12px;

    border: 0;

    border-bottom:
        1px solid #f1f1f1;

    background: #ffffff;
    color: #222222;

    font-family: inherit;
    font-size: 14px;

    text-align: left;

    cursor: pointer;
}


.country-picker-item:last-child {
    border-bottom: 0;
}


.country-picker-item:hover {
    background: #f7f3f4;
}


.country-picker-item.selected {
    background:
        rgba(116, 25, 42, .07);
}


.country-picker-item-left {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;
}


.country-picker-item-left span {
    overflow: hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.country-picker-item-code {
    flex: 0 0 auto;

    color: #74192a;

    font-weight: 700;
}


.country-picker-empty {
    padding: 20px;

    text-align: center;

    color: #888;

    font-size: 13px;
}


@media (max-width: 600px) {

    .country-picker-dropdown {
        min-width: 100%;
    }

    .country-picker-list {
        max-height: 280px;
    }

    .country-picker-trigger {
        min-height: 46px;
    }

}



/* ==========================================================
   PUBLIC CARD COUNTRY PICKER - BUTTON STYLE ISOLATION
   Genel lead buton stillerinin country picker'a bulaşmasını önler.
   ========================================================== */

.lead-form .country-picker .country-picker-trigger,
.lead-form .country-picker button.country-picker-trigger {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #222222 !important;

    border: 1px solid #d6d6d6 !important;
    border-radius: 10px !important;

    box-shadow: none;

    font-weight: 600 !important;
}


.lead-form .country-picker.open .country-picker-trigger {
    background: #ffffff !important;
    background-color: #ffffff !important;

    border-color: #74192a !important;

    box-shadow:
        0 0 0 3px
        rgba(116, 25, 42, .08) !important;
}


.lead-form .country-picker .country-picker-current,
.lead-form .country-picker .country-picker-name {
    color: #222222 !important;
}


.lead-form .country-picker .country-picker-code {
    color: #74192a !important;
    background: transparent !important;
}


.lead-form .country-picker .country-picker-arrow {
    color: #777777 !important;
    background: transparent !important;
}


/* Dropdown ana kutu */

.lead-form .country-picker .country-picker-dropdown {
    background: #ffffff !important;
    background-color: #ffffff !important;
}


/* Arama alanı */

.lead-form .country-picker .country-picker-search-wrap {
    background: #ffffff !important;
}


.lead-form .country-picker .country-picker-search {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #222222 !important;
}


/* Ülke satırları */

.lead-form .country-picker button.country-picker-item,
.lead-form .country-picker .country-picker-item {
    background: #ffffff !important;
    background-color: #ffffff !important;

    color: #222222 !important;

    border: 0 !important;
    border-bottom: 1px solid #eeeeee !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    font-weight: 500 !important;
}


/* Hover */

.lead-form .country-picker button.country-picker-item:hover {
    background: #f8f4f5 !important;
    background-color: #f8f4f5 !important;

    color: #222222 !important;
}


/* Seçili ülke: bordo dolgu YOK */

.lead-form .country-picker button.country-picker-item.selected,
.lead-form .country-picker .country-picker-item.selected {
    background: #f6edef !important;
    background-color: #f6edef !important;

    color: #222222 !important;

    box-shadow:
        inset 3px 0 0 #74192a !important;
}


.lead-form .country-picker .country-picker-item-left,
.lead-form .country-picker .country-picker-item-left span {
    color: #222222 !important;
}


.lead-form .country-picker .country-picker-item-code {
    color: #74192a !important;
    background: transparent !important;

    font-weight: 700 !important;
}


/* Bayrağın üzerine de genel stiller bulaşmasın */

.lead-form .country-picker .country-flag {
    opacity: 1 !important;
    filter: none !important;
}


/* Form butonu sadece gerçek gönder butonuna bordo kalsın */

.lead-form > button[type="submit"],
.lead-form .lead-submit {
    background: #74192a;
    color: #ffffff;
}



/* ==========================================================
   COUNTRY PICKER FINAL OVERRIDE
   Public karttaki genel button stillerini kesin olarak ezer.
   ========================================================== */


/* Seçili ülke ana kutusu */
body .lead-form .country-picker > button.country-picker-trigger,
body .lead-form button.country-picker-trigger,
body .country-picker > button.country-picker-trigger {
    appearance: none !important;
    -webkit-appearance: none !important;

    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;

    color: #222222 !important;

    border: 1px solid #d6d6d6 !important;
    border-radius: 10px !important;

    box-shadow: none !important;

    font-weight: 600 !important;
}


/* Picker açıkken */
body .lead-form .country-picker.open > button.country-picker-trigger,
body .country-picker.open > button.country-picker-trigger {
    background: #ffffff !important;
    background-color: #ffffff !important;

    color: #222222 !important;

    border-color: #74192a !important;

    box-shadow:
        0 0 0 3px
        rgba(116, 25, 42, .08) !important;
}


/* Seçili ülkenin içindeki yazılar */
body .country-picker-trigger *,
body .lead-form .country-picker-trigger * {
    background: transparent !important;
}


body .country-picker-trigger .country-picker-name {
    color: #222222 !important;
}


body .country-picker-trigger .country-picker-code {
    color: #74192a !important;
}


body .country-picker-trigger .country-picker-arrow {
    color: #777777 !important;
}


/* Dropdown */
body .lead-form .country-picker-dropdown,
body .country-picker-dropdown {
    background: #ffffff !important;
    background-color: #ffffff !important;

    border: 1px solid #dddddd !important;

    box-shadow:
        0 14px 34px
        rgba(0, 0, 0, .14) !important;
}


/* Arama bölümü */
body .country-picker-search-wrap {
    background: #ffffff !important;
    background-color: #ffffff !important;
}


body .country-picker-search {
    background: #ffffff !important;
    background-color: #ffffff !important;

    color: #222222 !important;

    border: 1px solid #d6d6d6 !important;
}


/* ==========================================================
   ÜLKE SATIRLARI
   ========================================================== */

body .lead-form .country-picker-list > button.country-picker-item,
body .country-picker-list > button.country-picker-item {
    appearance: none !important;
    -webkit-appearance: none !important;

    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;

    color: #222222 !important;

    border: 0 !important;
    border-bottom: 1px solid #eeeeee !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    outline: none !important;

    font-weight: 500 !important;

    opacity: 1 !important;
}


/* Satırın içindeki span'lara bordo bulaşmasın */
body .country-picker-list > button.country-picker-item *,
body .lead-form .country-picker-list > button.country-picker-item * {
    background: transparent !important;
}


body .country-picker-list
.country-picker-item-left,

body .country-picker-list
.country-picker-item-left span {
    color: #222222 !important;
}


/* Telefon kodu */
body .country-picker-list
.country-picker-item-code {
    color: #74192a !important;
    font-weight: 700 !important;
}


/* Mouse üzerine gelince */
body .lead-form .country-picker-list > button.country-picker-item:hover,
body .country-picker-list > button.country-picker-item:hover {
    background: #faf6f7 !important;
    background-color: #faf6f7 !important;

    color: #222222 !important;
}


/* Seçili ülke */
body .lead-form .country-picker-list > button.country-picker-item.selected,
body .country-picker-list > button.country-picker-item.selected {
    background: #f7eef0 !important;
    background-color: #f7eef0 !important;

    color: #222222 !important;

    box-shadow:
        inset 3px 0 0
        #74192a !important;
}


/* Seçili ülke hover */
body .lead-form .country-picker-list > button.country-picker-item.selected:hover,
body .country-picker-list > button.country-picker-item.selected:hover {
    background: #f4e8eb !important;
    background-color: #f4e8eb !important;
}


/* Bayraklar */
body .country-picker .country-flag {
    background: transparent !important;

    opacity: 1 !important;

    filter: none !important;
}


/* Gerçek form gönder butonu bordo kalır */
body .lead-form > button[type="submit"] {
    background: #74192a !important;
    background-color: #74192a !important;

    color: #ffffff !important;
}



/* ZOREL COMPANY DIRECTORY */

.kpi-number {
    display: block;
    font-size: 21px;
    color: var(--wine);
}

.kpi-date {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
}

.directory-head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.directory-head > div {
    background: #f7f7f7;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 10px;
}

.directory-head b {
    color: var(--wine);
}

.directory-head span {
    color: var(--muted);
    font-size: 13px;
}

.directory-sub {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.directory-link {
    color: var(--wine);
    text-decoration: none;
}

.directory-save {
    display: inline-block;
    background: var(--wine);
    color: white !important;
    text-decoration: none;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.directory-empty {
    text-align: center;
    color: var(--muted);
    padding: 35px 15px;
}

@media(max-width:700px) {

    .personnel-stats-table th,
    .personnel-stats-table td,
    .directory-table th,
    .directory-table td {
        padding: 11px 8px;
    }

    .kpi-number {
        font-size: 18px;
    }
}

/* ADMIN - PERSONEL KARTLARI İŞLEM HİZASI */
.personnel-stats-table td.actions {
    vertical-align: middle;
    white-space: nowrap;
    padding-top: 20px;
}

.personnel-stats-table td.actions a {
    display: inline-block;
    margin-right: 7px;
}

.personnel-stats-table td.actions a:last-child {
    margin-right: 0;
}



/* INSTANT EXCHANGE CARD */

.exchange-success {
    margin: 18px 22px;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid #eadde0;
    border-radius: 14px;
    text-align: center;
}

.exchange-check {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f6eb;
    color: #26753b;
    font-size: 23px;
    font-weight: 800;
}

.exchange-success h3 {
    margin: 0 0 8px;
    color: var(--wine);
    font-size: 17px;
}

.exchange-success p {
    margin: 0 0 13px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.exchange-person {
    padding: 12px;
    margin: 12px 0;
    background: #faf7f8;
    border-radius: 10px;
}

.exchange-person > strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.exchange-person span {
    display: block;
    margin-top: 2px;
    color: #666;
    font-size: 12px;
}

.exchange-save {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--wine);
    color: #fff !important;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

.exchange-save img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}



/* EXCHANGE FINISH */

.exchange-close {
    width: 100%;
    min-height: 44px;
    margin-top: 9px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    color: #555;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.exchange-close:hover {
    background: #f7f7f7;
    border-color: #c8c8c8;
}

