/* ========================================================
   Profile Page — Premium Dark UI
   ======================================================== */

.profile-page-wrapper {
    width: 100%;
    font-family: var(--font-main);
    animation: globalPageFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ─── Header Card ──────────────────────────────────────── */
.profile-header-card {
    background: var(--surface-800);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 5px 10px 0;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: color-mix(in srgb, var(--text-on-dark) 10%, transparent);
}

.phc-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 5px;
}

.phc-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phc-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-red);
    padding: 2px;
    background: var(--surface-800);
}

.phc-edit-btn {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-red);
    border: 2px solid var(--surface-800);
    color: var(--text-on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(var(--primary), 0.4);
}

.phc-edit-btn:hover {
    background: var(--brand-red-hover);
    transform: scale(1.1);
}

.phc-username {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-on-dark);
    letter-spacing: -0.01em;
}

.phc-email {
    font-size: 12px;
    color: var(--text-secondary);
}

.phc-role {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-on-dark);
    background: var(--brand-red);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(var(--primary), 0.3);
}

/* ─── Tabs ─────────────────────────────────────────────── */
.phc-tabs {
    display: flex;
    gap: 0px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.phc-tabs::-webkit-scrollbar {
    display: none;
}

.phc-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-main);
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phc-tab i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.phc-tab:hover {
    color: var(--text-on-dark);
}

.phc-tab:hover i {
    transform: translateY(-2px);
}

.phc-tab.active {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

/* ─── Tab Panes ─────────────────────────────────────────── */
.tab-pane {
    display: none;
    animation: fadeInTab 0.4s ease forwards;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tab-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 20px;
    color: var(--text-secondary);
    background: color-mix(in srgb, var(--surface-800) 40%, transparent);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.tab-coming-soon i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.2);
}

.tab-coming-soon p {
    font-size: 14px;
    font-weight: 500;
}

/* ─── Content Wrapper ──────────────────────────────────── */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ─── Verification Warning ─────────────────────────────── */
.verification-warning {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: color-mix(in srgb, var(--brand-red) 10%, transparent);
    border: 1px solid rgba(var(--primary), 0.2);
    border-left: 4px solid var(--brand-red);
    border-radius: 12px;
}

.vw-icon {
    font-size: 24px;
    color: var(--brand-red);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(var(--primary), 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vw-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-on-dark);
    line-height: 1.2;
    margin-bottom: 4px;
}

.vw-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* ─── Verification Cards Row ───────────────────────────── */
.verification-cards-row {
    display: flex;
    gap: 16px;
}

.v-card {
    flex: 1;
    background: color-mix(in srgb, var(--surface-800) 60%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.v-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.v-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.v-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-on-dark);
}

.v-card-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.v-card-status.not-verified {
    background: rgba(var(--primary), 0.15);
    color: var(--brand-red-mid);
    border: 1px solid rgba(var(--primary), 0.3);
}

.v-card-status.verified {
    background: color-mix(in srgb, var(--success-color, #10b981) 15%, transparent);
    color: var(--success-color, #10b981);
    border: 1px solid color-mix(in srgb, var(--success-color, #10b981) 30%, transparent);
}

.v-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex: 1;
}

.btn-verify-action {
    width: 100%;
    padding: 12px;
    background: rgba(var(--primary), 0.1);
    color: var(--brand-red-mid);
    border: 1px solid rgba(var(--primary), 0.3);
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: all 0.3s;
}

.btn-verify-action:hover {
    background: var(--brand-red);
    color: var(--text-on-accent, #000);
    border-color: var(--brand-red);
    box-shadow: 0 4px 15px rgba(var(--primary), 0.4);
}

/* ─── Phone Input ──────────────────────────────────────── */
.phone-input-group {
    display: flex;
    width: 100%;
    background: color-mix(in srgb, var(--surface-900) 60%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.phone-input-group:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
}

.phone-country {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: var(--text-on-dark);
    cursor: pointer;
    flex-shrink: 0;
}

.phone-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 14px;
    color: var(--text-on-dark);
    font-size: 13px;
    outline: none;
}

.phone-input::placeholder {
    color: var(--text-secondary);
}

/* ─── Social Verifications ─────────────────────────────── */
.social-verifications-section {
    background: color-mix(in srgb, var(--surface-800) 60%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
}

.sv-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.sv-list {
    display: flex;
    flex-direction: column;
}

.sv-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sv-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sv-item:first-child {
    padding-top: 0;
}

.sv-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-on-dark);
    min-width: 120px;
}

.sv-name svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.sv-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sv-input {
    background: color-mix(in srgb, var(--surface-900) 60%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-on-dark);
    font-size: 13px;
    width: 200px;
    outline: none;
    transition: all 0.3s;
}

.sv-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: color-mix(in srgb, var(--surface-900) 80%, transparent);
}

.sv-input::placeholder {
    color: var(--text-secondary);
}

.btn-verify-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.btn-verify-sm:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-link-account {
    background: #53FC18;
    color: var(--text-on-accent, #000);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(83, 252, 24, 0.3);
}

.btn-link-account:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(83, 252, 24, 0.4);
}

/* ─── Avatar Modal ─────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--surface-900) 85%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg, var(--surface-800));
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.1));
    width: min(90vw, 460px);
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 24px 60px color-mix(in srgb, var(--surface-900, #050505) 80%, transparent);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-title {
    color: var(--text-on-dark);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.avatar-options {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.avatar-option {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    padding: 2px;
    background: var(--surface-900, #050505);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: var(--border-soft, rgba(255, 255, 255, 0.1));
}

.avatar-option.selected {
    border-color: var(--brand-red);
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(var(--primary), 0.4);
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.btn-modal-cancel,
.btn-modal-save {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-modal-cancel {
    background: var(--border-subtle, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.1));
    color: var(--text-on-dark);
}

.btn-modal-cancel:hover {
    background: var(--surface-700, #1c1c1c);
    transform: translateY(-1px);
}

.btn-modal-save {
    background: var(--brand-red);
    border: 1px solid var(--brand-red);
    color: var(--text-on-accent, #000);
    box-shadow: 0 4px 15px rgba(var(--primary), 0.3);
}

.btn-modal-save:hover {
    background: var(--brand-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--primary), 0.4);
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .profile-page-wrapper {
        padding: 0;
        margin: 0;
    }

    .profile-header-card {
        padding: 20px 20px 0;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .phc-top {
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }

    .phc-avatar-wrap {
        margin: 0;
    }

    .phc-tabs {
        margin: 0 -20px;
    }

    .phc-tab {
        padding: 10px 7px;
        font-size: 10px;
    }

    .verification-cards-row {
        flex-direction: column;
        gap: 12px;
    }

    .social-verifications-section {
        padding: 16px;
        border-radius: 12px;
    }

    .sv-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
    }

    .sv-action {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sv-input {
        flex: 1;
        width: 100%;
        min-width: 100%;
        margin-bottom: 0;
    }

    .btn-verify-sm {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .btn-link-account {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

/* ─── Sipariş Geçmişim (Gecmisim Tab) ────────────────────── */
.gecmisim-container {
    background: transparent;
    padding: 0;
}

.order-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--surface-800);
}

.order-filter-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.order-filter-btn:hover {
    color: var(--text-on-dark);
    background: rgba(255, 255, 255, 0.05);
}

.order-filter-btn.active {
    background: rgba(var(--primary), 0.1);
    color: var(--brand-red);
    border: 1px solid rgba(var(--primary), 0.3);
}

.gecmisim-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: color-mix(in srgb, var(--surface-800) 60%, transparent);
}

.gecmisim-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.gecmisim-table thead tr {
    background: var(--brand-red);
    /* primary red */
}

.gecmisim-table th {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-on-dark);
    white-space: nowrap;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.gecmisim-table th:last-child {
    border-right: none;
}

.gecmisim-table td {
    padding: 16px;
    font-size: 14px;
    color: var(--text-on-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.gecmisim-table tbody tr:last-child td {
    border-bottom: none;
}

.gecmisim-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.gt-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gt-product img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gt-product span {
    font-weight: 600;
}

.ticket-codes-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.ticket-code-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(var(--primary), 0.1);
    color: var(--brand-red, #f59e0b);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(var(--primary), 0.2);
}

.ticket-code-chip i {
    margin-right: 4px;
}

.ticket-more-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
}

.ticket-go-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--brand-red, #f59e0b);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ticket-go-btn:hover {
    background: var(--brand-red-hover, #fbbf24);
    transform: translateY(-1px);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.pending {
    background: rgba(var(--primary), 0.15);
    color: var(--brand-red);
    border: 1px solid rgba(var(--primary), 0.3);
}

.status-badge.approved {
    background: color-mix(in srgb, var(--success-color, #10b981) 15%, transparent);
    color: var(--success-color, #10b981);
    border: 1px solid color-mix(in srgb, var(--success-color, #10b981) 30%, transparent);
}

.status-badge.rejected {
    background: color-mix(in srgb, var(--danger-color, #ef4444) 15%, transparent);
    color: var(--danger-color, #ef4444);
    border: 1px solid color-mix(in srgb, var(--danger-color, #ef4444) 30%, transparent);
}

/* Telegram Switch & Buttons */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface-600);
    transition: .4s;
    border-radius: 24px;
}
.switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-light);
    transition: .4s;
    border-radius: 50%;
}
.switch input:checked + .slider {
    background-color: var(--success-color);
}
.switch input:checked + .slider:before {
    transform: translateX(20px);
}

.telegram-btn-manage {
    width: 100%;
    background: color-mix(in srgb, var(--success-color) 10%, transparent);
    color: var(--success-color);
    border: 1px solid color-mix(in srgb, var(--success-color) 20%, transparent);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.telegram-btn-manage:hover {
    background: color-mix(in srgb, var(--success-color) 15%, transparent);
}

.telegram-btn-unlink {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color, #ef4444);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.telegram-btn-unlink:hover {
    background: rgba(239, 68, 68, 0.15);
}

.telegram-btn-confirm {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color, #ef4444);
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: pointer;
}

.telegram-btn-cancel {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    border: none;
    cursor: pointer;
}

.telegram-modal-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.telegram-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.telegram-modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.telegram-modal-title {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 4px;
}

.telegram-modal-desc {
    color: var(--text-secondary);
    font-size: 12px;
}