:root {
    --bg: #f7f7f9;
    --surface: #ffffff;
    --text: #1f2630;
    --muted: #6c6f78;
    --primary: #1f4b8b;
    --accent: #ff8c42;
    --border: #dde0e6;
    --shadow: 0 18px 40px rgba(31, 38, 48, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    width: 250px;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.search-input.hidden {
    display: none;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 75, 139, 0.1);
}

.search-btn,
.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-btn:hover,
.cart-btn:hover {
    background: rgba(31, 75, 139, 0.1);
}

.cart-btn {
    position: relative;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: 0.3s;
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    height: 120px;
    width: auto;
    max-width: 450px;
}

.main-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.main-nav a:hover {
    background: rgba(31, 75, 139, 0.1);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-dropdown:hover .nav-link,
.nav-dropdown .nav-link:hover {
    background: rgba(31, 75, 139, 0.1);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 0.5rem 0;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(31, 38, 48, 0.12);
    z-index: 5;
    -webkit-overflow-scrolling: touch;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    color: var(--text);
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(31, 75, 139, 0.08);
}

.page-layout {
    max-width: 1500px;
    width: min(100%, 1500px);
    margin: 2rem auto;
   padding: 0 2rem;
}

body#detail-page .page-layout {
    width: 100vw;
    max-width: 100vw;
    padding: 0 1rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.hero-copy p {
    max-width: 42rem;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.7rem;
    color: #fff;
    background: var(--primary);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    background: #173768;
}

.button-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.button-sm {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 9999;
}

.popup-card {
    width: min(100%, 420px);
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.popup-card p {
    margin: 0 0 1.25rem;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
}

.popup-card .button {
    width: auto;
}

.checkout-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.image-block {
    min-height: 320px;
    background: linear-gradient(135deg, rgba(31, 75, 139, 0.85), rgba(255, 140, 66, 0.9));
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
}

.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.features-grid,
.product-grid,
.about-details {
    display: grid;
    gap: 1.5rem;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 3rem;
}

.features-grid article,
.product-card,
.detail-card,
.form-panel,
.checkout-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 1.8rem;
    box-shadow: var(--shadow);
}

.detail-card {
    display: grid;
    grid-template-columns: minmax(360px, 1.5fr) minmax(320px, 1fr);
    gap: 2rem;
    align-items: start;
}

.about-layout {
    display: grid;
    gap: 3rem;
}

.about-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.about-intro h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-intro p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.about-details {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.about-details article {
    background: var(--surface);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.about-details h2 {
    margin-top: 0;
    color: var(--primary);
}

.small {
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-section {
    text-align: center;
    background: var(--surface);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.contact-section h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-section p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 1rem;
}

.contact-item h3 {
    margin: 0 0 0.5rem;
    color: var(--primary);
}

.contact-item p {
    margin: 0;
    color: var(--text);
}

.testimonials-section {
    text-align: center;
}

.testimonials-section h2 {
    color: var(--primary);
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonials-grid blockquote {
    background: var(--surface);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
    text-align: left;
}

.testimonials-grid p {
    margin: 0 0 1rem;
    font-style: italic;
    color: var(--text);
}

.testimonials-grid cite {
    font-weight: 600;
    color: var(--primary);
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-content: center;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.product-card img,
.detail-image {
    width: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 1rem;
    background: #eef2f7;
    position: relative;
}

.detail-image-meta {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: inline-flex;
    gap: 0.5rem;
}

.product-card h3,
.detail-info h1 {
    margin: 0;
}

.product-card h3 a,
.product-card p a {
    color: inherit;
    text-decoration: none;
}

.product-card h3 a:hover,
.product-card p a:hover {
    color: var(--primary);
}

.product-card p,
.detail-info p {
    color: var(--muted);
}

.product-card .price,
.detail-meta .price,
.checkout-item .price {
    font-weight: 700;
    color: var(--primary);
}

.product-card .button,
.detail-info .button,
.checkout-summary .button {
    width: fit-content;
}

.detail-layout {
    display: flex;
    justify-content: center;
}

.detail-layout > .detail-card {
    width: min(100%, 1200px);
}

.detail-gallery {
    display: grid;
    grid-template-columns: minmax(80px, 100px) 1fr;
    gap: 1rem;
}

.detail-thumbnails {
    display: grid;
    gap: 0.8rem;
}

.detail-thumbnails img {
    width: 100%;
    border-radius: 1rem;
    object-fit: cover;
    min-height: 80px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
}

.detail-thumbnails img:hover {
    transform: scale(1.02);
}

.detail-thumbnails img.active {
    border-color: var(--primary);
}

.detail-image {
    width: 100%;
    min-height: 420px;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #eef2f7;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
    transform-origin: center center;
}

.detail-image:hover {
    cursor: zoom-in;
}

.detail-info {
    display: grid;
    gap: 1rem;
}

.product-brand {
    font-size: 0.9rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}

.product-tagline {
    color: var(--muted);
    margin: 0;
    font-size: 1rem;
}

.detail-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.detail-meta .category {
    background: #eff4ff;
    color: #1f4b8b;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.product-rating .stars {
    color: #d8ac33;
    letter-spacing: 0.08em;
}

.quantity-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.quantity-control button,
.quantity-control input {
    border: none;
    background: transparent;
    padding: 0.8rem 1rem;
    font-size: 1rem;
}

.quantity-control input {
    width: 3rem;
    text-align: center;
}

.full-width {
    width: 100%;
}

.product-promo {
    margin: 0;
    padding: 1rem;
    border-radius: 1rem;
    background: #ebf9f2;
    color: #17462d;
    font-size: 0.95rem;
}

.payment-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
}

.detail-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--muted);
}

.detail-links a {
    color: var(--muted);
    text-decoration: none;
}

.impact-section {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.impact-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    cursor: default;
    padding: 0;
}

.impact-text {
    margin-top: 0.75rem;
    color: var(--muted);
    line-height: 1.8;
}

label,
input,
textarea,
select {
    display: block;
    width: 100%;
}

label {
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.category-fields-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.category-fields-list label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

.category-fields-list input[type="checkbox"] {
    width: auto;
    margin: 0;
}

input,
textarea,
select {
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    padding: 0.95rem 1rem;
    background: #fff;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
    background-position: calc(100% - 1rem) calc(50% - 0.35rem), calc(100% - 0.75rem) calc(50% - 0.35rem);
    background-size: 0.45rem 0.45rem, 0.45rem 0.45rem;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
}

textarea {
    resize: vertical;
}

.category-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-page,
.checkout-layout {
    display: grid;
    gap: 2rem;
}

.form-panel,
.checkout-panel {
    max-width: 640px;
    margin: 0 auto;
}

.message {
    margin-top: 1rem;
    color: var(--primary);
}

.site-footer {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-brand img {
    margin-bottom: 0.5rem;
}

.footer-brand p {
    margin: 0;
    color: var(--muted);
}

.footer-links h4,
.footer-contact h4 {
    margin: 0 0 1rem;
    color: var(--text);
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    margin: 0.25rem 0;
    color: var(--muted);
}

.hidden {
    display: none !important;
}

.checkout-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.checkout-item-image {
    width: 100px;
    min-width: 100px;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    background: #f8f9fb;
}

.checkout-item-details strong {
    display: block;
    margin-bottom: 0.5rem;
}

.checkout-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.checkout-item p {
    margin: 0.25rem 0;
}

.delivery-section {
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
    background: #fff;
    margin-bottom: 1rem;
}

#place-order-button {
    width: 100%;
}

#place-order-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.delivery-section h2 {
    margin: 0;
    font-size: 1.15rem;
}

.delivery-fields {
    display: grid;
    gap: 1rem;
}

.delivery-fields label {
    display: grid;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.delivery-fields input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: #fff;
    font: inherit;
}

.delivery-options {
    display: grid;
    gap: 0.75rem;
}

.delivery-options p {
    margin: 0;
    font-weight: 600;
}

.delivery-options label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: #f7f8fb;
    border: 1px solid transparent;
    cursor: pointer;
}

.delivery-options input[type="radio"] {
    accent-color: var(--primary);
}

.delivery-options label:hover {
    border-color: var(--border);
}

.delivery-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: #f7f8fb;
}

.grand-total-row {
    background: rgba(23, 55, 104, 0.08);
    font-weight: 700;
}

.checkout-summary {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

/* Admin Dashboard Styles */
.admin-header {
    background: linear-gradient(135deg, var(--primary) 0%, #142d5a 100%);
    color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.admin-header h1 {
    margin: 0;
    font-size: 2rem;
}

.admin-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.admin-header .button {
    background: var(--accent);
    color: white;
    margin: 0;
}

.admin-header .button:hover {
    background: #ff7a1a;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(31, 38, 48, 0.06);
    border-left: 4px solid var(--primary);
}

.stat-card h3 {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.admin-section {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(31, 38, 48, 0.06);
}

.admin-section h2 {
    margin: 0 0 1.5rem;
    color: var(--text);
}

.admin-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 700px;
}

.admin-table th {
    background: var(--bg);
    color: var(--text);
    font-weight: 600;
}

.admin-table td,
.admin-table th {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    word-break: break-word;
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .admin-table table {
        min-width: 100%;
    }

    .admin-table td,
    .admin-table th {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .admin-table table {
        min-width: 800px;
    }

    .admin-table td,
    .admin-table th {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}


.admin-table tbody tr:hover {
    background: var(--bg);
}

@media (max-width: 900px) {
    .hero,
    .admin-header {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        display: block;
    }

    .detail-layout > .detail-card {
        width: 100%;
    }

    .detail-card {
        grid-template-columns: 1fr;
    }

    .detail-gallery {
        grid-template-columns: 1fr;
    }

    .detail-thumbnails {
        display: none;
    }

    .detail-image {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detail-image-track {
        display: flex;
        gap: 1rem;
        scroll-snap-type: x mandatory;
        touch-action: pan-x;
    }

    .detail-image-track img {
        min-width: 100%;
        flex: 0 0 100%;
        scroll-snap-align: center;
        height: auto;
    }

    .admin-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .site-header {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .brand {
        flex: 1 1 auto;
    }

    .brand img {
        height: 80px;
        max-width: 300px;
    }

    .burger-menu {
        display: flex;
        order: 3;
    }

    .header-actions {
        order: 2;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        order: 4;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .page-layout {
        padding: 0 1rem;
    }
}

/* Profile Page Styles */
.profile-section {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.profile-info p {
    margin: 0.25rem 0;
    color: var(--muted);
}

.profile-details {
    display: grid;
    gap: 2rem;
}

.detail-group h3 {
    margin: 0 0 1rem;
    color: var(--text);
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    font-weight: 600;
    color: var(--text);
}

.detail-row span {
    color: var(--muted);
}

.profile-card button {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.button.danger {
    background: #dc3545;
    color: white;
}

.button.danger:hover {
    background: #c82333;
}
