:root {
    --color-primary: #404C4C;
    --color-secondary: #687269;
    --color-background: #F6F6F6;
    /* Changed to match iOS header better */
    --color-surface: rgba(255, 255, 255, 0.6);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ... (skip unchanged) ... */

.payment-label {
    font-size: 0.8rem;
    /* Increased from 0.75rem */
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

/* ... (skip unchanged) ... */

.rates-list {
    text-align: left;
    font-size: 0.9rem;
    /* Increased from 0.8rem */
    color: var(--color-secondary);
}

/* ... (skip unchanged) ... */

.instruction-text {
    font-size: 0.9rem;
    /* Increased from 0.75rem for better legibility */
    color: var(--color-secondary);
    margin-top: 24px;
    margin-bottom: 16px;
    opacity: 0.9;
    /* Slightly increased opacity */
    line-height: 1.5;
    font-weight: 400;
    max-width: 300px;
    /* Increased max-width slightly */
    margin-left: auto;
    margin-right: auto;
}

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

body {
    background-color: var(--color-background);
    /* Pattern moved to pseudo-element for opacity control */
    color: var(--color-primary);
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('pattern.webp');
    background-repeat: repeat;
    background-size: 60%;
    opacity: 0.5;
    /* Reduced opacity as requested */
    z-index: -1;
    pointer-events: none;
}

.main-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.header-info {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.logo-container img {
    max-width: 180px;
    margin-bottom: 1px;
}

.card {
    background-color: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 32px 24px 5px 24px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    position: relative;
    z-index: 10;
}

h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.company-name {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0;
    color: var(--color-secondary);
    font-weight: 600;
}

.payment-group {
    margin-bottom: 16px;
    text-align: left;
}

.payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    /* Increased gap */
    margin-bottom: 32px;
    /* Add space before rates list */
}

.payment-row .payment-group {
    margin-bottom: 0;
    /* Remove margin inside row */
}

.payment-label {
    font-size: 0.8rem;
    /* Increased from 0.75rem */
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 1px;
    /* Slightly more breathing room */
    letter-spacing: 0.5px;
}

.payment-value-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    /* Transparent background */
    padding: 10px 0;
    /* Minimal padding */
    border-radius: 0;
    border-bottom: 1px solid rgba(64, 76, 76, 0.1);
    /* Bottom border mainly */
    border-top: none;
    border-left: none;
    border-right: none;
    transition: all 0.2s ease;
}

.payment-value-container:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.8);
}

.payment-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    /* font-family: 'Inter', monospace; - Removing to match design */
    letter-spacing: -0.5px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.copy-btn:hover {
    background-color: rgba(64, 76, 76, 0.1);
}

.copy-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.divider {
    height: 1px;
    background: rgba(64, 76, 76, 0.1);
    margin: 30px 0;
}

.rates-list {
    text-align: left;
    font-size: 0.9rem;
    /* Increased from 0.8rem */
    color: var(--color-secondary);
}

.rate-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(64, 76, 76, 0.06);
    /* Solid, very subtle line */
}

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

.rate-label {
    font-weight: 500;
}

.rate-value {
    font-weight: 600;
    color: var(--color-primary);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--color-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 4px 12px rgba(64, 76, 76, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.instruction-text {
    font-size: 0.9rem;
    /* Increased from 0.75rem */
    color: var(--color-secondary);
    margin-top: 24px;
    margin-bottom: 16px;
    opacity: 0.9;
    line-height: 1.5;
    font-weight: 400;
    max-width: 300px;
    /* Limit width for better reading on wide cards */
    margin-left: auto;
    margin-right: auto;
}

/* Index Navigation Styles */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(64, 76, 76, 0.05);
    color: var(--color-primary);
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(64, 76, 76, 0.08);
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 1rem;
}

.nav-btn:hover {
    background-color: rgba(64, 76, 76, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-btn svg {
    opacity: 0.6;
    transition: transform 0.2s;
}

.nav-btn:hover svg {
    transform: translateX(4px);
    opacity: 1;
}