
/* =========================================================
   SUBEESHA PROFILE PAGE
   External stylesheet for the customer profile/dashboard.
   ========================================================= */

:root {
    --green: #0e3d34;
    --green-dark: #082d27;
    --green-light: #eaf2ef;
    --gold: #c8a96b;
    --gold-light: #f5ead1;
    --pink: #ddb6a8;
    --cream: #f8f5ef;
    --white: #ffffff;
    --text: #17332e;
    --muted: #72817d;
    --border: #e4e5df;
    --success: #2c8b62;
    --warning: #c89536;
    --danger: #e25b52;
    --shadow: 0 12px 35px rgba(14, 61, 52, .07);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f6f7f4;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   HEADER
   ========================================================= */

.profile-header {
    height: 76px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: 100%;
    max-width: 1500px;
    margin: auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    padding: 2px;
    background: #06110e;
    box-shadow: 0 4px 14px rgba(14, 61, 52, .12);
}

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

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--green);
    font-size: 28px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.back-store {
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    transition: .2s ease;
}

.back-store:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.header-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 50%;
    color: var(--green);
    display: grid;
    place-items: center;
    transition: .2s ease;
}

.header-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.profile-layout {
    max-width: 1500px;
    min-height: calc(100vh - 76px);
    margin: auto;
    padding: 28px 30px 55px;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 25px;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.profile-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px 14px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow);
}

.user-summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    padding: 4px 7px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    border: 2px solid var(--gold);
}

.user-summary h2 {
    margin: 0 0 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
}

.user-summary p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verified-pill {
    color: var(--success);
    font-size: 17px;
}

.profile-nav {
    display: grid;
    gap: 4px;
}

.profile-nav-item {
    width: 100%;
    min-height: 44px;
    border: 0;
    background: transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 12px;
    color: #667570;
    font-size: 12px;
    text-align: left;
    transition: .2s ease;
}

.profile-nav-item ion-icon {
    font-size: 17px;
    flex: 0 0 17px;
}

.profile-nav-item:hover {
    color: var(--green);
    background: #f5f7f5;
}

.profile-nav-item.active {
    background: var(--green);
    color: #fff;
}

.profile-nav-item.active ion-icon {
    color: var(--gold);
}

.logout-btn {
    width: 100%;
    height: 42px;
    margin-top: 15px;
    border: 1px solid #f0d8d5;
    background: #fff7f6;
    color: var(--danger);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   PAGE CONTENT
   ========================================================= */

.profile-content {
    min-width: 0;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.eyebrow,
.panel-kicker {
    color: var(--gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.page-heading h1,
.section-title h2,
.panel h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    color: var(--green);
}

.page-heading h1 {
    font-size: 32px;
    margin: 8px 0 7px;
}

.page-heading p,
.section-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.edit-profile-btn,
.primary-btn,
.outline-btn,
.text-btn {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: .2s ease;
}

.edit-profile-btn,
.primary-btn {
    background: var(--green);
    color: #fff;
}

.edit-profile-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.edit-profile-btn:hover,
.primary-btn:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.profile-section {
    display: none;
    animation: fadeIn .25s ease;
}

.profile-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   STATS
   ========================================================= */

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

.stat-card {
    min-height: 105px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.stat-icon.green {
    color: var(--green);
    background: #e7f1ed;
}

.stat-icon.gold {
    color: #9c762c;
    background: #f8efdc;
}

.stat-icon.pink {
    color: #9b6558;
    background: #f5e8e4;
}

.stat-icon.blue {
    color: #47758b;
    background: #e6f0f5;
}

.stat-card span {
    color: var(--muted);
    font-size: 10px;
    display: block;
    margin-bottom: 5px;
}

.stat-card strong {
    display: block;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 400;
}

.stat-card small {
    display: block;
    color: #99a29f;
    margin-top: 3px;
    font-size: 9px;
}

/* =========================================================
   PANELS / CARDS
   ========================================================= */

.panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 21px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.panel-heading h2 {
    margin: 5px 0 0;
    font-size: 20px;
}

.icon-action {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--green);
    display: grid;
    place-items: center;
}

.icon-action:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.content-grid.two-col {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.profile-details div {
    padding: 13px;
    background: #f8faf8;
    border-radius: 4px;
}

.profile-details span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.profile-details strong {
    color: var(--green);
    font-size: 12px;
}

.wallet-preview {
    background: linear-gradient(135deg, var(--green), #174f44);
    color: #fff;
    border-color: var(--green);
}

.wallet-preview .panel-kicker {
    color: var(--gold);
}

.wallet-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.wallet-top h2 {
    color: #fff;
    font-size: 32px;
    margin: 8px 0 0;
}

.wallet-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(200,169,107,.45);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-size: 20px;
}

.wallet-preview p {
    color: #d9e5e1;
    font-size: 11px;
    line-height: 1.7;
    margin: 15px 0;
}

.outline-btn {
    min-height: 39px;
    padding: 0 13px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
}

.outline-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.wallet-preview .outline-btn {
    background: transparent;
    border-color: rgba(255,255,255,.35);
    color: #fff;
}

.text-btn {
    background: transparent;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-btn:hover {
    color: var(--gold);
}

/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title {
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 30px;
    margin: 8px 0 6px;
}

.section-title.with-action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

/* =========================================================
   FORMS
   ========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
}

.field label {
    display: block;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 7px;
}

.field input,
.field select {
    width: 100%;
    height: 43px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 12px;
    outline: none;
    color: var(--text);
    background: #fff;
}

.field input:focus,
.field select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,169,107,.10);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.primary-btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
}

/* =========================================================
   ADDRESSES
   ========================================================= */

.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.address-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 19px;
    box-shadow: var(--shadow);
    position: relative;
}

.address-card.default {
    border-color: rgba(200,169,107,.7);
}

.address-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.address-label {
    color: var(--gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.address-card h3 {
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 400;
    margin: 6px 0 0;
}

.address-card p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    margin: 4px 0;
}

.default-badge,
.connected-badge {
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 800;
}

.default-badge {
    color: #8e6b2c;
    background: #f7edd8;
}

.connected-badge {
    color: var(--success);
    background: #e7f3ed;
}

.address-actions {
    display: flex;
    gap: 7px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--border);
}

.address-actions button {
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
}

.address-actions button:hover {
    color: var(--gold);
}

/* =========================================================
   ORDERS
   ========================================================= */

.order-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 14px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border);
}

.order-tabs button {
    white-space: nowrap;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    border-radius: 4px;
    padding: 7px 13px;
    font-size: 10px;
}

.order-tabs button.active {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
}

.order-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr .9fr .6fr;
    gap: 12px;
    align-items: center;
    min-height: 57px;
    border-bottom: 1px solid #edf0ed;
    font-size: 11px;
}

.order-row:last-child {
    border-bottom: 0;
}

.order-head {
    min-height: 42px;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.order-row button {
    justify-self: start;
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
}

.order-row button:hover {
    color: var(--gold);
}

.status {
    width: fit-content;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 800;
}

.status.delivered {
    color: var(--success);
    background: #e8f4ee;
}

.status.processing {
    color: #967027;
    background: #f8efd9;
}

/* =========================================================
   EARNINGS
   ========================================================= */

.conversion-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(100deg, #0e3d34, #174f44);
    color: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 16px;
}

.conversion-icon {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(200,169,107,.4);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 22px;
    flex: 0 0 52px;
}

.conversion-banner > div:nth-child(2) {
    flex: 1;
}

.conversion-banner span {
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 2px;
    font-weight: 800;
}

.conversion-banner h3 {
    margin: 5px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
}

.conversion-banner p {
    margin: 0;
    color: #d6e2de;
    font-size: 10px;
}

.conversion-banner .primary-btn {
    background: #fff;
    color: var(--green);
    flex: 0 0 auto;
}

.earning-list {
    display: grid;
}

.earning-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 67px;
    border-bottom: 1px solid #edf0ed;
}

.earning-row:last-child {
    border-bottom: 0;
}

.earning-icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: #eef5f1;
    color: var(--green);
    display: grid;
    place-items: center;
}

.earning-info strong {
    display: block;
    color: var(--green);
    font-size: 11px;
    margin-bottom: 3px;
}

.earning-info span {
    color: var(--muted);
    font-size: 9px;
}

.earning-row > b {
    color: var(--success);
    font-size: 11px;
}

.earning-row.converted > b {
    color: var(--danger);
}

.earning-list.compact .earning-row {
    min-height: 57px;
}

/* =========================================================
   WALLET
   ========================================================= */

.wallet-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.wallet-card {
    min-height: 260px;
    border-radius: 4px;
    padding: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(200,169,107,.22), transparent 27%),
        linear-gradient(135deg, #092e27, #174e43);
    box-shadow: 0 18px 45px rgba(14,61,52,.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wallet-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.wallet-brand ion-icon {
    font-size: 25px;
}

.wallet-card p {
    color: #c9d8d4;
    font-size: 10px;
    margin: 0;
}

.wallet-card h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 44px;
    font-weight: 400;
    margin: 4px 0;
}

.wallet-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.15);
    display: flex;
    justify-content: space-between;
    color: #a9bcb7;
    font-size: 9px;
}

.wallet-footer span:last-child {
    color: #8ed2af;
}

.wallet-rules {
    margin: 0;
}

.rule {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #edf0ed;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.rule ion-icon {
    color: var(--success);
    font-size: 16px;
    flex: 0 0 16px;
}

.full-btn {
    width: 100%;
    margin-top: 13px;
}

.wallet-transactions {
    display: grid;
}

.transaction-row {
    min-height: 62px;
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #edf0ed;
}

.transaction-row:last-child {
    border-bottom: 0;
}

.transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.transaction-icon.plus {
    background: #e8f5ee;
    color: var(--success);
}

.transaction-icon.minus {
    background: #fff0ee;
    color: var(--danger);
}

.transaction-row strong {
    display: block;
    color: var(--green);
    font-size: 11px;
}

.transaction-row span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-top: 3px;
}

.positive {
    color: var(--success);
}

.negative {
    color: var(--danger);
}

/* =========================================================
   WISHLIST
   ========================================================= */

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.wishlist-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.wishlist-image {
    height: 240px;
    background: #eee;
    position: relative;
}

.wishlist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-image > button {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--danger);
    display: grid;
    place-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
}

.wishlist-body {
    padding: 15px;
}

.wishlist-body > span {
    color: var(--gold);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.3px;
}

.wishlist-body h3 {
    color: var(--green);
    font-size: 14px;
    margin: 7px 0;
}

.wishlist-body > strong {
    display: block;
    color: var(--green);
    font-size: 16px;
}

/* =========================================================
   REVIEWS
   ========================================================= */

.review-item {
    margin-bottom: 12px;
}

.review-stars {
    color: var(--gold);
    letter-spacing: 2px;
    font-size: 12px;
}

.review-item h3 {
    color: var(--green);
    font-size: 14px;
    margin: 9px 0 5px;
}

.review-item p {
    color: #51605c;
    line-height: 1.7;
    margin: 0 0 9px;
}

.review-item > span {
    color: var(--muted);
    font-size: 9px;
}

/* =========================================================
   VOUCHERS
   ========================================================= */

.voucher-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.voucher-card {
    min-height: 145px;
    display: grid;
    grid-template-columns: 1fr 130px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--green);
    color: #fff;
    box-shadow: var(--shadow);
}

.voucher-left {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.voucher-left span {
    color: var(--gold);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
}

.voucher-left strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
    margin: 7px 0 4px;
}

.voucher-left small {
    color: #c5d4d0;
    font-size: 9px;
}

.voucher-code {
    border-left: 1px dashed rgba(255,255,255,.35);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    background: rgba(255,255,255,.04);
}

.voucher-code strong {
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
}

.voucher-code button {
    border: 1px solid rgba(200,169,107,.5);
    color: var(--gold);
    background: transparent;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 9px;
    font-weight: 800;
}

/* =========================================================
   PAYMENT
   ========================================================= */

.payment-list {
    display: grid;
    gap: 11px;
}

.payment-card {
    min-height: 76px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 13px 15px;
    display: grid;
    grid-template-columns: 42px 1fr auto 35px;
    gap: 12px;
    align-items: center;
    box-shadow: var(--shadow);
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: #eef4f1;
    color: var(--green);
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.payment-card strong {
    display: block;
    color: var(--green);
    font-size: 11px;
}

.payment-card span:not(.default-badge):not(.connected-badge) {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-top: 4px;
}

.payment-card > button {
    width: 33px;
    height: 33px;
    border: 0;
    background: transparent;
    color: var(--muted);
}

/* =========================================================
   SECURITY
   ========================================================= */

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.security-card {
    margin: 0;
    display: grid;
    grid-template-columns: 45px 1fr auto;
    gap: 12px;
    align-items: center;
}

.security-icon {
    width: 43px;
    height: 43px;
    border-radius: 4px;
    background: #eef5f1;
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 18px;
}

.security-card h3 {
    margin: 0 0 5px;
    color: var(--green);
    font-size: 12px;
}

.security-card p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

/* =========================================================
   MODAL
   ========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(5, 24, 20, .60);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    backdrop-filter: blur(5px);
}

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

.modal-card {
    width: min(480px, 100%);
    background: #fff;
    border-radius: 4px;
    padding: 28px;
    box-shadow: 0 30px 90px rgba(0,0,0,.25);
    position: relative;
    transform: translateY(15px) scale(.98);
    transition: .25s ease;
}

.modal-overlay.show .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    background: #f5f6f4;
    border-radius: 50%;
    color: var(--muted);
    display: grid;
    place-items: center;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-size: 21px;
    margin-bottom: 18px;
}

.modal-card h2 {
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: 27px;
    margin: 8px 0;
}

.modal-card > p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 11px;
}

.conversion-rate {
    padding: 13px;
    margin: 17px 0;
    border: 1px solid #eee4ce;
    background: #fcf7ea;
    border-radius: 4px;
}

.conversion-rate strong {
    display: block;
    color: #8f6d2f;
    font-size: 13px;
}

.conversion-rate span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
}

.field small {
    display: block;
    color: var(--success);
    font-size: 9px;
    margin-top: 6px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

/* =========================================================
   TOAST
   ========================================================= */

.toast-container {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 5000;
    display: grid;
    gap: 10px;
    width: min(350px, calc(100vw - 30px));
}

.toast {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    border-radius: 4px;
    box-shadow: 0 12px 35px rgba(14,61,52,.16);
    overflow: hidden;
    animation: toastIn .35s ease;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.info {
    border-left-color: var(--green);
}

.toast-content {
    min-height: 64px;
    padding: 12px 13px;
    display: grid;
    grid-template-columns: 28px 1fr 22px;
    gap: 9px;
    align-items: center;
}

.toast-icon {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green-light);
    color: var(--green);
    font-size: 14px;
}

.toast.success .toast-icon {
    background: #e8f5ee;
    color: var(--success);
}

.toast.warning .toast-icon {
    background: #fff5df;
    color: var(--warning);
}

.toast.error .toast-icon {
    background: #fff0ee;
    color: var(--danger);
}

.toast-title {
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 3px;
}

.toast-message {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.toast-close {
    border: 0;
    background: transparent;
    color: #a2aaa7;
    font-size: 18px;
}

.toast-progress {
    height: 3px;
    background: var(--green);
    animation: toastProgress 3.5s linear forwards;
}

.toast.success .toast-progress {
    background: var(--success);
}

.toast.warning .toast-progress {
    background: var(--warning);
}

.toast.error .toast-progress {
    background: var(--danger);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(35px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1150px) {
    .profile-layout {
        grid-template-columns: 235px minmax(0, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .profile-sidebar {
        position: static;
    }

    .profile-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .logout-btn {
        margin-top: 10px;
    }

    .content-grid.two-col,
    .wallet-layout,
    .address-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .profile-header {
        height: 68px;
    }

    .header-inner {
        padding: 0 15px;
    }

    .brand-name {
        font-size: 23px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .back-store {
        display: none;
    }

    .profile-layout {
        padding: 15px;
    }

    .page-heading,
    .section-title.with-action {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-heading h1 {
        font-size: 27px;
    }

    .stats-grid,
    .form-grid,
    .wishlist-grid,
    .voucher-grid {
        grid-template-columns: 1fr;
    }

    .profile-nav {
        grid-template-columns: 1fr;
    }

    .profile-details {
        grid-template-columns: 1fr;
    }

    .conversion-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .conversion-banner .primary-btn {
        width: 100%;
    }

    .order-row {
        grid-template-columns: 1fr 1fr;
        padding: 11px 0;
    }

    .order-head {
        display: none;
    }

    .payment-card {
        grid-template-columns: 40px 1fr auto;
    }

    .payment-card > button {
        grid-column: 3;
        grid-row: 1;
    }

    .security-card {
        grid-template-columns: 43px 1fr;
    }

    .security-card .outline-btn {
        grid-column: 2;
        justify-self: start;
    }

    .wallet-card {
        min-height: 230px;
    }

    .toast-container {
        top: 15px;
        right: 15px;
        left: 15px;
        width: auto;
    }
}
