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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(to bottom, #ffffff 0%, #e6f4ea 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    color: #333;
}

.wrapper {
    width: 100%;
    max-width: 640px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header {
    text-align: center;
}

.top-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5f6368;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2rem;
    color: #14532d;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.subtitle {
    font-size: 1rem;
    color: #6b7280;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.card-body {
    display: flex;
}

.flex-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

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

.data-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #14532d;
}

/* IBAN Responsive Text Sizing */
.iban-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: clamp(12px, 4.3vw, 1.2rem);
    white-space: nowrap;
    letter-spacing: -0.3px;
    width: 100%;
    text-align: left;
}

.tl-icon {
    font-size: 1.2rem;
    font-weight: 600;
    color: #14532d;
    padding: 0.5rem;
}

.copy-btn {
    background-color: #dcfce7;
    color: #166534;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: #bbf7d0;
}

.right-align {
    align-self: flex-end;
}

footer {
    text-align: center;
    margin-top: 1rem;
}

footer p {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    max-width: 90%;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.success-icon {
    color: #16a34a;
    margin-bottom: 1rem;
}

.modal-content h2 {
    color: #14532d;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.modal-btn {
    margin-top: 1.5rem;
    width: 100%;
    background-color: #16a34a;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn:hover {
    background-color: #15803d;
}

.modal-btn:focus {
    outline: 2px solid #14532d;
    outline-offset: 2px;
}
