/* account/index.php — винесено з inline <style> 20260908_2104 */
.account-section {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}
.account-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #000;
}

/* --- ФОРМА ВХОДУ --- */
.login-wrapper {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.login-title { font-size: 20px; font-weight: 600; margin-bottom: 0.5rem; color: #000; text-align: center; }
.login-subtitle { font-size: 14px; color: #666; margin-bottom: 1.5rem; text-align: center; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: #333; margin-bottom: 6px; }
.form-input {
    width: 100%; padding: 12px 16px; font-size: 16px;
    border: 2px solid #e0e0e0; border-radius: 8px; outline: none;
    transition: border-color 0.2s; box-sizing: border-box; background: #fafafa;
}
.form-input:focus { border-color: #4A90E2; background: #fff; }
.form-input::placeholder { color: #999; }
.btn-primary {
    width: 100%; padding: 12px; font-size: 16px; font-weight: 600;
    color: #fff; background: #000; border: none; border-radius: 8px;
    cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: #333; }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.form-error { color: #EF4444; font-size: 13px; margin-top: 8px; display: none; text-align: center; }
.form-error.show { display: block; }
.code-timer { font-size: 13px; color: #666; margin-top: 8px; text-align: center; }
.resend-link { color: #4A90E2; cursor: pointer; text-decoration: underline; font-size: 13px; }
.resend-link:hover { color: #2563EB; }

/* --- HEADER КАБІНЕТУ --- */
.account-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.account-phone { font-size: 16px; color: #333; }
.account-phone strong { font-weight: 600; }
.btn-logout {
    padding: 8px 20px; font-size: 14px; color: #666; background: #f5f5f5;
    border: 1px solid #ddd; border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.btn-logout:hover { background: #eee; color: #333; }

/* --- КАРТКА ЗАМОВЛЕННЯ --- */
.orders-list { display: flex; flex-direction: column; gap: 1.5rem; }
.order-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden; border: 1px solid #f0f0f0;
}

/* Кольоровий хедер зі статусом */
.order-header {
    padding: 14px 20px;
    color: #fff;
    border-radius: 12px 12px 0 0;
}
.order-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.order-ttn {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.ttn-link {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px dashed rgba(255,255,255,0.5);
}
.ttn-link:hover {
    border-bottom-color: #fff;
}
.ttn-pending {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    font-style: italic;
}
.order-date {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
.status-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* Повідомлення про копіювання */
.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.copy-toast.show {
    opacity: 1;
}

/* Товари */
.order-items { padding: 0 20px; }
.order-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #f8f8f8; gap: 12px;
}
.order-item:last-child { border-bottom: none; }
.item-info { flex: 1; min-width: 0; }
.item-name {
    color: #333; text-decoration: none; font-size: 14px;
    font-weight: 500; transition: color 0.2s;
}
a.item-name:hover { color: #4A90E2; }
.item-size { font-size: 13px; color: #888; margin-left: 6px; }
.item-right { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.item-qty { font-size: 13px; color: #888; }
.item-price { font-size: 14px; font-weight: 600; color: #000; }

/* Підсумок */
.order-total {
    padding: 12px 20px; display: flex; justify-content: space-between;
    align-items: center; border-top: 1px solid #f0f0f0;
}
.total-label { font-size: 14px; color: #666; }
.total-amount { font-size: 18px; font-weight: 700; color: #000; }

/* Футер */
.order-footer {
    padding: 14px 20px; background: #fafafa; border-top: 1px solid #f0f0f0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px;
}
.footer-item { display: flex; flex-direction: column; gap: 2px; }
.footer-label { color: #999; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-value { color: #333; font-weight: 500; }

.empty-orders { text-align: center; padding: 3rem; color: #999; font-size: 16px; }
.loader { text-align: center; padding: 3rem; color: #999; }
.loader-spinner {
    width: 32px; height: 32px; border: 3px solid #f0f0f0;
    border-top-color: #000; border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .account-section { padding: 1.5rem 0 3rem; }
    .account-title { font-size: 24px; }
    .login-wrapper { margin: 0 1rem; padding: 1.5rem; }
    .order-footer { grid-template-columns: 1fr; }
    .account-header { flex-direction: column; align-items: flex-start; }
}
    
