:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #f8fafc0f;
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #22d3ee;
    --income-color: #10b981;
    --expense-color: #ef4444;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: var(--card-bg);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
    padding-left: 0.5rem;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-links li {
    padding: 0.85rem 1rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-links li:hover {
    background-color: var(--secondary-color);
    color: var(--text-primary);
}

.nav-links li.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-links li i {
    width: 20px;
    text-align: center;
}

.treasurer-info {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.treasurer-info .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.treasurer-info .name {
    font-weight: 600;
    font-size: 0.9rem;
}

.treasurer-info .phone {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

header .subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Cards & Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.income .stat-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--income-color);
}

.expense .stat-icon {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--expense-color);
}

.balance .stat-icon {
    background-color: rgba(34, 211, 238, 0.1);
    color: var(--accent);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.stat-details h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    min-width: 120px;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary i {
    color: var(--text-primary);
    opacity: 1;
}

.btn-text {
    background: transparent;
    color: var(--primary-color);
}

.btn-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

/* Table Styling */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
    white-space: nowrap;
}

td.wrap-cell {
    white-space: normal;
    min-width: 150px;
}

.type-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-income {
    background: rgba(16, 185, 129, 0.1);
    color: var(--income-color);
}

.type-expense {
    background: rgba(239, 68, 68, 0.1);
    color: var(--expense-color);
}

/* Modal & Form Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    /* Enable scrolling */
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 650px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

input,
select {
    background-color: #1e293b;
    border: 1px solid var(--glass-border);
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

select option {
    background-color: #1e293b;
    color: var(--text-primary);
}

input:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.category-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#custom-category {
    border-style: dashed;
    border-color: var(--primary-color);
    animation: fadeIn 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.content-section.active {
    display: block;
}

/* PDF Bill Basic Revert Style */
.bill-page {
    background-color: white;
    color: #333;
    padding: 15mm 18mm;
    /* 18mm internal safety margin on each side */
    width: 210mm;
    /* Use full A4 width */
    margin: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}

.bill-page img {
    max-width: 100%;
}

.bill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2.5px solid #3b82f6;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.pdf-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.org-info {
    text-align: center;
    flex: 1;
}

.org-info h1 {
    font-size: 2rem;
    margin: 0;
    color: #000;
}

.org-info h2 {
    font-size: 0.9rem;
    margin: 0;
    color: #666;
}

.org-info p {
    font-size: 0.8rem;
    margin: 0;
    color: #888;
}

.bill-title {
    text-align: right;
    min-width: 140px;
    padding-right: 1.5rem;
    /* Protection for right header */
}

.bill-title h3 {
    font-size: 1.25rem;
    margin: 0;
    color: #3b82f6;
    font-weight: 800;
    /* Bolder for visibility */
}

.bill-table th:last-child,
.bill-table td:last-child {
    text-align: right;
    padding-right: 20px;
}

.bill-meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2rem;
    gap: 40px;
}

.bill-to {
    flex: 1;
}

.bill-details {
    text-align: right;
    flex-shrink: 0;
    padding-right: 1rem;
}

.bill-meta .label {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #999;
}

.bill-to h4 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.bill-to p {
    font-size: 0.85rem;
    color: #666;
    margin: 2px 0;
}

.bill-details {
    text-align: right;
    padding-right: 1.5rem;
    /* Extra safety padding */
}

.bill-total {
    text-align: right;
    margin: 2rem 0;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    padding-right: 1.5rem;
    /* Protection for total amount */
}

.bill-total p {
    font-size: 1.5rem;
    font-weight: 800;
}

.bill-footer {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 3rem;
    border-top: 1px solid #3b82f6;
    padding-top: 1.5rem;
}

.treasurer-sign {
    display: flex;
    align-self: flex-end;
    /* Keep signature on the right */
    align-items: center;
    gap: 15px;
}

.committee-display {
    margin-top: 2rem;
    border-top: 1px solid #3b82f6;
    padding-top: 1rem;
    width: 100%;
}

.committee-display .section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.committee-pdf-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.committee-member {
    text-align: center;
    font-size: 0.6rem;
}

.committee-member img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    margin-bottom: 4px;
    object-fit: cover;
}

.pdf-treasurer-photo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid #1e293b;
    object-fit: cover;
}

.signature-container {
    position: relative;
    height: 50px;
}

.pdf-signature {
    height: 100px;
    width: auto;
    position: absolute;
    bottom: -20px;
    left: 0;
    mix-blend-mode: multiply;
}

.sign-text p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 700;
}

.thank-you {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    font-style: italic;
    color: #64748b;
}

/* Team Section Styling */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.team-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.avatar-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    padding: 6px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.avatar-wrap::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.team-card.accent-blue .avatar-wrap {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.team-card.accent-rose .avatar-wrap {
    background: linear-gradient(135deg, #9f1239, #f43f5e);
}

.team-card.accent-green .avatar-wrap {
    background: linear-gradient(135deg, #065f46, #10b981);
}

.team-card.accent-amber .avatar-wrap {
    background: linear-gradient(135deg, #92400e, #f59e0b);
}

.team-card.accent-purple .avatar-wrap {
    background: linear-gradient(135deg, #5b21b6, #8b5cf6);
}

.avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #0f172a;
    border: 3px solid #0f172a;
}

.member-info {
    position: relative;
    z-index: 1;
}

.member-info h4 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.member-info .role {
    display: inline-block;
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 100px;
    margin-bottom: 0.5rem;
}

.member-info .role-ta {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Card */
.contact-card {
    background: rgba(99, 102, 241, 0.05);
    border: 1px dashed var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.contact-grid .btn {
    min-width: 160px;
    justify-content: center;
}

/* Settings Styling */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.settings-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.settings-details h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.settings-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.settings-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {

    /* Main Layout Restructuring */
    .app-container {
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }

    /* Bottom Navigation Bar for Mobile */
    .sidebar {
        width: 100%;
        height: 70px;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 1000;
        padding: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    }

    .logo,
    .treasurer-info,
    .sidebar .logo-text,
    .nav-links li span {
        display: none !important;
    }

    .nav-links {
        display: flex;
        width: 100%;
        justify-content: space-evenly;
        padding: 0;
        margin: 0;
        margin-top: -10px;
        /* Adjust alignment to look like bottom nav items */
    }

    .nav-links li {
        border-radius: 12px;
        padding: 12px;
        margin: 0;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-links li.active {
        background: transparent;
        border-left: none;
    }

    .nav-links li.active i {
        background: var(--primary-color);
        color: white;
        padding: 12px;
        border-radius: 50%;
        box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
        transform: translateY(-15px);
        border: 4px solid var(--bg-color);
        font-size: 1.3rem;
    }

    .nav-links li i {
        font-size: 1.4rem;
        color: var(--text-secondary);
        transition: all 0.3s ease;
    }

    /* Main Content Adjustments */
    .main-content {
        margin-left: 0;
        margin-bottom: 70px;
        /* Space for bottom nav */
        padding: 1rem;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    /* Header Enhancements */
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    header h1 {
        font-size: 1.6rem;
    }

    header .subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Cards & Stats */
    .card {
        padding: 1rem;
        border-radius: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
        gap: 1.25rem;
        align-items: center;
        border-radius: 16px;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .stat-details h2 {
        font-size: 1.5rem;
    }

    /* Form Elements */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group input,
    .filter-group select {
        width: 100%;
        flex: 1;
        padding: 0.8rem 1rem;
    }

    /* Table Responsiveness - Convert to Card View for Mobile */
    .table-container {
        background: transparent;
        padding: 0;
        border: none;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 1rem;
    }

    td {
        border: none;
        position: relative;
        padding: 0.5rem 0 0.5rem 40%;
        text-align: right;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        min-height: 40px;
    }

    td:before {
        position: absolute;
        top: 0.5rem;
        left: 0;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        height: 100%;
    }

    /* Add headers to cells from index.html mapping */
    #all-transactions-table td:nth-of-type(1):before,
    #recent-transactions-table td:nth-of-type(1):before {
        content: "Date";
    }

    #all-transactions-table td:nth-of-type(2):before,
    #recent-transactions-table td:nth-of-type(2):before {
        content: "Ref/Title";
    }

    #all-transactions-table td:nth-of-type(3):before,
    #recent-transactions-table td:nth-of-type(3):before {
        content: "Name/Type";
    }

    #all-transactions-table td:nth-of-type(4):before,
    #recent-transactions-table td:nth-of-type(4):before {
        content: "Type/Amt";
    }

    #all-transactions-table td:nth-of-type(5):before,
    #recent-transactions-table td:nth-of-type(5):before {
        content: "Category";
    }

    #all-transactions-table td:nth-of-type(6):before {
        content: "Amount";
    }

    #all-transactions-table td:nth-of-type(7):before {
        content: "Action";
        content-visibility: hidden;
    }

    /* Action Buttons in Cell */
    td div[style*="gap: 8px;"] {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .btn:not(.btn-small) {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }

    .header-right .btn {
        width: 100%;
        margin-top: 5px;
    }

    /* Modals */
    .modal-content {
        padding: 1.5rem;
        margin: 1rem auto;
        width: 95%;
        border-radius: 20px;
        margin-bottom: 80px;
        /* Don't hide behind nav */
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-footer {
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 1.5rem;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }

    /* Committee Area */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Settings Area */
    .settings-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .settings-actions {
        justify-content: center;
        width: 100%;
    }

    .settings-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-left h1 {
        font-size: 1.4rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .contact-grid .btn {
        width: 100%;
    }
}