* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF5722;
    --primary-dark: #E64A19;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #F5F5F5;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
    --nav-bg: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding-bottom: 70px;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

/* Header */
.header {
    background-color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-icon,
.notification-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.menu-icon svg,
.notification-icon svg {
    width: 100%;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
}

.logo-icon {
    color: var(--primary-color);
    font-weight: 900;
}

/* Sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-close {
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.sidebar-close svg {
    width: 100%;
    height: 100%;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--text-dark);
}

.sidebar-item:hover {
    background-color: var(--bg-light);
}

.sidebar-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.sidebar-item span {
    font-size: 14px;
    font-weight: 500;
}

/* User Section */
.user-section {
    background-color: var(--white);
    padding: 20px;
    margin: 15px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E0E0E0, #BDBDBD);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
}

.user-info h2 {
    font-size: 16px;
    margin-bottom: 5px;
}

.user-info h2 .user-name {
    color: var(--primary-color);
}

.user-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Banner Section */
.banner {
    margin: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Credits Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin: 20px 0 10px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.section-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.credit-card {
    background-color: var(--white);
    margin: 0 15px 15px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.credit-id {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 8;
}

.progress-bg {
    stroke: #E0E0E0;
}

.progress-bar {
    stroke: var(--primary-color);
    stroke-linecap: round;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: bold;
    color: var(--text-dark);
}

.credit-details {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.credit-detail {
    text-align: center;
}

.credit-detail-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.credit-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Quick Actions */
.quick-actions {
    padding: 20px 15px;
}

.quick-actions h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.action-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.4);
}

.action-btn svg {
    width: 32px;
    height: 32px;
}

/* Payment Points */
.payment-section {
    background-color: var(--white);
    margin: 15px;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.payment-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.payment-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

.payment-arrow {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    background-color: var(--nav-bg);
    display: flex;
    justify-content: space-around;
    padding: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 10px 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-light);
    position: relative;
    border-bottom: 3px solid transparent;
}

.nav-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* Detail Page Styles */
.detail-header {
    background-color: var(--white);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0;
    width: 24px;
    height: 24px;
}

.detail-header h1 {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    margin-right: 24px;
}

.detail-section {
    background-color: var(--white);
    margin: 15px;
    padding: 20px;
    border-radius: 12px;
}

.detail-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: var(--text-light);
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.expand-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: var(--text-dark);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

/* Table */
.payment-table {
    width: 100%;
    margin-top: 20px;
}

.payment-table thead {
    background-color: var(--bg-light);
}

.payment-table th {
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.payment-table td {
    padding: 15px 8px;
    text-align: center;
    font-size: 14px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.payment-table tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
.action-buttons-bottom {
    display: flex;
    gap: 10px;
    padding: 15px;
    background-color: var(--white);
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

/* Container for Cards */
.container {
    padding: 15px;
    padding-bottom: 80px;
}

/* Card Styles */
.card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.card-body {
    padding: 15px 20px;
}

.card-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.card-label {
    font-size: 13px;
    color: var(--text-light);
}

.card-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.card-footer {
    padding: 12px 20px;
    background-color: var(--bg-light);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.badge-warning {
    background-color: #FFF3E0;
    color: #F57C00;
}

.badge-inactive {
    background-color: #F5F5F5;
    color: #757575;
}

/* Card Buttons */
.btn-view,
.btn-download,
.btn-edit,
.btn-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-view:hover {
    background-color: var(--primary-dark);
}

.btn-download,
.btn-edit {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-download:hover,
.btn-edit:hover {
    background-color: var(--bg-light);
}

.btn-delete {
    background-color: var(--white);
    color: #D32F2F;
    border: 1px solid #D32F2F;
}

.btn-delete:hover {
    background-color: #FFEBEE;
}

/* Note Card Specific Styles */
.note-card p.note-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.note-date {
    font-size: 12px;
    color: var(--text-light);
}

.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.tag-important {
    background-color: #FFEBEE;
    color: #C62828;
}

.tag-reminder {
    background-color: #FFF3E0;
    color: #EF6C00;
}

.tag-info {
    background-color: #E3F2FD;
    color: #1565C0;
}

.tag-insurance {
    background-color: #F3E5F5;
    color: #6A1B9A;
}

.tag-success {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.tag-document {
    background-color: #E0F2F1;
    color: #00695C;
}

.tag-todo {
    background-color: #FFF9C4;
    color: #F57F17;
}

.tag-personal {
    background-color: #FCE4EC;
    color: #C2185B;
}

/* Add Note Button */
.add-note-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.add-note-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.4);
}

.add-note-btn svg {
    width: 20px;
    height: 20px;
}

/* Profile Page Styles */
.profile-header {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    margin: 0 15px 15px;
    border-radius: 12px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.profile-avatar svg {
    width: 50px;
    height: 50px;
    color: var(--white);
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.profile-email {
    font-size: 14px;
    color: var(--text-light);
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-label {
    font-size: 14px;
    color: var(--text-light);
}

.profile-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-align: right;
}

/* Settings Items */
.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    background-color: var(--bg-light);
}

.settings-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.settings-info svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.settings-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.settings-desc {
    font-size: 12px;
    color: var(--text-light);
}

.settings-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-light);
    flex-shrink: 0;
}

/* Logout Button */
.logout-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--white);
    color: #D32F2F;
    border: 2px solid #D32F2F;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #FFEBEE;
}

.logout-btn svg {
    width: 20px;
    height: 20px;
}

/* Support Page Styles */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-title {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Support Form */
.support-form {
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-control textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

.btn-send-message {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.btn-send-message:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.4);
}

.btn-send-message svg {
    width: 20px;
    height: 20px;
}

/* FAQ */
.faq-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.faq-answer {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Fixtures Page Styles */
.fixtures-summary {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.summary-item {
    flex: 1;
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.summary-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.fixtures-category {
    margin: 25px 0 10px;
}

.fixtures-category h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    padding-left: 5px;
}

.fixture-card {
    margin-bottom: 10px;
}

.fixture-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
}

.fixture-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fixture-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.fixture-info {
    flex: 1;
}

.fixture-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.fixture-details {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}

.fixture-brand {
    font-size: 12px;
    color: var(--text-light);
}

.fixture-condition {
    font-size: 12px;
    padding: 2px 8px;
    background-color: #E8F5E9;
    color: #2E7D32;
    border-radius: 4px;
}

.fixture-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 480px) {
    .user-section {
        margin: 10px;
        padding: 15px;
    }

    .banner {
        margin: 10px;
    }

    .credit-card {
        margin: 0 10px 10px;
    }

    .detail-section {
        margin: 10px;
        padding: 15px;
    }
}