/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-color: #007bff;
    --primary-color-rgb: 0, 123, 255;
    --primary-hover: #0056b3;
    --google-color: #db4437;
    --google-hover: #c23321;
    --danger-color: #dc3545;
    --danger-hover: #c82333;
    --secondary-color: #6c757d;
    --secondary-hover: #5a6268;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Dark theme variables */
    --dark-bg-color: #121212;
    --dark-element-bg: #1e1e1e;
    --dark-text-color: #e0e0e0;
    --dark-border-color: #333;
    --dark-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --dark-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

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

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 2rem;
}

.mobile-menu-toggle {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-item {
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: var(--gray-light);
}

.nav-item.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    color: var(--gray);
}

/* ==================== MAIN CONTENT ==================== */
main {
    flex: 1;
    padding: 2rem 0;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

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

.btn-google {
    background-color: var(--google-color);
    color: var(--white);
}

.btn-google:hover {
    background-color: var(--google-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background-color: var(--danger-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

.btn-icon {
    padding: 0.5rem;
    font-size: 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.btn-delete-account,
.btn-copy-code,
.btn-unlink,
.btn-edit-account,
.btn-delete-device {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
}

/* ==================== LOGIN PAGE ==================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.login-form {
    margin-bottom: 1rem;
}

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

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

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider span {
    background-color: var(--white);
    padding: 0 1rem;
    color: var(--gray);
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--gray-light);
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* ==================== VERIFY CODE CONTAINER ==================== */
.verify-code-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verify-input {
    flex: 1;
}

.btn-send-code {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-send-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-send-code:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-send-code.loading {
    position: relative;
    color: transparent;
}

.btn-send-code.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

.verify-hint {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.countdown-timer {
    color: #f44336;
    font-weight: bold;
    margin-left: 5px;
}

/* ==================== ALERT MESSAGES ==================== */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.alert-info i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

/* ==================== POPUP STYLES ==================== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-icon {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.popup-icon.error {
    color: #f44336;
}

.popup-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.popup-message {
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.btn-popup-close {
    padding: 10px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-popup-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Confirmation popup styles */
.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-popup-confirm {
    padding: 10px 20px;
    background: #298000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-popup-confirm.hidden {
    display: none;
}

.btn-popup-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-popup-confirm.critical {
    background: linear-gradient(135deg, #ff6b6b 0%, #dc3545 100%);
}

.btn-popup-confirm.critical:hover {
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-popup-confirm.loading {
    position: relative;
    color: transparent;
}

.btn-popup-confirm.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

/* Transaction popup specific styles */
.popup-content .tx-summary,
.popup-content .tx-grid {
    text-align: left;
}

.tx-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.tx-amount {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
}

.tx-status .status-badge {
    white-space: nowrap;
}

.tx-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tx-item {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
}

.tx-label {
    font-size: .85rem;
    opacity: .8;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tx-value {
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
}

.tx-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
}

/* ==================== HERO SECTION ==================== */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-actions {
    margin-top: 2rem;
}

/* ==================== FEATURES ==================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* ==================== DASHBOARD ==================== */
.dashboard,
.settings-page {
    max-width: 1000px;
    margin: 0 auto;
}

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

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

/* Stat Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    height: 140px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid transparent;
}

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

.stat-card.transactions {
    border-left-color: #3498db;
}

.stat-card.payments {
    border-left-color: #2ecc71;
}

.stat-card.accounts {
    border-left-color: #9b59b6;
}

.stat-icon {
    font-size: 2.5rem;
    min-width: 70px;
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    margin-right: 1.5rem;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

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

.stat-card.transactions .stat-icon {
    background-color: #3498db;
}

.stat-card.payments .stat-icon {
    background-color: #2ecc71;
}

.stat-card.accounts .stat-icon {
    background-color: #9b59b6;
}

.stat-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.stat-details h3 {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    height: 1.2rem;
    line-height: 1.2;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    height: 2.2rem;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.stat-card.transactions:hover .stat-number {
    color: #3498db;
}

.stat-card.payments:hover .stat-number {
    color: #2ecc71;
}

.stat-card.accounts:hover .stat-number {
    color: #9b59b6;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    height: 1.1rem;
    line-height: 1.2;
}

.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 24px;
}

.error-box {
    max-width: 600px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
    padding: 28px;
    text-align: center;
}

.error-title {
    margin: 0 0 12px 0
}

.error-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 16px 0 8px;
}

/* Chart Container */
.chart-container {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.chart-container h2 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

canvas {
    width: 100%;
    height: 350px;
}

/* ==================== SETTINGS PAGE ==================== */
.page-actions {
    margin-bottom: 2rem;
}

.settings-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.settings-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.settings-form {
    margin-bottom: 1rem;
}

.settings-form small {
    color: var(--gray);
    font-size: 0.85rem;
}

.theme-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.theme-actions {
    display: flex;
    gap: 1rem;
}

/* Tab Styles */
.tabs-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button:hover {
    color: #333;
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-button i {
    font-size: 1.1rem;
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

/* ==================== BANK ACCOUNT MANAGEMENT ==================== */
.bank-account-form {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.bank-account-form h3,
.bank-accounts-list h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-light);
}

/* Bank Selector */
.bank-selector {
    position: relative;
}

.bank-search-input {
    width: 100%;
    padding-right: 2.5rem;
}

.bank-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.bank-dropdown-content {
    padding: 0.5rem 0;
}

.bank-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.bank-item:hover {
    background-color: #f5f5f5;
}

.bank-item.selected {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.bank-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 1rem;
    border-radius: 4px;
    background: #f5f5f5;
    padding: 4px;
}

.bank-info {
    flex: 1;
}

.bank-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.bank-shortname {
    font-size: 0.875rem;
    color: #666;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Accounts Table */
.accounts-table-container {
    overflow-x: auto;
}

.accounts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.accounts-table th,
.accounts-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.accounts-table th {
    font-weight: 600;
    color: var(--gray);
    background-color: var(--gray-light);
}

.accounts-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.accounts-table .empty-accounts td {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
    font-style: italic;
}

/* ==================== TRANSACTIONS PAGE ==================== */
.transactions-page {
    max-width: 1000px;
    margin: 0 auto;
}

.transactions-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

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

.entries-info {
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.entries-select {
    padding: 0.3rem 0.5rem;
    margin: 0 0.5rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    background-color: var(--white);
}

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

.search-input {
    padding: 0.5rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 200px;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 1rem;
}

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

.transactions-table th,
.transactions-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
    word-break: break-word;
}

.transactions-table th {
    background-color: var(--gray-light);
    font-weight: 600;
    color: var(--text-color);
    position: sticky;
    top: 0;
}

.transactions-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.transactions-table .empty-transactions td {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
    font-style: italic;
}

.confirmed-transaction-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.showing-entries {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-btn {
    min-width: 2rem;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

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

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-approved {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-rejected {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* ==================== BILLING PAGE ==================== */
.billing-page {
    max-width: 1000px;
    margin: 0 auto;
}

.billing-notice {
    margin-bottom: 1.5rem;
}

.billing-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.billing-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.billing-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.billing-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.billing-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.billing-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.billing-item.total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
    font-weight: bold;
    font-size: 1.1rem;
}

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

.billing-value {
    color: var(--text-color);
    font-weight: 500;
}

.total-price {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.billing-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.billing-history {
    margin-top: 3rem;
}

.billing-history h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--white);
    padding: 1rem 0;
    margin-top: auto;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer p {
    text-align: center;
    color: var(--gray);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== DARK THEME ==================== */
.dark-theme {
    --text-color: var(--dark-text-color);
    --bg-color: var(--dark-bg-color);
    color: var(--dark-text-color);
    background-color: var(--dark-bg-color);
}

.dark-theme .navbar,
.dark-theme .login-box,
.dark-theme .feature,
.dark-theme .stat-card,
.dark-theme .chart-container,
.dark-theme .settings-card,
.dark-theme .transactions-card,
.dark-theme .billing-card,
.dark-theme .footer {
    background-color: var(--dark-element-bg);
    box-shadow: var(--dark-shadow);
}

.dark-theme .stat-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .divider span {
    background-color: var(--dark-element-bg);
}

.dark-theme .form-input,
.dark-theme .bank-search-input,
.dark-theme .search-input,
.dark-theme .entries-select {
    background-color: var(--dark-element-bg);
    border-color: var(--dark-border-color);
    color: var(--dark-text-color);
}

.dark-theme .btn-icon,
.dark-theme .nav-item {
    color: var(--dark-text-color);
}

.dark-theme .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .nav-item.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.dark-theme .alert-error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

.dark-theme .alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #51cf66;
}

.dark-theme .alert-info {
    background-color: rgba(209, 236, 241, 0.2);
    color: #9fddff;
    border-color: #0c5460;
}

/* Dark theme tables */
.dark-theme .accounts-table tr:hover,
.dark-theme .transactions-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .accounts-table th,
.dark-theme .transactions-table th {
    background-color: var(--dark-border-color);
}

.dark-theme .accounts-table td,
.dark-theme .accounts-table th,
.dark-theme .transactions-table td,
.dark-theme .transactions-table th {
    border-color: var(--dark-border-color);
}

.dark-theme .entries-info,
.dark-theme .showing-entries,
.dark-theme .tab-pane,
.dark-theme .bank-name,
.dark-theme .entries-select,
.dark-theme .search-input {
    color: var(--dark-text-color);
}

/* Dark theme tabs */
.dark-theme .tabs-navigation {
    border-bottom: 2px solid #333;
}

.dark-theme .tab-button {
    color: #aaa;
}

.dark-theme .tab-button:hover {
    color: var(--dark-text-color);
}

.dark-theme .tab-button.active {
    color: var(--primary-color);
}

/* Dark theme bank selector */
.dark-theme .bank-dropdown {
    background: var(--dark-element-bg);
    border: 1px solid #444;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dark-theme .bank-item:hover {
    background-color: var(--dark-border-color);
}

.dark-theme .bank-item.selected {
    background-color: rgba(var(--primary-color-rgb), 0.2);
}

.dark-theme .bank-logo {
    background: #333;
}

.dark-theme .bank-name {
    color: var(--dark-text-color);
}

.dark-theme .bank-shortname,
.dark-theme .no-results {
    color: #aaa;
}

.dark-theme .bank-account-form {
    border-bottom: 1px solid #444;
}

/* Dark theme status badges */
.dark-theme .status-approved {
    background-color: rgba(46, 204, 113, 0.3);
    color: #7bed9f;
}

.dark-theme .status-rejected {
    background-color: rgba(231, 76, 60, 0.3);
    color: #ff7979;
}

.dark-theme .status-pending {
    background-color: rgba(255, 193, 7, 0.3);
    color: #ffe082;
}

/* Dark theme billing */
.dark-theme .billing-header,
.dark-theme .billing-item.total {
    border-color: var(--dark-border-color);
}

/* Dark theme popup */
.dark-theme .popup-content {
    background: #1e1e1e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dark-theme .popup-title {
    color: #e0e0e0;
}

.dark-theme .popup-message {
    color: #aaa;
}

.dark-theme .btn-popup-close {
    background: linear-gradient(135deg, #3d4db7 0%, #5a3b82 100%);
}

.dark-theme .btn-popup-close:hover {
    box-shadow: 0 5px 15px rgba(61, 77, 183, 0.4);
}

.dark-theme .btn-popup-confirm {
    background: #298000;
}

.dark-theme .btn-popup-confirm:hover {
    box-shadow: 0 5px 15px rgba(61, 77, 183, 0.4);
}

.dark-theme .btn-popup-confirm.critical {
    background: linear-gradient(135deg, #c92a2a 0%, #a61e2b 100%);
}

.dark-theme .btn-popup-confirm.critical:hover {
    box-shadow: 0 5px 15px rgba(198, 42, 42, 0.4);
}

.dark-theme .tx-item {
    background: rgba(255, 255, 255, 0.06);
}

.dark-theme .tx-id {
    background: rgba(255, 255, 255, 0.08);
}

/* Dark theme pagination */
.dark-theme .pagination-btn {
    background-color: transparent;
    color: var(--dark-text-color);
    border-color: var(--dark-border-color);
}

.dark-theme .pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Desktop - explicitly hide mobile menu toggle */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Tablet and below (768px) */
@media (max-width: 768px) {

    /* Container padding */
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        position: relative;
    }

    .logo {
        font-size: 1.25rem;
        margin-right: auto;
    }

    .mobile-menu-toggle {
        display: block;
        order: 2;
        margin-left: 1rem;
    }

    .nav-menu {
        width: 100%;
        order: 3;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        background-color: var(--white);
        border-radius: 8px;
        margin-top: 0.5rem;
    }

    .nav-menu.active {
        max-height: 300px;
        border: 1px solid var(--gray-light);
        overflow-y: auto;
    }

    .dark-theme .nav-menu {
        background-color: var(--dark-element-bg);
    }

    .dark-theme .nav-menu.active {
        border-color: var(--dark-border-color);
    }

    .nav-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        border-bottom: 1px solid var(--gray-light);
    }

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

    .dark-theme .nav-item {
        border-bottom-color: var(--dark-border-color);
    }

    .nav-item:hover {
        background-color: var(--gray-light);
    }

    .dark-theme .nav-item:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .user-info {
        font-size: 0.85rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
    }

    /* Hero section */
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Features grid */
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .feature {
        padding: 1.5rem;
    }

    /* Main content */
    main {
        padding: 1.5rem 0;
    }

    /* Dashboard */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .dashboard-header h1 {
        font-size: 1.75rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* Stats cards */
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        height: auto;
        padding: 1.25rem;
    }

    .stat-icon {
        font-size: 2rem;
        min-width: 60px;
        height: 60px;
        width: 60px;
        margin-right: 1rem;
    }

    .stat-details h3 {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Chart container */
    .chart-container {
        padding: 1rem;
        overflow-x: auto;
    }

    .chart-container h2 {
        font-size: 1.1rem;
    }

    canvas {
        height: 250px;
    }

    /* Login & Register */
    .login-container {
        min-height: 50vh;
        padding: 1rem 0;
    }

    .login-box {
        padding: 1.5rem;
        margin: 0 15px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    /* Forms */
    .form-input {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.65rem 1.25rem;
        font-size: 1rem;
    }

    /* Settings page */
    .settings-card {
        padding: 1.5rem;
    }

    .settings-card h2 {
        font-size: 1.25rem;
    }

    /* Tabs */
    .tabs-navigation {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-button {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
        padding: 0.75rem 1rem;
    }

    .dark-theme .tab-button {
        border-bottom: 1px solid #444;
    }

    .tab-button.active::after {
        display: none;
    }

    .tab-button.active {
        background-color: #f5f5f5;
    }

    .dark-theme .tab-button.active {
        background-color: #333;
    }

    /* Bank selector */
    .bank-dropdown {
        max-height: 250px;
    }

    .bank-logo {
        width: 30px;
        height: 30px;
    }

    .bank-name {
        font-size: 0.9rem;
    }

    .bank-shortname {
        font-size: 0.8rem;
    }

    /* Tables */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .accounts-table,
    .transactions-table {
        min-width: 600px;
    }

    .accounts-table th,
    .accounts-table td,
    .transactions-table th,
    .transactions-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    /* Table controls */
    .table-header,
    .table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-header>div,
    .table-footer>div {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .pagination {
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }

    .pagination-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.85rem;
    }

    /* Transactions page */
    .transactions-card {
        padding: 1rem;
    }

    /* Billing page */
    .billing-card {
        padding: 1.25rem;
    }

    .billing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .billing-header h2 {
        font-size: 1.25rem;
    }

    .billing-status {
        align-self: flex-start;
        font-size: 0.85rem;
    }

    .billing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .billing-actions {
        width: 100%;
    }

    .billing-actions .btn {
        width: 100%;
    }

    /* Popup */
    .popup-content {
        padding: 20px;
        max-width: 90%;
    }

    .popup-title {
        font-size: 1.25rem;
    }

    .popup-message {
        font-size: 0.9rem;
    }

    .popup-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-popup-close,
    .btn-popup-confirm {
        width: 100%;
    }

    /* Verify code container */
    .verify-code-container {
        flex-direction: column;
        gap: 8px;
    }

    .btn-send-code {
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: 0.75rem 0;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

/* Mobile devices (520px and below) */
@media (max-width: 520px) {

    /* Typography */
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Container */
    .container {
        padding: 0 10px;
    }

    /* Navigation */
    .logo {
        font-size: 1.1rem;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .user-info {
        font-size: 0.75rem;
    }

    .btn-outline,
    .btn-icon {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero {
        padding: 1.5rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Dashboard */
    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    #refresh-data {
        width: 100%;
        font-size: 0.9rem;
    }

    /* Stats cards */
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        height: auto;
    }

    .stat-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }

    .stat-details {
        align-items: center;
    }

    .stat-details h3 {
        font-size: 0.85rem;
        height: auto;
    }

    .stat-number {
        font-size: 1.5rem;
        height: auto;
    }

    .stat-label {
        font-size: 0.85rem;
        height: auto;
    }

    /* Chart */
    .chart-container {
        padding: 0.75rem;
    }

    .chart-container h2 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    canvas {
        height: 200px;
    }

    /* Login */
    .login-box {
        padding: 1.25rem;
    }

    .login-title {
        font-size: 1.35rem;
    }

    /* Forms */
    .form-group {
        margin-bottom: 0.85rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .btn-block {
        padding: 0.65rem 1rem;
    }

    /* Settings */
    .settings-card {
        padding: 1.25rem;
    }

    .settings-card h2 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .page-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .theme-actions {
        flex-direction: column;
    }

    .theme-actions .btn {
        width: 100%;
    }

    /* Tab buttons */
    .tab-button {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }

    /* Bank form */
    .bank-account-form h3,
    .bank-accounts-list h3 {
        font-size: 1.05rem;
    }

    .bank-item {
        padding: 0.65rem 0.75rem;
    }

    .bank-logo {
        width: 28px;
        height: 28px;
    }

    /* Tables */
    .accounts-table,
    .transactions-table {
        min-width: 500px;
        font-size: 0.8rem;
    }

    .accounts-table th,
    .accounts-table td,
    .transactions-table th,
    .transactions-table td {
        padding: 0.4rem 0.3rem;
    }

    /* Table header controls */
    .entries-info {
        font-size: 0.85rem;
    }

    .entries-select {
        font-size: 0.85rem;
    }

    .search-input {
        font-size: 0.85rem;
        min-width: 100%;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
    }

    .pagination-btn {
        min-width: 1.75rem;
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
    }

    .showing-entries {
        font-size: 0.85rem;
        text-align: center;
    }

    /* Status badges */
    .status-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    /* Billing */
    .billing-card {
        padding: 1rem;
    }

    .billing-header h2 {
        font-size: 1.15rem;
    }

    .billing-status {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .billing-item {
        font-size: 0.9rem;
    }

    .billing-label,
    .billing-value {
        font-size: 0.9rem;
    }

    .total-price {
        font-size: 1.1rem;
    }

    /* Transaction popup */
    .tx-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tx-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tx-amount {
        font-size: 1.1rem;
    }

    .tx-label {
        font-size: 0.8rem;
    }

    .tx-value {
        font-size: 0.85rem;
    }

    .tx-item {
        padding: 8px 10px;
    }

    /* Popup */
    .popup-content {
        padding: 15px;
        max-width: 95%;
    }

    .popup-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .popup-title {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .popup-message {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .btn-popup-close,
    .btn-popup-confirm {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    /* Alert messages */
    .alert {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }

    .alert-info {
        padding: 0.85rem;
    }

    .alert-info i {
        font-size: 1.25rem;
    }

    /* Footer */
    .footer p {
        font-size: 0.8rem;
    }
}

/* Very small devices (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-item {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }

    .stat-icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }

    .stat-number {
        font-size: 1.35rem;
    }

    .login-box {
        padding: 1rem;
    }

    .settings-card,
    .billing-card,
    .transactions-card {
        padding: 0.85rem;
    }

    .accounts-table,
    .transactions-table {
        min-width: 450px;
        font-size: 0.75rem;
    }
}

/* Landscape mode optimization for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        padding: 0.5rem 0;
    }

    .nav-menu {
        padding-bottom: 0.25rem;
    }

    .login-container {
        min-height: auto;
        padding: 0.5rem 0;
    }

    .login-box {
        padding: 1rem;
    }

    .hero {
        padding: 1rem 0;
    }

    main {
        padding: 1rem 0;
    }

    .stat-card {
        height: auto;
        padding: 0.85rem;
    }

    .popup-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ==================== BILLING PAGE - FREE TIER & PREMIUM FEATURES ==================== */

/* Free Tier Information */
.free-tier-info {
    padding: 1rem 0;
}

.free-tier-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
}

.free-tier-header i {
    font-size: 2rem;
    color: #2ecc71;
}

.free-tier-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
}

.free-features {
    margin-bottom: 2rem;
}

.free-features h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.free-features h4 i {
    color: #f39c12;
}

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

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: rgba(46, 204, 113, 0.05);
    border-radius: 8px;
    border-left: 3px solid #2ecc71;
}

.features-list li i {
    color: #2ecc71;
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.features-list li span {
    flex: 1;
    line-height: 1.5;
}

.features-list li strong {
    color: var(--text-color);
}

/* Premium Feature Info */
.premium-feature-info h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.premium-feature-info h4 i {
    color: #f39c12;
}

.premium-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(142, 68, 173, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(155, 89, 182, 0.3);
    transition: all 0.3s ease;
}

.premium-card:hover {
    border-color: rgba(155, 89, 182, 0.5);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.2);
}

.premium-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(155, 89, 182, 0.3);
}

.premium-content {
    flex: 1;
}

.premium-content h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.premium-platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #27ae60;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.premium-platform i {
    font-size: 1.1rem;
}

.premium-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #9b59b6;
}

.price-unit {
    font-size: 0.9rem;
    color: var(--gray);
}

.premium-note {
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 1rem;
}

/* Billing Info Header */
.billing-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.billing-info-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}



/* Device radio button*/

.device-type-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.device-option {
    flex: 1;
    position: relative;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.device-option:hover {
    border-color: #4CAF50;
    background-color: #f9f9f9;
}

.device-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.device-option:has(input[type="radio"]:checked) {
    border-color: #4CAF50;
    background-color: #f0f8f0;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.option-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.device-option:has(input[type="radio"]:checked) .option-title {
    color: #4CAF50;
}

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

@media (max-width: 768px) {
    .device-type-options {
        flex-direction: column;
    }
}