/* ============================================================
   account.css  –  Vizag Florist · Account / Auth page
   ============================================================ */


/* ── Page Background ─────────────────────────────────────── */

.section-sm {
    padding: 40px 0 60px;
}


/* ── Alert ───────────────────────────────────────────────── */

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    animation: slideDown .3s ease;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── AUTH CARD ───────────────────────────────────────────── */

.justify-center {
    justify-content: center;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .08);
}


/* Tab switcher */

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 28px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    color: #9ca3af;
    transition: color .2s;
    position: relative;
}

.auth-tab.active {
    color: #d4145a;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #d4145a;
    border-radius: 3px 3px 0 0;
}


/* Auth heading */

.auth-title {
    font-family: var(--font-head, 'Playfair Display', serif);
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.auth-sub {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 24px;
}

.text-center {
    text-align: center;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-8 {
    margin-top: 8px;
}


/* Form controls */

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: #d4145a;
    box-shadow: 0 0 0 3px rgba(212, 20, 90, .10);
}

.form-control:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
}


/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    padding: 11px 22px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #d4145a, #9d174d);
    color: #fff;
    box-shadow: 0 4px 14px rgba(212, 20, 90, .30);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(212, 20, 90, .42);
    transform: translateY(-1px);
}

.btn-outline {
    background: #fff;
    color: #374151;
    border: 1.5px solid #e5e7eb;
}

.btn-outline:hover {
    border-color: #d4145a;
    color: #d4145a;
    background: #fdf2f8;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 26px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}


/* ── ACCOUNT SIDEBAR ─────────────────────────────────────── */

.acc-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
    position: sticky;
    top: 80px;
}

.acc-user-head {
    background: linear-gradient(135deg, #d4145a, #7c1d3f);
    color: #fff;
    padding: 24px 20px;
    text-align: center;
}

.acc-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    border: 3px solid rgba(255, 255, 255, .4);
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #fff;
    letter-spacing: -1px;
}

.acc-nav {
    padding: 10px 0;
}

.acc-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background .15s, color .15s, padding-left .15s;
    border-left: 3px solid transparent;
}

.acc-nav-link i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    color: #9ca3af;
    transition: color .15s;
}

.acc-nav-link:hover {
    background: #fdf2f8;
    color: #d4145a;
    border-left-color: #fecdd3;
}

.acc-nav-link:hover i {
    color: #d4145a;
}

.acc-nav-link.active {
    background: #fdf2f8;
    color: #d4145a;
    font-weight: 700;
    border-left-color: #d4145a;
}

.acc-nav-link.active i {
    color: #d4145a;
}

.acc-nav-link:last-child {
    color: #ef4444;
}

.acc-nav-link:last-child i {
    color: #ef4444;
}

.acc-nav-link:last-child:hover {
    background: #fff1f2;
    border-left-color: #fecdd3;
}


/* ── DASHBOARD STATS ─────────────────────────────────────── */

.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}

.stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .09);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: #fdf2f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #d4145a;
    font-size: 18px;
}

.stat-val {
    font-size: 22px;
    font-weight: 800;
    color: #d4145a;
}

.stat-lbl {
    font-size: 12.5px;
    color: #9ca3af;
    margin-top: 2px;
}


/* ── ORDER CARD ──────────────────────────────────────────── */

.order-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: box-shadow .2s;
}

.order-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

.order-card:last-child {
    margin-bottom: 0;
}


/* Status badges */

.order-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    margin-left: 8px;
}

.s-pending {
    background: #fff7ed;
    color: #c2410c;
}

.s-confirmed {
    background: #eff6ff;
    color: #1d4ed8;
}

.s-processing {
    background: #faf5ff;
    color: #7c3aed;
}

.s-out_for_delivery {
    background: #ecfdf5;
    color: #065f46;
}

.s-delivered {
    background: #f0fdf4;
    color: #15803d;
}

.s-cancelled {
    background: #fff1f2;
    color: #be123c;
}


/* ── CONTENT PANELS ──────────────────────────────────────── */

.acc-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.acc-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.acc-panel-title i {
    color: #d4145a;
    font-size: 16px;
}


/* ── WALLET CARD ─────────────────────────────────────────── */

.wallet-card {
    background: linear-gradient(135deg, #d4145a 0%, #7c1d3f 100%);
    border-radius: 18px;
    padding: 30px;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    top: -60px;
    right: -60px;
}

.wallet-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    bottom: -50px;
    left: -30px;
}

.wallet-label {
    font-size: 13px;
    opacity: .8;
    margin-bottom: 6px;
}

.wallet-amount {
    font-family: var(--font-head, serif);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.wallet-icon {
    font-size: 32px;
    opacity: .6;
    margin-bottom: 6px;
}


/* Wallet transactions */

.tx-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f9fafb;
}

.tx-row:last-child {
    border-bottom: none;
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tx-credit {
    background: #f0fdf4;
    color: #16a34a;
}

.tx-debit {
    background: #fff1f2;
    color: #dc2626;
}

.tx-desc {
    font-size: 13.5px;
    font-weight: 500;
    color: #111827;
}

.tx-date {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.tx-amount {
    font-weight: 700;
    font-size: 15px;
    margin-left: auto;
}

.tx-amount.credit {
    color: #16a34a;
}

.tx-amount.debit {
    color: #dc2626;
}


/* ── ADDRESS CARDS ───────────────────────────────────────── */

.addr-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    position: relative;
    transition: border-color .2s, box-shadow .2s;
    height: 100%;
    box-sizing: border-box;
}

.addr-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.addr-card.default {
    border-color: #d4145a;
    background: #fffbfd;
}

.addr-default-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #d4145a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
}

.addr-type-icon {
    color: #d4145a;
    margin-right: 6px;
}

.addr-name {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    margin-bottom: 6px;
}

.addr-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.65;
}


/* Add address form */

.addr-form-box {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 22px;
    display: none;
}

.addr-form-box.open {
    display: block;
    animation: slideDown .25s ease;
}


/* ── GRID HELPERS ────────────────────────────────────────── */

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.row>* {
    padding: 0 8px;
    box-sizing: border-box;
}

.col-12 {
    width: 100%;
}

.col-6 {
    width: 50%;
}

.col-md-3 {
    width: 25%;
}

.col-md-4 {
    width: 33.333%;
}

.col-md-6 {
    width: 50%;
}

.col-lg-3 {
    width: 25%;
}

.col-lg-5 {
    width: 41.666%;
}

.col-lg-7 {
    width: 58.333%;
}

.col-lg-9 {
    width: 75%;
}

.g-3>* {
    padding: 8px;
}

.g-4>* {
    padding: 10px;
}

@media (max-width: 991px) {
    .col-lg-3,
    .col-lg-9 {
        width: 100%;
    }
    .acc-sidebar {
        position: static;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .col-md-3,
    .col-md-4,
    .col-md-6 {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .col-6 {
        width: 100%;
    }
}


/* Flex utils */

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}


/* ── Badges ──────────────────────────────────────────────── */

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}

.badge-new {
    background: #d4145a;
    color: #fff;
}


/* ── Empty states ────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 44px;
    margin-bottom: 14px;
    display: block;
}

.empty-state h3 {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 14px;
}


/* ── Responsive tweaks ───────────────────────────────────── */

@media (max-width: 575px) {
    .auth-card {
        padding: 24px 18px;
    }
    .acc-panel {
        padding: 18px;
    }
    .wallet-amount {
        font-size: 36px;
    }
    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }
}