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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.mobile-container {
    width: 100%;
    max-width: 375px;
    background: white;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 100vh;
}

/* Header Styles */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    background: white;
    font-size: 12px;
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 13px;
}

.logo-icon {
    color: #c41230;
    font-size: 18px;
}

.header-icons {
    display: flex;
    gap: 12px;
    font-size: 18px;
}

/* Main Content */
.main-content {
    padding: 0 0 70px 0;
    overflow-y: auto;
}

/* Custom Scrollbar */
.main-content::-webkit-scrollbar,
.detail-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track,
.detail-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.main-content::-webkit-scrollbar-thumb,
.detail-content::-webkit-scrollbar-thumb {
    background: #c41230;
    border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover,
.detail-content::-webkit-scrollbar-thumb:hover {
    background: #a00f25;
}

/* Account Section */
.account-section {
    background: white;
    padding: 16px;
    border-bottom: 6px solid #f5f5f5;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-title {
    font-size: 14px;
    font-weight: bold;
}

.details-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
}

.account-info {
    margin-bottom: 12px;
}

.account-number {
    font-size: 12px;
    color: #666;
}

.balance-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance {
    font-size: 40px;
    font-weight: bold;
    color: #333;
}

.currency {
    font-size: 20px;
    margin-left: 4px;
}

.visibility-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 12px 16px;
    border-bottom: 6px solid #f5f5f5;
}

.action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #f9f9f9;
}

.action-icon {
    font-size: 20px;
}

.action-text {
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    line-height: 1.3;
}

.action-text small {
    font-size: 10px;
    color: #666;
}

/* Services List */
.services-list {
    background: white;
}

.service-item {
    display: grid;
    grid-template-columns: 32px 1fr 60px;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

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

.service-icon {
    font-size: 20px;
    color: #c41230;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.service-description {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.error-text {
    color: #c41230;
}

.service-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-illustration img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 375px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 0;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-item:hover {
    background: #f9f9f9;
}

.nav-item.active {
    color: #c41230;
}

.nav-icon {
    font-size: 22px;
}

.nav-label {
    font-size: 9px;
    text-align: center;
}

/* Floating Action Button */
.fab {
    position: absolute;
    right: 16px;
    bottom: 80px;
    width: 56px;
    height: 56px;
    background: #c41230;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(196, 18, 48, 0.4);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 1.2;
    padding: 6px;
    transition: transform 0.2s;
    z-index: 10;
}

.fab:hover {
    transform: scale(1.05);
}

.fab-icon {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: white;
    color: #c41230;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid #c41230;
}

.fab-label {
    margin-top: 4px;
    text-align: center;
    font-size: 8px;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .mobile-container {
        max-width: 100%;
    }

    .bottom-nav {
        max-width: 100%;
    }
}

/* Detail Page Styles */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.back-btn, .help-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    color: #333;
}

.page-title {
    font-size: 15px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.detail-content {
    padding: 0 0 70px 0;
    overflow-y: auto;
    background: #f5f5f5;
}

.detail-account-info {
    background: white;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.detail-account-left {
    flex: 1;
}

.detail-branch {
    font-size: 12px;
    color: #333;
    margin-bottom: 4px;
}

.detail-account {
    font-size: 11px;
    color: #666;
}

.detail-account-right {
    text-align: right;
}

.detail-balance {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.currency-sm {
    font-size: 16px;
    margin-left: 4px;
}

.date-filter {
    background: white;
    padding: 12px 16px;
    margin-top: 8px;
}

.date-range {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.filter-btn {
    width: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
}

.filter-toggle {
    background: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-top: 1px solid #f0f0f0;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
    background-color: #4caf50;
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.year-header {
    background: #f5f5f5;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

.transactions {
    background: white;
    padding: 0 16px 16px 16px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.transaction-item:last-of-type {
    border-bottom: none;
}

.trans-date-desc {
    flex: 1;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.trans-amount {
    font-size: 15px;
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
    margin-left: 12px;
}

.trans-amount.negative {
    color: #c41230;
}

.trans-amount.positive {
    color: #333;
}

.timestamp {
    text-align: right;
    font-size: 11px;
    color: #999;
    padding-top: 16px;
}
