@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-red: #e63946;
    --dark-red: #9d1d27;
    --black: #1a1a1a;
    --dark-grey: #f0f0f0;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --text-main: #2d2d2d;
    --text-muted: #6c757d;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--off-white);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== UTILITY CLASSES ========== */

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1rem; }
.container-xs { max-width: 600px; margin: 0 auto; padding: 0 1rem; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start { display: flex; align-items: center; justify-content: flex-start; }
.flex-end { display: flex; align-items: center; justify-content: flex-end; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 2rem; }

/* Grid */
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }
.m-5 { margin: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-red); }
.text-muted { color: var(--text-muted); }
.text-success { color: #28a745; }
.text-warning { color: #ffc107; }
.text-danger { color: var(--primary-red); }
.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.5rem; }
.text-2xl { font-size: 2rem; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.letter-spacing { letter-spacing: 1px; }
.line-height-sm { line-height: 1.4; }
.line-height-lg { line-height: 1.8; }

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Border */
.border { border: 1px solid #dee2e6; }
.border-top { border-top: 1px solid #dee2e6; }
.border-bottom { border-bottom: 1px solid #dee2e6; }
.border-left { border-left: 1px solid #dee2e6; }
.border-primary { border-color: var(--primary-red); }
.rounded { border-radius: 8px; }
.rounded-sm { border-radius: 4px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-full { border-radius: 50%; }

/* Background */
.bg-white { background: var(--white); }
.bg-off-white { background: var(--off-white); }
.bg-primary { background: var(--primary-red); }
.bg-success { background: #d4edda; }
.bg-warning { background: #fff3cd; }
.bg-danger { background: #f8d7da; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.z-10 { z-index: 10; }
.z-100 { z-index: 100; }
.z-1000 { z-index: 1000; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

/* ========== COMPONENT CLASSES ========== */

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-padded { padding: 1.5rem; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
}
.card-body { padding: 1.5rem; }
.card-footer {
    padding: 1rem 1.5rem;
    background: var(--off-white);
    border-top: 1px solid #eee;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: var(--primary-red); color: white; }
.btn-primary:hover { background: var(--dark-red); }
.btn-outline { background: transparent; color: var(--primary-red); border: 2px solid var(--primary-red); }
.btn-outline:hover { background: var(--primary-red); color: white; }
.btn-success { background: #28a745; color: white; }
.btn-warning { background: #ffc107; color: var(--black); }
.btn-white { background: white; color: var(--primary-red); }
.btn-white:hover { background: var(--off-white); }
.btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 8px; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}
.form-control:focus { border-color: var(--primary-red); box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1); }
.form-control-bg { background: var(--off-white); }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-primary { background: rgba(230, 57, 70, 0.1); color: var(--primary-red); }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-grey { background: #e9ecef; color: #6c757d; }

/* Icons */
.icon-sm { font-size: 0.85rem; }
.icon-md { font-size: 1.2rem; }
.icon-lg { font-size: 1.5rem; }
.icon-xl { font-size: 2rem; }
.icon-primary { color: var(--primary-red); }
.icon-success { color: #28a745; }
.icon-warning { color: #ffc107; }
.icon-muted { color: var(--text-muted); }
.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.icon-box-sm { width: 40px; height: 40px; font-size: 1rem; border-radius: 8px; }
.icon-box-lg { width: 60px; height: 60px; font-size: 1.5rem; border-radius: 12px; }
.icon-circle { border-radius: 50%; }

/* Avatar */
.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}
.avatar-sm { width: 40px; height: 40px; font-size: 1rem; }
.avatar-md { width: 60px; height: 60px; font-size: 1.5rem; }
.avatar-lg { width: 100px; height: 100px; font-size: 2.5rem; }

/* Dividers */
.divider { height: 1px; background: #eee; margin: 1rem 0; }
.divider-dashed { border-style: dashed; }
.divider-gradient { background: linear-gradient(to right, transparent, #dee2e6, transparent); }

/* Section */
.section { padding: 2rem 0; }
.section-sm { padding: 1rem 0; }
.section-lg { padding: 3rem 0; }

/* Animation */
.animate-fadeIn { animation: fadeIn 0.5s ease-out; }
.animate-slideUp { animation: slideUp 0.5s ease-out; }

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

/* Gradient backgrounds */
.gradient-primary { background: linear-gradient(135deg, var(--primary-red), var(--dark-red)); }
.gradient-success { background: linear-gradient(135deg, #28a745, #155724); }
.gradient-blue { background: linear-gradient(135deg, #1976d2, #2196f3); }
.gradient-purple { background: linear-gradient(135deg, #7b1fa2, #9c27b0); }

/* ========== RESPONSIVE UTILITIES ========== */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .flex-wrap-mobile { flex-wrap: wrap; }
    .text-center-mobile { text-align: center; }
}
@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ========== ADDITIONAL COMPONENT STYLES ========== */

/* Dashboard specific */
.header-dashboard {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 2px solid var(--primary-red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-dashboard {
    background: transparent;
    align-items: flex-start;
    padding-top: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer-dashboard {
    padding: 2rem 5% 1rem;
    background: var(--off-white);
}

.logo-img { height: 35px; }

/* Animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Text colors */
.text-white { color: white; }
.text-black { color: var(--black); }
.text-primary { color: var(--primary-red); }

/* Word break */
.word-break { word-break: break-word; }
.break-all { word-break: break-all; }

/* Margin/Padding shortcuts */
.m-0 { margin: 0; }
.p-0 { padding: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }

/* Additional spacing */
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }

/* Active icon color */
.active-icon { color: var(--primary-red); }

/* Booking grid */
.booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Background gradient */
.bg-gradient-primary { background: linear-gradient(135deg, var(--primary-red), var(--dark-red)); }

/* Border radius */
.radius-0 { border-radius: 0; }
.radius-full { border-radius: 9999px; }

/* Icon in circle */
.icon-bg { width: 40px; height: 40px; border-radius: 8px; background: white; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* Header Styles */
header {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container img {
    height: 40px;
}

.nav-center {
    display: flex;
    gap: 2rem;
}

.nav-center a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-center a:hover {
    color: var(--primary-red);
}

.member-icon {
    font-size: 1.5rem;
    color: var(--primary-red);
    cursor: pointer;
    transition: var(--transition);
}

.member-icon:hover {
    transform: scale(1.1);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: radial-gradient(circle at top left, var(--off-white) 0%, #e9ecef 100%);
}

.dashboard-body main {
    display: block;
}

.login-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.8s ease-out;
}

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

.login-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--black);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--off-white);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: var(--black);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-red);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.login-btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
}

.forgot-password:hover {
    opacity: 1;
    color: var(--primary-red);
}

/* Footer Styles */
footer {
    background: var(--white);
    padding: 4rem 2% 2rem;
    border-top: 1px solid #dee2e6;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p, .footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Dashboard Header */
.header-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-red);
    cursor: pointer;
}

.utility-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.utility-icons i {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}

.utility-icons i:hover {
    color: var(--primary-red);
}

.header-row-2 {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.header-row-2 a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: var(--white);
    transition: var(--transition);
    min-width: 100px;
}

.header-row-2 a i {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.header-row-2 a:hover {
    color: var(--primary-red);
    background: var(--off-white);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.1);
}

.header-row-2 a:hover i {
    color: var(--primary-red);
}

.header-row-2 a.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.header-row-2 a.active i {
    color: var(--white);
}

/* Dashboard Content */
.dashboard-container {
    width: 100%;
    padding: 2rem 5%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--primary-red);
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out backwards;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-red);
}

.stat-info h3 {
    font-size: 1.8rem;
    margin: 0;
}

.stat-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-row {
    grid-column: span 4;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.chart-card, .list-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    min-height: 300px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Custom Chart Visualization (CSS) */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 200px;
    padding-top: 20px;
}

.bar {
    flex: 1;
    background: var(--primary-red);
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
    position: relative;
}

.bar:hover {
    background: var(--black);
}

/* Data List Styles */
.data-list {
    list-style: none;
}

.data-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.data-item:last-child {
    border-bottom: none;
}

/* Data Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    font-size: 0.95rem;
    color: var(--text-main);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-paid { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-failed { background: #f8d7da; color: #721c24; }

/* Team Cards */
.team-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out backwards;
    position: relative;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.team-avatar {
    width: calc(100% + 3rem);
    aspect-ratio: 1 / 1;
    margin: -2rem -1.5rem 1.5rem -1.5rem;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: var(--off-white);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Profile Page */
.profile-layout {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.profile-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
}

.profile-avatar-container {
    text-align: center;
    margin-top: -60px;
    padding: 0 1.5rem 1.5rem;
}

.profile-avatar-container img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--white);
    object-fit: cover;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-details {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.profile-info-item:last-child {
    border-bottom: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.btn-save {
    padding: 10px 20px; border: none; background: var(--primary-red); color: white; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: bold; transition: var(--transition);
}
.btn-save:hover { background: var(--dark-red); transform: translateY(-2px); }

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-row {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }
}
@media (max-width: 992px) {
    .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 2rem 15px;
    }
    .stats-banner {
        padding: 1.5rem;
    }
    .cta-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .quote-block {
        padding: 1.5rem;
    }
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    .content-row {
        grid-column: span 1;
    }
    .header-row-2 {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .hamburger-menu {
        display: block;
    }
    .utility-icons {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 2%;
        background: var(--white);
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 1000;
        width: 250px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        align-items: flex-start;
        gap: 0.5rem;
        border: 1px solid #eee;
    }
    .utility-icons.active {
        display: flex;
        animation: fadeIn 0.3s ease-out forwards;
    }
    .utility-icons i {
        width: 100%;
        padding: 10px;
        border-radius: 6px;
    }
    .utility-icons i:hover {
        background: var(--off-white);
    }
    .utility-icons i::after {
        content: attr(title);
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
        font-weight: 500;
        margin-left: 15px;
        color: var(--text-main);
    }
    .utility-icons .member-icon {
        margin-left: 0 !important;
        padding: 10px;
        width: 100%;
    }
    .utility-icons .member-icon i::after {
        content: "Profile";
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    header, .dashboard-container, footer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ── Page Content Styles ── */

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: clamp(280px, 45vw, 520px);
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.15) 0%,
        rgba(26, 26, 26, 0.65) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.5rem, 5%, 3rem);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
    width: fit-content;
}

.hero-title {
    font-size: clamp(1.6rem, 4.5vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    max-width: 700px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-meta i {
    color: var(--primary-red);
    font-size: 0.8rem;
}

/* Page Content Area */
.page-content-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 5%;
}

/* Lead paragraph */
.content-lead {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--text-main);
    font-weight: 400;
    line-height: 1.8;
    border-left: 4px solid var(--primary-red);
    padding-left: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Section heading */
.section-heading {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #eee, transparent);
    border-radius: 2px;
}

/* Body text */
.content-body p {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary-red);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* Stats Banner */
.stats-banner {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 14px;
    padding: 2rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
    color: white;
    text-align: center;
}

.stat-item h4 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.stat-item p {
    font-size: 0.8rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Quote Block */
.quote-block {
    background: var(--off-white);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    position: relative;
}

.quote-block::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--primary-red);
    opacity: 0.15;
    position: absolute;
    top: -10px;
    left: 16px;
    line-height: 1;
    font-family: Georgia, serif;
}

.quote-block p {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.8;
    margin: 0 0 0.75rem 0;
    padding-left: 0.5rem;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.5rem;
}

.quote-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.quote-author-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--black);
    font-weight: 600;
}

.quote-author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* CTA */
.cta-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background: var(--white);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    margin-top: 2.5rem;
}

.cta-section h3 {
    font-size: 1.1rem;
    color: var(--black);
    font-weight: 700;
    margin: 0 0 0.35rem 0;
}

.cta-section p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: transparent;
    color: var(--primary-red);
    border: 1.5px solid var(--primary-red);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

/* Divider */
.content-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin: 2.5rem 0;
}

/* ── Team Page ── */
.team-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--off-white);
    border-radius: 6px;
}

.team-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.75rem;
    border-top: 1px solid #eee;
    padding-top: 0.8rem;
    margin-top: 0.5rem;
}

.team-details-grid > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.team-details-grid > div .text-muted {
    flex-shrink: 0;
}

.team-action-ribbon {
    background: var(--primary-red);
    margin: 1.5rem -1.5rem -1.5rem -1.5rem;
    padding: 1rem 2rem;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-action-ribbon .team-action-btn {
    background: var(--primary-red);
    color: var(--white);
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

.team-action-ribbon .team-action-btn:hover {
    background: var(--dark-red);
}

.page-header-simple {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 2px solid var(--primary-red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-red);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
}

/* ── Team Page ── */
.team-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.team-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.team-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.team-action-btn:hover {
    background: var(--white);
    transform: scale(1.1);
}

/* ── Page Header ── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--black);
}

.page-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.page-header-left h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header-left h2 i {
    color: var(--primary-red);
}

.page-header-left p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* ── Filter Chips ── */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.filter-chip {
    padding: 7px 14px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
}

.filter-chip-primary {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 2px 6px rgba(230,57,70,0.2);
}

.filter-chip-outline {
    background: white;
    color: var(--text-main);
    border: 1px solid #eee;
}

.filter-chip-outline:hover {
    background: var(--off-white);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* ── Search Box ── */
.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 15px 8px 32px;
    border: 1px solid #eee;
    border-radius: 6px;
    outline: none;
    font-family: 'Inter', sans-serif;
    min-width: 200px;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-red);
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── Booking Card ── */
.booking-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    min-height: auto;
    border-top: 4px solid var(--primary-red);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.booking-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.booking-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-card-title h3 {
    font-size: 1.1rem;
    color: var(--black);
    margin: 0;
    line-height: 1.3;
}

.booking-card-title i {
    color: var(--text-muted);
    font-size: 1rem;
}

.booking-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    background: var(--off-white);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.booking-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.booking-info-item-top {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

.booking-info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.booking-info-value {
    font-weight: 600;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 4px;
}

.booking-info-value i {
    margin-right: 4px;
    color: var(--text-muted);
}

.booking-info-amount {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.1rem;
}

/* ── LLP Card ── */
.llp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.llp-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.llp-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.llp-card-header {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    padding: 1.25rem;
    color: white;
}

.llp-card-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.llp-card-header .txn {
    font-size: 0.8rem;
    opacity: 0.9;
    font-family: monospace;
}

.llp-card-body {
    padding: 1.25rem;
}

.llp-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.llp-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.75rem;
    background: var(--off-white);
    border-radius: 8px;
}

.llp-detail .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.llp-detail .value {
    font-weight: 600;
    color: var(--black);
    font-size: 0.9rem;
}

.llp-detail .value.amount {
    color: var(--primary-red);
    font-size: 1rem;
}

.llp-detail .value.total {
    color: #28a745;
    font-size: 1.1rem;
    font-weight: 700;
}

.llp-dividends {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #e8f5e9;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.llp-dividends .count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.llp-dividends .count i {
    color: #4caf50;
}

.llp-dividends .count span {
    font-weight: 600;
    color: var(--black);
}

.llp-dividends .amount {
    font-weight: 700;
    color: #4caf50;
}

.llp-card-footer {
    display: flex;
    gap: 10px;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.llp-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.llp-stat-item {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.llp-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.llp-stat-icon.green { background: #e8f5e9; color: #4caf50; }
.llp-stat-icon.blue { background: #e3f2fd; color: #2196f3; }
.llp-stat-icon.purple { background: #f3e5f5; color: #9c27b0; }
.llp-stat-icon.orange { background: #fff3e0; color: #ff9800; }

.llp-stat-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.5rem;
    color: var(--black);
}

.llp-stat-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Upload Card ── */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.upload-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.4rem;
    box-shadow: var(--shadow);
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 4px solid var(--primary-red);
    transition: var(--transition);
}

.upload-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.upload-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.upload-card-title h3 {
    margin: 4px 0 0;
    font-size: 1.1rem;
    color: var(--black);
    line-height: 1.3;
}

.upload-card-title span {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-preview {
    background: var(--off-white);
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed #d4edda;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.upload-preview-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e8f5e9, #d4edda);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #155724;
    font-size: 1.3rem;
}

.upload-preview-info .type {
    font-weight: 700;
    color: var(--black);
}

.upload-preview-info .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upload-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    font-size: 0.9rem;
}

.upload-info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.upload-info-value {
    font-weight: 600;
    color: var(--black);
}

.upload-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Detail Page Styles ── */
.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.detail-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.detail-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.detail-card-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card-header h3 i {
    color: var(--primary-red);
}

.detail-card-header .ref {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-card-body {
    padding: 1.5rem;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    color: var(--black);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h4 i {
    color: var(--primary-red);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .value {
    font-weight: 600;
    color: var(--black);
    font-size: 0.95rem;
}

.detail-item .value.amount {
    color: var(--primary-red);
    font-size: 1.2rem;
}

.detail-item .value.total {
    color: #28a745;
    font-size: 1.3rem;
    font-weight: 700;
}

.detail-summary-box {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.detail-summary-box h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.detail-summary-item {
    text-align: center;
}

.detail-summary-item .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-summary-item .label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.detail-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.3);
}

.detail-action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.detail-action-btn {
    flex: 1;
    min-width: 150px;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
}

.detail-action-btn-primary {
    background: var(--primary-red);
    color: white;
}

.detail-action-btn-primary:hover {
    opacity: 0.9;
}

.detail-action-btn-secondary {
    background: white;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.detail-action-btn-secondary:hover {
    background: var(--primary-red);
    color: white;
}

.detail-timeline {
    position: relative;
    padding-left: 30px;
}

.detail-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eee;
}

.detail-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.detail-timeline-item:last-child {
    padding-bottom: 0;
}

.detail-timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-red);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-red);
}

.detail-timeline-item.completed::before {
    background: #28a745;
    box-shadow: 0 0 0 2px #28a745;
}

.detail-timeline-item.pending::before {
    background: #ffc107;
    box-shadow: 0 0 0 2px #ffc107;
}

.detail-timeline-content {
    background: var(--off-white);
    padding: 1rem;
    border-radius: 8px;
}

.detail-timeline-content .title {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
}

.detail-timeline-content .time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.detail-amount-display {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
}

.detail-amount-display .label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.detail-amount-display .amount {
    font-size: 3rem;
    font-weight: 700;
}

.detail-amount-display .amount.positive {
    color: #90EE90;
}

.detail-amount-display .status {
    margin-top: 1rem;
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.85rem;
}

.detail-action-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-action-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.detail-action-list li:last-child {
    border-bottom: none;
}

.detail-action-list .action-label {
    color: var(--text-muted);
}

.detail-action-list .action-btn {
    padding: 6px 15px;
    border: 1px solid #eee;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
}

.detail-action-list .action-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

@media (max-width: 600px) {
    .detail-action-buttons {
        flex-direction: column;
    }
    .detail-action-btn {
        width: 100%;
    }
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Summary Banner ── */
.summary-banner {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: white;
}

.summary-banner-icon {
    text-align: center;
}

.summary-banner-icon i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.summary-banner-icon p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.summary-banner-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.3);
}

.summary-banner-item {
    text-align: center;
}

.summary-banner-item p {
    margin: 5px 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.summary-banner-item .value {
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-banner-item .amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-banner-item .status {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ── Week Status Cards ── */
.week-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.week-status-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-red);
}

.week-status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.week-status-card-title {
    font-weight: 700;
    color: var(--black);
}

.week-status-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.week-status-card-amount {
    font-weight: 700;
    color: var(--primary-red);
}

.week-status-card.pending {
    border-left-color: #856404;
}

.week-status-card.completed {
    border-left-color: #155724;
}

/* ── Pagination ── */
.pagination-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eee;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #dee2e6;
    background: var(--white);
    color: var(--text-main);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: rgba(230, 57, 70, 0.05);
}

.page-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    box-shadow: 0 3px 8px rgba(230, 57, 70, 0.3);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow);
    max-height: 90vh;
    overflow-y: auto;
}

/* Order Card Actions */
.order-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-view, .btn-invoice {
    flex: 1;
    min-width: 80px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-view {
    background: var(--off-white);
    color: var(--text-main);
    border: 1px solid #dee2e6;
}

.btn-view:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-invoice {
    background: var(--primary-red);
    color: white;
    border: 1px solid var(--primary-red);
}

.btn-invoice:hover {
    background: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

/* Order Detail Page */
.order-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Button Adjustments */
@media (max-width: 480px) {
    .order-card-actions {
        flex-direction: column;
    }
    
    .btn-view, .btn-invoice {
        width: 100%;
    }
}

/* Order Invoice Styles */
.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-red);
}

.invoice-company {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoice-company img {
    height: 45px;
}

.invoice-company-info h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 2px;
}

.invoice-company-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.invoice-bill-to {
    text-align: right;
}

@media (max-width: 768px) {
    .invoice-header {
        flex-direction: column;
    }
    
    .invoice-bill-to {
        text-align: left;
    }
}

.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.invoice-items-table th,
.invoice-items-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.invoice-items-table th {
    background: var(--off-white);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.invoice-items-table td {
    font-size: 0.95rem;
    color: var(--text-main);
}

.invoice-totals {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.invoice-totals-table {
    width: 300px;
    border-collapse: collapse;
}

.invoice-totals-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.invoice-totals-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.invoice-totals-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--black);
}

.invoice-totals-table tr:last-child td {
    border-bottom: none;
    font-size: 1.2rem;
    color: var(--primary-red);
    font-weight: 700;
}

@media (max-width: 480px) {
    .invoice-items-table {
        font-size: 0.85rem;
    }
    
    .invoice-items-table th,
    .invoice-items-table td {
        padding: 8px 10px;
    }
    
    .invoice-totals-table {
        width: 100%;
    }
}

/* ── Detail Page Layout ── */
.detail-header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem 5%;
}

.detail-main {
    background: transparent;
    align-items: flex-start;
    padding-top: 2rem;
}

.detail-footer {
    padding: 2rem 5% 1rem;
    background: var(--off-white);
}

.detail-footer-light {
    padding: 2rem 5% 1rem;
    background: white;
}

.detail-main-upload {
    background: var(--off-white);
    min-height: calc(100vh - 150px);
    padding-top: 1.5rem;
}

.logo-img {
    height: 35px;
}

/* ── Detail Page Header ── */
.detail-page-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-page-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-page-header-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-page-title {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 3px;
}

.detail-page-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}

.detail-back-link:hover {
    color: var(--primary-red);
}

/* ── Detail Banner ── */
.detail-banner-wrapper {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

.detail-summary-banner {
    background: linear-gradient(135deg, #155724, #2d7a3e);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: white;
}

.summary-banner-item {
    text-align: center;
}

.summary-banner-label {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.summary-banner-value {
    margin: 5px 0 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-banner-value-sm {
    margin: 5px 0 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.summary-banner-amount {
    margin: 5px 0 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-banner-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.3);
}

/* ── Detail Section Wrapper ── */
.detail-section-wrapper {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.detail-section-wrapper:last-child {
    margin-bottom: 0;
}

.detail-layout {
    grid-column: 1 / -1;
}

/* ── Detail Card Title ── */
.detail-card-title {
    margin: 0 0 1.25rem 0;
    color: var(--black);
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.detail-card-title i {
    color: var(--primary-red);
}

.detail-card-subtitle {
    margin: 0 0 1rem 0;
    color: var(--black);
    font-size: 1rem;
}

.detail-card-subtitle i {
    color: var(--primary-red);
}

/* ── Detail Grid ── */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-item-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.detail-item-value {
    font-weight: 600;
    color: var(--black);
}

/* ── Detail Info Grid ── */
.detail-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ── Detail Info Stack ── */
.detail-info-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* ── Detail Right Column ── */
.detail-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.6s ease-out backwards;
}

/* ── Detail Action List ── */
.detail-action-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-action-list-vertical {
    flex-direction: column;
}

.detail-action-btn {
    padding: 10px 15px;
    border: 1px solid #eee;
    background: var(--off-white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    transition: 0.3s;
    text-align: left;
}

.detail-action-btn:hover {
    background: white;
}

.detail-action-btn-danger {
    padding: 10px 15px;
    border: 1px solid #721c24;
    background: white;
    color: #721c24;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    text-align: left;
}

.detail-action-btn-danger:hover {
    background: #721c24;
    color: white;
}

.detail-action-btn-primary {
    padding: 10px 15px;
    border: 1px solid var(--primary-red);
    background: var(--primary-red);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    text-align: left;
    display: inline-flex;
    align-items: center;
}

.detail-action-btn-primary:hover {
    background: var(--dark-red);
    border-color: var(--dark-red);
}

/* ── Progress Box ── */
.progress-box {
    background: var(--off-white);
    border-radius: 10px;
    padding: 15px;
}

.progress-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.progress-label {
    color: var(--text-muted);
}

.progress-value {
    font-weight: 600;
    color: var(--black);
}

.progress-bar-container {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-container.progress-bar-sm {
    height: 6px;
    border-radius: 3px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 5px;
}

.progress-bar-fill.progress-bar-full {
    width: 100%;
    background: linear-gradient(90deg, #155724, #28a745);
}

/* ── Construction Progress ── */
.construction-progress-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.construction-progress-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.construction-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

/* ── Carousel Styles ── */
.detail-carousel-wrapper {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

.carousel-slide-content {
    text-align: center;
    color: white;
}

.carousel-slide-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.carousel-slide-content p {
    font-size: 1.2rem;
    font-weight: 600;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--black);
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-btn-prev {
    left: 15px;
}

.carousel-btn-next {
    right: 15px;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dot.active {
    background: var(--primary-red);
}

/* ── Ticket Styles ── */
.detail-ticket-card {
    padding: 2rem 1.5rem;
    animation: fadeIn 0.4s ease-out backwards;
    align-self: start;
}

.detail-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ticket-subject-header {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.ticket-subject-title {
    margin: 0;
    color: var(--black);
    font-size: 1.3rem;
    line-height: 1.4;
}

.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-message {
    padding: 1.5rem;
    min-height: auto;
    border-left: 4px solid var(--primary-red);
}

.ticket-message-agent {
    background: #f8faff;
    border-left-color: #1976d2;
}

.ticket-message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ticket-message-agent .ticket-message-header {
    border-bottom-color: #e3f2fd;
}

.ticket-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.ticket-avatar-user {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
}

.ticket-avatar-agent {
    background: #1976d2;
}

.ticket-sender-name {
    font-weight: 600;
    color: var(--black);
    font-size: 0.95rem;
}

.ticket-sender-role {
    font-size: 0.8rem;
}

.ticket-message-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.ticket-message-body {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
}

.ticket-attachment {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--off-white);
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 0.85rem;
}

.ticket-attachment i:first-child {
    color: var(--primary-red);
    font-size: 1.2rem;
}

.ticket-attachment-name {
    font-weight: 600;
    color: var(--black);
}

.ticket-attachment-size {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.ticket-attachment-download {
    margin-left: 10px;
    color: var(--text-muted);
    transition: 0.3s;
}

.ticket-attachment-download:hover {
    color: var(--primary-red);
}

.ticket-reply-form {
    padding: 1.5rem;
    min-height: auto;
    border: 2px dashed #dee2e6;
    margin-top: 0.5rem;
}

/* ── Upload Detail Styles ── */
.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.detail-header-title {
    margin: 0;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-back-btn {
    padding: 10px 15px;
    border: 1px solid #eee;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.detail-back-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.preview-section {
    background: #f5f5f5;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
}

.preview-image-container {
    position: relative;
    max-width: 100%;
    max-height: 70vh;
}

.preview-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.02);
}

.preview-image.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

.zoom-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: white;
    padding: 8px 12px;
    border-radius: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.zoom-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.zoom-btn:hover {
    transform: scale(1.1);
}

.zoom-btn-reset {
    background: #6c757d;
}

.fullscreen-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    color: var(--primary-red);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.fullscreen-btn:hover {
    background: var(--primary-red);
    color: white;
}

.detail-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.detail-card-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card-header h3 i {
    color: var(--primary-red);
}

.detail-card-header .ref {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-card-body {
    padding: 1.5rem;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    color: var(--black);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h4 i {
    color: var(--primary-red);
}

.metadata-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.metadata-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.metadata-list li:last-child {
    border-bottom: none;
}

.meta-label {
    color: var(--text-muted);
}

.meta-value {
    font-weight: 600;
    color: var(--black);
}

.meta-value.code {
    font-family: monospace;
    font-size: 0.8rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 150px;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
}

.btn-action.btn-primary {
    background: var(--primary-red);
    color: white;
}

.btn-action.btn-primary:hover {
    opacity: 0.9;
}

.btn-action.btn-secondary {
    background: white;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-action.btn-secondary:hover {
    background: var(--primary-red);
    color: white;
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.fullscreen-overlay.active {
    display: flex;
}

.fullscreen-overlay img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    border: none;
    background: white;
    color: var(--primary-red);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s;
}

.fullscreen-close:hover {
    background: var(--primary-red);
    color: white;
}

/* ── Invoice Info Grid ── */
.invoice-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--off-white);
    border-radius: 8px;
}

.invoice-info-item {
    display: flex;
    flex-direction: column;
}

.invoice-info-label {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.invoice-info-value {
    margin: 5px 0 0;
    font-weight: 600;
    color: var(--black);
}

.invoice-label {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.invoice-pv-summary {
    padding: 1rem;
    background: rgba(21, 87, 36, 0.1);
    border-radius: 8px;
    border-left: 4px solid #155724;
    margin-bottom: 2rem;
    color: #155724;
    font-weight: 600;
}

.invoice-payment-info {
    margin-bottom: 2rem;
}

.invoice-thank-you {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.invoice-thank-you .text-primary {
    font-size: 1.1rem;
}

/* ── Button Variants ── */
.btn-outline-danger {
    padding: 8px 12px;
    border: 1px solid #721c24;
    background: white;
    color: #721c24;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
}

.btn-outline-danger:hover {
    background: #721c24;
    color: white;
}

.btn-outline-primary {
    padding: 8px 12px;
    border: 1px solid #0d6efd;
    background: white;
    color: #0d6efd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
}

.btn-outline-primary:hover {
    background: #0d6efd;
    color: white;
}

.btn-primary {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-red);
    border-color: var(--dark-red);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column;
    }
    .btn-action {
        width: 100%;
    }
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .summary-banner-divider {
        display: none;
    }
    .detail-summary-banner {
        justify-content: center;
        text-align: center;
    }
    .detail-info-row {
        grid-template-columns: 1fr;
    }
}

/* ── Form Card Styles ── */
.form-card {
    width: 100%;
    max-width: 1100px;
    padding: 2rem;
    animation: fadeIn 0.4s ease-out backwards;
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.form-card-title {
    color: var(--black);
    margin: 0;
    font-size: 1.5rem;
}

/* ── Form Grid ── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ── Form Label ── */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--black);
    font-weight: 600;
}

.form-label-required::after {
    content: ' *';
    color: var(--primary-red);
}

/* ── Form Actions ── */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    flex-wrap: wrap;
}

.form-actions .btn-cancel {
    flex-wrap: wrap;
}

/* ── Cancel Button ── */
.btn-cancel {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background: var(--white);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: var(--off-white);
}

/* ── Form Control Overrides ── */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.form-check-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

/* ── Responsive Form ── */
@media (max-width: 600px) {
    .form-card {
        padding: 1.5rem;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions button {
        width: 100%;
    }
}

/* ── Settings Page Styles ── */
.settings-nav-card {
    padding: 1.5rem 1rem;
    animation: fadeIn 0.4s ease-out backwards;
    align-self: start;
}

.settings-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-nav-list li {
    margin-bottom: 5px;
}

.settings-nav-item {
    display: block;
    padding: 12px 15px;
    color: var(--text-main);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.settings-nav-item:hover {
    background: var(--off-white);
    color: var(--primary-red);
}

.settings-nav-item.active {
    background: var(--off-white);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
}

.settings-nav-item i {
    width: 25px;
    text-align: center;
    margin-right: 5px;
}

.settings-content-card {
    padding: 2rem 1.5rem;
    animation: fadeIn 0.6s ease-out backwards;
}

.settings-content-title {
    margin-bottom: 1.5rem;
    color: var(--black);
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.settings-section-title {
    margin: 2rem 0 1rem;
    color: var(--black);
    font-size: 1.1rem;
}

.settings-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-toggle-row.border-bottom-0 {
    border-bottom: none;
}

.settings-toggle-label {
    font-weight: 600;
    color: var(--black);
}

.settings-toggle-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.settings-toggle-select {
    width: auto;
    min-width: 120px;
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid #eee;
    background: white;
    font-weight: bold;
    cursor: pointer;
}

.settings-action-btns {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin: 1rem 0 0;
    flex-wrap: wrap;
}

.btn-signout {
    padding: 10px 14px;
    border: 1px solid #eee;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary-red);
    transition: 0.3s;
}

.btn-signout:hover {
    background: var(--off-white);
}

@media (max-width: 768px) {
    .settings-toggle-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .settings-toggle-select {
        width: 100%;
        margin-top: 10px;
    }
}

/* ── Task Card Styles ── */
.tasks-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.4s ease-out backwards;
}

.task-card {
    padding: 1.5rem;
    min-height: auto;
    border-left: 4px solid #856404;
}

.task-card.task-card-high {
    border-left-color: #856404;
}

.task-card.task-card-medium {
    border-left-color: #1976d2;
}

.task-card.task-card-low {
    border-left-color: #6c757d;
}

.task-card.task-card-completed {
    border-left-color: #155724;
    opacity: 0.7;
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.task-priority {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-red);
}

.task-priority-medium {
    font-size: 0.8rem;
    font-weight: bold;
    color: #856404;
}

.task-priority-low {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-muted);
}

.task-done {
    font-size: 0.8rem;
    font-weight: bold;
    color: #155724;
}

.task-card-body {
    margin-bottom: 1rem;
}

.task-card-title {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 5px;
}

.task-card-title.text-strikethrough {
    text-decoration: line-through;
}

.task-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.task-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.task-meta-item {
    display: flex;
    flex-direction: column;
}

.task-meta-label {
    color: var(--text-muted);
    margin-bottom: 3px;
}

.task-meta-value {
    font-weight: 600;
    color: var(--black);
}

.task-meta-value.text-danger {
    color: var(--primary-red);
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.task-card-actions {
    display: flex;
    gap: 15px;
}

.task-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.task-action-btn:hover {
    color: var(--primary-red);
}

.task-complete-btn {
    padding: 6px 12px;
    border: 1px solid #eee;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.3s;
    color: #155724;
}

.task-complete-btn:hover {
    background: #d4edda;
}

.task-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.task-delete-btn:hover {
    color: var(--primary-red);
}

/* ── Search Box Inline ── */
.search-box-inline {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box-inline i {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.search-box-inline input {
    padding: 8px 15px 8px 30px;
    border: 1px solid #eee;
    border-radius: 6px;
    outline: none;
    font-family: 'Inter', sans-serif;
    min-width: 200px;
}

/* ── Transactions Grid ── */
.transactions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.transaction-card {
    padding: 1.5rem;
    min-height: auto;
}

.transaction-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.transaction-card-id {
    font-weight: 700;
    color: var(--black);
}

.transaction-card-body {
    margin-bottom: 1.2rem;
}

.transaction-card-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 5px;
}

.transaction-card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.transaction-card-footer {
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-red);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-card-amount-label {
    font-size: 0.85rem;
    font-weight: normal;
    color: var(--text-muted);
}

/* ── Sales Page Specific ── */
.sales-page-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sales-page-title {
    font-size: 1.5rem;
    color: var(--black);
}

.sales-page-actions {
    display: flex;
    gap: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--black);
}

.transactions-section {
    grid-column: 1 / -1;
    animation: fadeIn 0.6s ease-out backwards;
}

/* ── Ledger Grid ── */
.ledger-section {
    grid-column: 1 / -1;
    animation: fadeIn 0.6s ease-out backwards;
}

.ledger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ledger-card {
    padding: 1.5rem;
    min-height: auto;
    cursor: pointer;
}

.ledger-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ledger-card-title {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 5px;
}

.ledger-card-id {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ledger-card-method {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ledger-card-footer {
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ledger-card-amount {
    font-size: 1.2rem;
    font-weight: 700;
}

.ledger-card-amount-positive {
    color: #155724;
}

.ledger-card-amount-negative {
    color: var(--primary-red);
}

.ledger-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ── Notification Cards ── */
.notification-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.4s ease-out backwards;
}

.notification-card {
    padding: 1.5rem;
    position: relative;
    min-height: auto;
    transition: opacity 0.3s ease;
}

.notification-card-dismiss {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

.notification-card-dismiss:hover {
    color: var(--primary-red);
}

.notification-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notification-card-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-card-icon-info {
    background: #e3f2fd;
    color: #1976d2;
}

.notification-card-icon-success {
    background: #d4edda;
    color: #155724;
}

.notification-card-icon-warning {
    background: #fff3cd;
    color: #856404;
}

.notification-card-icon-danger {
    background: #f8d7da;
    color: #721c24;
}

.notification-card-icon-neutral {
    background: var(--off-white);
    color: var(--text-main);
    border: 1px solid #eee;
}

.notification-card-icon-task {
    background: #e0f7fa;
    color: #006064;
}

.notification-card-body {
    flex: 1;
}

.notification-card-title {
    margin: 0 0 5px 0;
    color: var(--black);
    padding-right: 20px;
}

.notification-card-text {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.notification-card-link {
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}

.notification-card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.notification-card-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.notification-clear-btn {
    padding: 8px 15px;
    border: 1px solid #eee;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: 0.3s;
}

.notification-clear-btn:hover {
    background: var(--off-white);
}

/* ── Page Header (Sales/Notifications style) ── */
.page-header-actions {
    display: flex;
    gap: 10px;
}

/* ── Reminder Cards ── */
.reminders-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.4s ease-out backwards;
}

.reminder-card {
    padding: 1.5rem;
    min-height: auto;
    border-left: 4px solid var(--text-muted);
}

.reminder-card-overdue {
    border-left-color: var(--primary-red);
}

.reminder-card-upcoming {
    border-left-color: #856404;
}

.reminder-card-today {
    border-left-color: #1976d2;
}

.reminder-card-tomorrow {
    border-left-color: var(--text-muted);
}

.reminder-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reminder-card-time {
    font-size: 0.8rem;
    font-weight: bold;
}

.reminder-card-time-overdue {
    color: var(--primary-red);
}

.reminder-card-body {
    margin-bottom: 1rem;
}

.reminder-card-title {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 5px;
}

.reminder-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.reminder-card-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    background: var(--off-white);
    padding: 10px;
    border-radius: 8px;
}

.reminder-card-contact-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reminder-card-contact-icon-phone {
    background: #e3f2fd;
    color: #1976d2;
}

.reminder-card-contact-icon-video {
    background: #e0f2f1;
    color: #0277bd;
}

.reminder-card-contact-icon-doc {
    background: #f3e5f5;
    color: #00695c;
}

.reminder-card-contact-icon-team {
    background: #e8eaf6;
    color: #6a1b9a;
}

.reminder-card-contact-name {
    font-weight: 600;
    color: var(--black);
}

.reminder-card-contact-link {
    color: var(--primary-red);
    text-decoration: none;
}

.reminder-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.reminder-card-actions {
    display: flex;
    gap: 15px;
}

.reminder-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.reminder-action-btn:hover {
    color: var(--primary-red);
}

.reminder-done-btn {
    padding: 6px 12px;
    border: 1px solid #eee;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.3s;
    color: #155724;
}

.reminder-done-btn:hover {
    background: #d4edda;
}

/* ── Support Page ── */
.support-layout {
    grid-column: 1 / -1;
}

.support-form-card {
    padding: 2rem 1.5rem;
    animation: fadeIn 0.4s ease-out backwards;
    align-self: start;
}

.support-form-title {
    margin-bottom: 1.5rem;
    color: var(--black);
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.support-form-group {
    margin-bottom: 1rem;
}

.support-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.support-form-input,
.support-form-select,
.support-form-textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--off-white);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.support-form-textarea {
    resize: vertical;
}

.support-tickets-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.6s ease-out backwards;
}

.support-ticket-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.support-ticket-list-title {
    margin: 0;
    color: var(--black);
    font-size: 1.2rem;
}

.support-ticket-filter {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #eee;
    outline: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.support-ticket-card {
    padding: 1rem;
    min-height: auto;
    border-left: 4px solid var(--text-muted);
}

.support-ticket-card-progress {
    border-left-color: #856404;
}

.support-ticket-card-open {
    border-left-color: #1976d2;
}

.support-ticket-card-resolved {
    border-left-color: #155724;
    opacity: 0.8;
}

.support-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.support-ticket-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.support-ticket-category {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.support-ticket-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.support-ticket-link {
    background: none;
    border: none;
    color: var(--primary-red);
    cursor: pointer;
    padding: 0;
    transition: 0.3s;
}

.support-ticket-link:hover {
    color: var(--text-muted);
}

.support-ticket-title {
    font-size: 1rem;
    color: var(--black);
    margin: 0;
}

/* ── Form Grid Layout ── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ── Delete Button Style ── */
.detail-action-btn-danger {
    padding: 8px 15px;
    border: 1px solid #721c24;
    background: white;
    color: #721c24;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

.detail-action-btn-danger:hover {
    background: #721c24;
    color: white;
}

/* ── Form Card Header ── */
.form-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* ── Form Checkbox ── */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--black);
    font-weight: 600;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-red);
}

.form-checkbox label {
    cursor: pointer;
    margin: 0;
}

/* ── Form Section Title ── */
.form-section-title {
    margin-bottom: 1.5rem;
    color: var(--primary-red);
    font-size: 1.1rem;
}

.form-section-title.border-top {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

/* ── Addresses Page ── */
.addresses-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.4s ease-out backwards;
}

.address-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--text-muted);
    position: relative;
}

.address-card-home {
    border-left-color: #155724;
}

.address-card-office {
    border-left-color: #856404;
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.address-card-tags {
    display: flex;
    gap: 8px;
}

.address-card-tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.address-card-tag-home {
    background: #d4edda;
    color: #155724;
}

.address-card-tag-shipping {
    background: #e3f2fd;
    color: #1976d2;
}

.address-card-tag-office {
    background: #fff3cd;
    color: #856404;
}

.address-card-tag-billing {
    background: #f3e5f5;
    color: #6a1b9a;
}

.address-card-actions {
    display: flex;
    gap: 5px;
}

.address-card-btn {
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.address-card-btn-edit {
    border: 1px solid #0d6efd;
    background: white;
    color: #0d6efd;
}

.address-card-btn-delete {
    border: 1px solid #721c24;
    background: white;
    color: #721c24;
}

.address-card-name {
    font-size: 1rem;
    color: var(--black);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.address-card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.address-card-contact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Bank Info Box ── */
.bank-info-box {
    background: var(--off-white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.bank-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bank-info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.bank-info-value {
    font-weight: 600;
    color: var(--black);
}

/* ── IFSC Result Box ── */
.ifsc-result {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.ifsc-result-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.ifsc-result-success h5 {
    color: #155724;
}

.ifsc-result-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
}

.ifsc-result-warning h5 {
    color: #856404;
}

/* ── Upload Box ── */
.upload-box {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: var(--off-white);
    cursor: pointer;
    transition: 0.3s;
}

.upload-box:hover {
    border-color: var(--primary-red);
}

.upload-box input[type="file"] {
    display: none;
}

.upload-box i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .tasks-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== MEMBER DASHBOARD VIEW STYLES ========== */

/* Profile Info Card */
.profile-info-card {
    grid-column: 1 / -1;
    padding: 1rem;
}

.profile-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-row-1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.3);
    flex-shrink: 0;
}

.profile-meta {
    min-width: 0;
    word-break: break-word;
}

.profile-meta h2 {
    font-size: 1.1rem;
    color: var(--black);
    margin: 0 0 2px 0;
}

.profile-meta p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0 0 4px 0;
}

.profile-user-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.profile-user-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.profile-user-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-user-value {
    font-weight: 600;
    color: var(--black);
    font-size: 0.85rem;
}

.profile-row-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.profile-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.6rem;
    background: var(--off-white);
    border-radius: 6px;
}

.profile-detail-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-detail-value {
    font-weight: 600;
    color: var(--black);
    font-size: 0.8rem;
}

.profile-detail-value.highlight {
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 700;
}

.profile-detail-value.success {
    color: #155724;
    font-size: 0.85rem;
}

.referral-code-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-icon {
    color: var(--primary-red);
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.75rem;
}

.copy-icon:hover {
    transform: scale(1.2);
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

/* Verification Card */
.verification-card {
    grid-column: 1 / -1;
}

.verification-alert {
    background: #fff3cd;
    color: #856404;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border-left: 4px solid #ffeeba;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.verification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.verification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    background: var(--off-white);
    border-radius: 8px;
    border: 1px solid #eee;
}

.verification-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: var(--text-muted);
    flex-shrink: 0;
}

.verification-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.verification-label {
    font-weight: 600;
    color: var(--black);
    word-break: break-word;
    line-height: 1.2;
}

.verification-status {
    font-size: 0.7rem;
    padding: 4px 10px;
    width: fit-content;
}

/* Earnings Summary Cards (full-row) */
.earnings-card {
    grid-column: 1 / -1;
}

/* Chart legend spacing */
.chart-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.activity-item span:last-child {
    color: var(--primary-red);
    font-size: 0.8rem;
}

/* Recent payouts table */
.recent-payouts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.recent-payouts-table th,
.recent-payouts-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.recent-payouts-table th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.recent-payouts-table td.amount {
    font-weight: 600;
    color: var(--primary-red);
    text-align: right;
}

.recent-payouts-table td.date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Recent signups avatar grid */
.signups-avatar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0.5rem 0;
}

.signup-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.signup-avatar:hover {
    transform: scale(1.15);
}

/* Recent team sales table */
.team-sales-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.team-sales-table th,
.team-sales-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.team-sales-table th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.team-sales-table td.text-right {
    text-align: right;
}

.team-sales-table td.pv {
    color: var(--primary-red);
    font-weight: 600;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-row-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .profile-row-2 {
        grid-template-columns: 1fr;
    }
    .profile-user-info {
        gap: 1rem;
    }
}

/* ========== TEAM LIST VIEW STYLES ========== */

.team-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
}

.search-box input {
    padding: 8px 12px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-red);
}

.team-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

.team-meta-row:last-of-type {
    border-bottom: none;
}

.team-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
    background: var(--off-white);
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.8rem;
}

.team-details-grid > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-action-ribbon {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.team-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: var(--off-white);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.team-action-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid #eee;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    gap: 5px;
}

/* ========== ACCOUNTS VIEW STYLES ========== */

.ledger-section {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
}

.ledger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ledger-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ledger-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #ffe5e5;
}

.ledger-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary-red);
    opacity: 0;
    transition: var(--transition);
}

.ledger-card:hover::before {
    opacity: 1;
}

.ledger-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ledger-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.ledger-card-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.ledger-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #eee;
}

.ledger-card-method {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.ledger-card-amount {
    font-size: 1.2rem;
    font-weight: 700;
}

.ledger-card-amount-positive { color: #28a745; }
.ledger-card-amount-negative { color: var(--primary-red); }

.ledger-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    visibility: hidden;
    height: 0;
    transition: var(--transition);
}

.ledger-card:hover .ledger-card-actions {
    opacity: 1;
    visibility: visible;
    height: 30px;
    margin-top: 15px;
}

/* Stat Cards & Charts for Accounts */
.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    animation: fadeIn 0.5s ease-out backwards;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary-red);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-info h3 { font-size: 1.5rem; font-weight: 800; color: var(--black); margin-bottom: 2px; }
.stat-info p { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin: 0; }

.list-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.data-list { list-style: none; padding: 0; margin: 0; }
.data-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
}
.data-item:last-child { border-bottom: none; }

/* ========== PROFILE VIEW STYLES ========== */

.profile-avatar-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    margin-top: -50px;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.profile-section-title {
    margin-bottom: 1rem;
    color: var(--black);
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}
.profile-btn-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.profile-btn {
    padding: 8px 12px;
    border: 1px solid var(--primary-red);
    background: white;
    color: var(--primary-red);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.profile-btn:hover {
    background: var(--primary-red);
    color: white;
}
.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}
.social-icon:hover {
    transform: translateY(-2px);
    color: white;
}
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.form-section-title {
    margin: 1.5rem 0 1rem 0;
    color: var(--black);
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 1.5rem;
}
.form-select {
    width: 100%;
    padding: 12px 15px;
    background: var(--off-white);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    outline: none;
    font-family: 'Inter', sans-serif;
    color: var(--black);
}
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--off-white);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: var(--black);
    font-family: 'Inter', sans-serif;
    resize: vertical;
    outline: none;
    transition: var(--transition);
}
.form-textarea:focus {
    border-color: var(--primary-red);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

/* ========== FORM CARD STYLES ========== */

.form-card {
    width: 100%;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-card-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.form-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--black);
}

.detail-back-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.detail-back-link:hover {
    background: var(--primary-red);
    color: white;
}

.btn-cancel {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: transparent;
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

/* ========== MY CONTACTS VIEW STYLES ========== */

.detail-page-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-page-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    margin: 0;
}

.detail-page-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 4px 0 0 0;
}

.contact-card {
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* ========== UPDATE PAN / BANK INFO STYLES ========== */

.bank-info-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.bank-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.bank-info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bank-info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
}

.upload-box {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.upload-box:hover {
    border-color: var(--primary-red);
    background: #fff;
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-box i {
    font-size: 2.5rem;
    color: #ccc;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.upload-box:hover i {
    color: var(--primary-red);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
    cursor: pointer;
}

/* ========== EDIT BANK STYLES ========== */

.ifsc-result {
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-red);
    background: #f8f9fa;
}

.ifsc-result-success {
    border-left-color: #28a745;
    background: #d4edda;
}

.ifsc-result-success h5 {
    color: #155724;
}

.ifsc-result-warning {
    border-left-color: #ffc107;
    background: #fff3cd;
}

.ifsc-result-warning h5 {
    color: #856404;
}

/* ========== ADDRESS STYLES ========== */

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.4s ease-out backwards;
}

.address-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.address-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* ========== FORM ROW (2-COLUMN GRID) ========== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* ========== ADDRESS FORM WRAPPER ========== */

.address-form-wrapper {
    grid-column: 1 / -1;
    max-width: 700px;
}



/* ========== FORM ACTIONS ========== */

.form-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.btn-action-lg {
    min-width: 120px;
    text-decoration: none;
}



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

.grid-col-full { grid-column: 1 / -1; }
.chart-card-order { padding: 1.5rem; min-height: auto; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
}

.search-box input {
    padding: 8px 12px 8px 35px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    outline: none;
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-paid, .status-delivered { background: #d4edda; color: #155724; }
.status-pending, .status-processing { background: #fff3cd; color: #856404; }
.status-failed, .status-cancelled { background: #f8d7da; color: #721c24; }

.booking-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.booking-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booking-info-item-top {
    border-top: 1px dashed #eee;
    padding-top: 0.5rem;
}

.booking-info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.booking-info-value {
    font-weight: 600;
    color: var(--text-main);
}

.booking-info-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-red);
}

.order-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn-view, .btn-invoice {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-view { background: var(--off-white); color: var(--text-main); }
.btn-view:hover { background: var(--primary-red); color: white; }
.btn-invoice { background: rgba(230, 57, 70, 0.1); color: var(--primary-red); }
.btn-invoice:hover { background: var(--primary-red); color: white; }

.pagination-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 2rem;
    justify-content: center;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.page-btn:hover { background: var(--off-white); }
.page-btn.active { background: var(--primary-red); color: white; border-color: var(--primary-red); }


/* ========== GOLDEN JACKPOT LIST VIEW ========== */

.jackpot-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Alert Banner */
.alert-row {
    width: 100%;
}

.alert-info-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-info-banner i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Join Plan Section */
.jackpot-join-section {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
}

.jackpot-join-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.jackpot-join-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.jackpot-join-label i {
    font-size: 1.3rem;
    color: var(--primary-red);
}

.jackpot-join-label span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--black);
}

.jackpot-join-label small {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
    margin-left: 32px;
}

.jackpot-join-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.jackpot-plan-select {
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-main);
    background: var(--off-white);
}

.jackpot-plan-select:focus {
    border-color: var(--primary-red);
    background: var(--white);
}

/* Card sub-info line */
.jackpot-card-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Info row inside upload-preview */
.jackpot-info-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

/* Cancelled card look */
.jackpot-card-cancelled {
    opacity: 0.75;
}

/* Empty state */
.jackpot-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.jackpot-empty-icon {
    font-size: 3.5rem;
    color: #ddd;
    margin-bottom: 1.25rem;
    display: block;
}

.jackpot-empty p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.jackpot-empty small {
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .jackpot-join-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .jackpot-join-controls {
        width: 100%;
    }
    .jackpot-plan-select {
        width: 100%;
        min-width: unset;
    }
}


/* ========== REMIT JACKPOT LIST VIEW ========== */

.remit-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Page header row */
.remit-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.remit-back-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: var(--transition);
}

.remit-back-link:hover {
    background: var(--primary-red);
    color: white;
}

.remit-header-sub {
    font-size: 0.88rem;
    margin: 2px 0 0 0;
}

.remit-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.remit-status-msg {
    font-size: 0.88rem;
    color: #0c5460;
    background: #d1ecf1;
    border-radius: 6px;
    padding: 6px 12px;
    border-left: 3px solid #17a2b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Summary banner gradient override */
.remit-summary-gradient {
    background: linear-gradient(135deg, #b8860b, #daa520);
}

/* Section heading */
.remit-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Action row inside each week card */
.week-status-card-actions {
    margin-top: 10px;
    display: flex;
    gap: 6px;
}

.week-action-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.week-action-link-primary {
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary-red);
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.week-action-link-primary:hover {
    background: var(--primary-red);
    color: white;
}

.week-action-link-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.week-action-link-success:hover {
    background: #155724;
    color: white;
}

/* Empty state */
.remit-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.remit-empty-icon {
    font-size: 3.5rem;
    color: #ddd;
    margin-bottom: 1.25rem;
    display: block;
}

.remit-empty p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .remit-header-left {
        flex-wrap: wrap;
        gap: 8px;
    }
    .remit-header-right {
        justify-content: flex-start;
    }
}


/* ========== EMI PLANS VIEW ========== */

.emi-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.emi-card-item {
    transition: var(--transition);
}

.emi-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}


/* ========== EMI REMITTANCE LIST VIEW ========== */

/* Green banner gradient for EMI detail page */
.emi-summary-gradient {
    background: linear-gradient(135deg, #155724, #2d7a3e);
}

