/* Account Tabs - Modern Design */
.account-tabs-shell {
    display: grid;
    gap: 1rem;
}

.account-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.75rem;
    border-radius: var(--radius-lg, 1.25rem);
    border: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.account-tabs::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.03) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.account-tabs button {
    position: relative;
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md, 0.75rem);
    color: var(--color-text-muted, rgba(226, 232, 240, 0.68));
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    white-space: nowrap;
    z-index: 1;
    overflow: hidden;
}

.account-tabs button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.account-tabs button:hover {
    color: var(--color-text, #e2e8f0);
    border-color: rgba(99, 102, 241, 0.2);
}

.account-tabs button:hover::before {
    opacity: 1;
}

.account-tabs button.active {
    background: linear-gradient(135deg, var(--color-primary, #6366f1) 0%, var(--color-secondary, #8b5cf6) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow:
        0 4px 20px rgba(99, 102, 241, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: translateY(-1px);
}

.account-tabs button.active::before {
    opacity: 0;
}

.account-tabs button .tab-icon {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    transition: transform 0.3s ease;
}

.account-tabs button .tab-icon .svg-icon {
    width: 100%;
    height: 100%;
}

.account-tabs button:hover .tab-icon {
    transform: scale(1.1);
}

.account-tabs button.active .tab-icon {
    transform: scale(1.15);
}

.tab-label {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.profile-section {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.account-address-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}
.account-address-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.account-address-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.account-address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.account-address-name {
    font-weight: 600;
    font-size: 1.1rem;
}
.account-address-badge {
    background: var(--accent-color, #00d4ff);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.account-address-details {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}
.account-address-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.orders-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}
.order-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.order-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.order-number {
    font-weight: 600;
    font-size: 1.1rem;
}
.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}
.order-status.pending { background: #fbbf24; color: #000; }
.order-status.processing { background: #3b82f6; color: #fff; }
.order-status.shipped { background: #38bdf8; color: #000; }
.order-status.delivered { background: #10b981; color: #fff; }
.order-status.completed { background: #10b981; color: #fff; }
.order-status.cancelled { background: #ef4444; color: #fff; }
.order-details {
    display: grid;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}
.order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color, #00d4ff);
}
.account-empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.5);
}
.account-empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.15rem;
    color: #e8f1ff;
    background: linear-gradient(180deg, rgba(91, 140, 255, 0.2), rgba(56, 189, 248, 0.06));
    border: 1px solid rgba(96, 165, 250, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 28px rgba(2, 6, 23, 0.16);
}

.account-empty-state-icon .svg-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.profile-card > .account-icon,
.account-card > .account-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.15rem;
    color: #e8f1ff;
    background: linear-gradient(180deg, rgba(91, 140, 255, 0.2), rgba(56, 189, 248, 0.06));
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 30px rgba(2, 6, 23, 0.18);
    font-size: 0;
}

.profile-card > .account-icon .svg-icon,
.account-card > .account-icon .svg-icon {
    width: 1.8rem;
    height: 1.8rem;
}

.auth-tab-btn .svg-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.45rem;
    vertical-align: -0.12em;
}
.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.address-form-wrapper {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Inline style replacements for CSP compliance */
.loading-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}
.address-description {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}
.address-form-title {
    margin-bottom: 1rem;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}
.checkbox-label-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.checkbox-label input[type="checkbox"],
.checkbox-label-login input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color, #00d4ff);
    flex-shrink: 0;
}
.checkbox-label span,
.checkbox-label-login span {
    cursor: pointer;
    user-select: none;
}
.success-message, .error-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}
.crypto-address {
    font-family: 'Courier New', monospace;
    word-break: break-all;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    user-select: all;
    display: inline-block;
    margin-top: 0.25rem;
}
.payment-hint {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.payment-amount-highlight {
    font-size: 1.1em;
    color: var(--color-accent);
}

.payment-warning-note {
    color: #facc15;
}

.detail-title .svg-icon,
.license-delivery-title .svg-icon,
.payment-hint .svg-icon,
.order-details .svg-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.45rem;
    vertical-align: -0.12em;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
.order-total-row {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
}
.total-amount {
    color: var(--accent-color, #00d4ff);
}
.btn-full-width {
    margin-top: 1rem;
    width: 100%;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}
.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
.license-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}
.license-key {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #10b981;
    margin: 0.5rem 0;
    display: block;
}
.detail-section {
    margin-bottom: 2rem;
}
.detail-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color, #00d4ff);
}
.item-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive Tabs */
@media (max-width: 768px) {
    .account-tabs {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
        border-radius: var(--radius-md, 0.75rem);
    }

    .account-tabs button {
        width: 100%;
        padding: 0.9rem 1rem;
        justify-content: flex-start;
        font-size: 0.875rem;
        border-radius: var(--radius-sm, 0.5rem);
    }

    .account-tabs button.active {
        transform: none;
    }

    .profile-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .account-address-list,
    .orders-list {
        gap: 0.75rem;
    }

    .account-address-item,
    .order-item {
        padding: 1rem;
    }

    .account-address-header,
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .account-address-actions,
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .account-address-actions button,
    .btn-group button {
        width: 100%;
        padding: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
.btn-flex {
    flex: 1;
}
.cancel-order-wrapper {
    margin-top: 1rem;
    text-align: right;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.page-button {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.page-button:hover {
    background: rgba(255, 255, 255, 0.1);
}
.page-button.active {
    background: var(--accent-color, #00d4ff);
    color: #000;
    border-color: var(--accent-color, #00d4ff);
}
/* Giriş / Kayıt sekme geçişi */
.auth-tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.5rem;
    border-radius: var(--radius-lg, 1.25rem);
    border: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(12px);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.auth-tab-btn {
    flex: 1;
    padding: 0.7rem 1.2rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md, 0.75rem);
    color: var(--color-text-muted, rgba(226, 232, 240, 0.68));
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.auth-tab-btn.active {
    background: linear-gradient(135deg, var(--color-primary, #6366f1) 0%, var(--color-secondary, #8b5cf6) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.auth-tab-btn:not(.active):hover {
    color: var(--color-text, #e2e8f0);
    border-color: rgba(99, 102, 241, 0.2);
}
/* Auth form: tek kart görünümünde genişlik sınırla, ortala */
.account-grid:has(.auth-form-card) {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.auth-form-card {
    /* Hover kaldırma efektini söndür — odak formdaki alanlarda olsun */
    transition: border-color var(--transition-base);
}
.auth-form-card:hover {
    transform: none;
}
