/* ========================================
   Thai Electric - LINE LIFF Installment App
   Theme Colors: #0445a4, #f4f4f4, #ffffff
   ======================================== */
@font-face {
    font-family: 'RSU';
    src: url('../fonts/RSU_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RSU';
    src: url('../fonts/RSU_BOLD.ttf') format('truetype');
    font-weight: 700;
    font-style: bold;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary-color: #0445a4;
    --primary-dark: #033580;
    --primary-light: #0558c9;
    --bg-color: #f4f4f4;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
    padding-top: 60px; /* Space for fixed header */
    padding-bottom: 20px;
}

/* ========================================
   Header Component
   ======================================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.app-header .logo {
    height: 36px;
    width: auto;
}

.app-header .logo img, .app-header .logo-text img {
    height: 100%;
    width: auto;
    max-height: 40px;
}

.app-header .logo-text {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.app-header .back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-header .back-btn:hover {
    opacity: 0.8;
}

/* ========================================
   Container & Layout
   ======================================== */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 15px;
}

.page-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

/* ========================================
   Login Page
   ======================================== */
.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

.login-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-logo-circle {
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.login-logo-circle i {
    font-size: 4rem;
    color: var(--white);
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: center;
}

.login-company {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-line {
    background-color: #00C300;
    border-color: #00C300;
    color: var(--white);
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 250px;
}

.btn-line:hover,
.btn-line:focus {
    background-color: #00a300;
    border-color: #00a300;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 195, 0, 0.4);
}

.btn-line i {
    font-size: 1.5rem;
}

.btn-block {
    width: 100%;
}

.btn-outline-primary-custom {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* ========================================
   Form Elements
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.form-control-custom {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 69, 164, 0.1);
}

.form-control-custom::placeholder {
    color: var(--text-light);
}

.form-control-custom.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* ========================================
   Cards
   ======================================== */
.info-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.info-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.info-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-title i {
    font-size: 1.2rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 500;
    color: var(--text-dark);
    text-align: right;
}

.info-value.highlight {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.info-value.success {
    color: var(--success-color);
}

.info-value.danger {
    color: var(--danger-color);
}

/* ========================================
   Tabs
   ======================================== */
.custom-tabs {
    display: flex;
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 20px;
}

.custom-tab {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
    font-weight: 500;
    color: var(--text-muted);
    background-color: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-tab.active {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.custom-tab:hover:not(.active) {
    color: var(--text-dark);
}

.tab-content {
    display: none;
}

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

/* ========================================
   List Items
   ======================================== */
.list-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.list-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-item-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(4, 69, 164, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.list-item-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.list-item-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.list-item-right {
    text-align: right;
}

.list-item-amount {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.list-item-status {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 3px;
    display: inline-block;
}

.status-paid {
    background-color: rgba(40, 167, 69, 0.15);
    color: var(--success-color);
}

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

.status-overdue {
    background-color: rgba(220, 53, 69, 0.15);
    color: var(--danger-color);
}

/* ========================================
   Summary Box
   ======================================== */
.summary-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    padding: 25px 20px;
    color: var(--white);
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
}

.summary-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.summary-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========================================
   Payment Detail
   ======================================== */
.payment-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
}

.payment-detail-row:last-child {
    border-bottom: none;
}

.payment-detail-row.total {
    border-top: 2px solid var(--primary-color);
    border-bottom: none;
    margin-top: 10px;
    padding-top: 20px;
}

.payment-detail-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.payment-detail-value {
    font-weight: 500;
    font-size: 1rem;
}

.payment-detail-row.total .payment-detail-label,
.payment-detail-row.total .payment-detail-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ========================================
   QR Code Section
   ======================================== */
.qr-section {
    text-align: center;
    padding: 20px;
}

.qr-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.qr-code-wrapper {
    background-color: var(--white);
    padding: 20px;
    border-radius: 15px;
    display: inline-block;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.qr-code-wrapper img {
    width: 200px;
    height: 200px;
    display: block;
}

.qr-info {
    margin-top: 15px;
}

.qr-info-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.qr-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.qr-expire {
    font-size: 0.85rem;
    color: var(--danger-color);
    margin-top: 10px;
}

/* ========================================
   Thai QR Payment Badge
   ======================================== */
.thai-qr-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.thai-qr-badge img {
    height: 40px;
}

.thai-qr-badge span {
    font-weight: 600;
    color: var(--text-dark);
}

/* ========================================
   Profile Section
   ======================================== */
.profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--white);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-color);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.profile-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   Alert Messages
   ======================================== */
.alert-custom {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-custom i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.alert-info {
    background-color: rgba(4, 69, 164, 0.1);
    color: var(--primary-color);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* ========================================
   Badge
   ======================================== */
.badge-custom {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.badge-success {
    background-color: var(--success-color);
    color: var(--white);
}

.badge-warning {
    background-color: var(--warning-color);
    color: #333;
}

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

/* ========================================
   Loading Spinner
   ======================================== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 15px;
    color: var(--text-muted);
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 15px;
}

.empty-state h4 {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   Footer Actions
   ======================================== */
.footer-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

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

/* Add padding when footer actions exist */
body.has-footer-actions {
    padding-bottom: 90px;
}

/* ========================================
   Utilities
   ======================================== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.fw-bold {
    font-weight: 600;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 380px) {
    html {
        font-size: 14px;
    }
    
    .app-container {
        padding: 15px 10px;
    }
    
    .summary-amount {
        font-size: 2rem;
    }
}

/* Safe area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
    .app-header {
        padding-top: env(safe-area-inset-top);
        height: calc(60px + env(safe-area-inset-top));
    }
    
    body {
        padding-top: calc(60px + env(safe-area-inset-top));
    }
    
    .footer-actions {
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }
    
    body.has-footer-actions {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #eee;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 5px 15px;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.6rem;
    margin-bottom: 3px;
}

.bottom-nav-item.active {
    color: #0445a4;
}

.bottom-nav-item.active i {
    color: #0445a4;
}

.bottom-nav-item:not(.pay-btn):hover {
    color: #0445a4;
}

/* Pay Button - Prominent Style */
.bottom-nav-item.pay-btn {
    color: #0445a4;
}

.bottom-nav-item.pay-btn .pay-btn-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0445a4 0%, #0066cc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    margin-top: -30px;
    box-shadow: 0 4px 15px rgba(4, 69, 164, 0.4);
    transition: all 0.3s ease;
}

.bottom-nav-item.pay-btn .pay-btn-icon i {
    color: white;
    font-size: 1.7rem;
    margin-bottom: -7px;
}

.bottom-nav-item.pay-btn:hover .pay-btn-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(4, 69, 164, 0.5);
}

.bottom-nav-item.pay-btn span {
    font-weight: 600;
    color: #0445a4;
}

/* Add padding to main content for bottom nav */
.app-container {
    padding-bottom: 90px;
}

/* QR Code Payment Section */
.qr-container {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.thai-qr-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.thai-qr-logo img {
    height: 35px;
}

.thai-qr-logo .logo-text {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
}

.qr-image-wrapper {
    background: white;
    padding: 15px;
    border-radius: 15px;
    border: 3px solid var(--primary-color);
    display: inline-block;
    margin-bottom: 15px;
}

.qr-image-wrapper img {
    width: 200px;
    height: 200px;
    display: block;
}

.payment-amount-display {
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-top: 15px;
}

.payment-amount-display .label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.payment-amount-display .amount {
    font-size: 1.8rem;
    font-weight: 700;
}

.countdown-timer {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.countdown-timer i {
    font-size: 1.1rem;
}

.payment-steps {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.step-number {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.bank-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.bank-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.save-qr-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s ease;
}

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

.payment-container {
    background: white;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: #0e3d67;
    padding: 20px;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.qr-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-icon::before,
.qr-icon::after {
    content: '';
    position: absolute;
    background: #1b5179;
}

.qr-icon::before {
    width: 12px;
    height: 12px;
    top: 6px;
    left: 6px;
    border: 2px solid #1b5179;
}

.qr-icon::after {
    width: 12px;
    height: 12px;
    bottom: 6px;
    right: 6px;
    border: 2px solid #1b5179;
}

.header-title {
    color: white;
    text-align: left;
}

.header-title h1 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-title p {
    font-size: 0.8125rem;
    font-weight: 400;
    opacity: 0.95;
    margin-top: 2px;
}

.content {
    padding: 20px 20px;
    text-align: center;
}

.promptpay-logo {
    background: white;
    border-radius: 6px;
    display: inline-block;
    padding: 0px;
    margin-bottom: 0px;
}

.promptpay-logo img {
    height: 35px;
}

.promptpay-text {
    font-size: 0.875rem;
    color: #1b5179;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.qr-code-section {
    margin:0;
}

.qr-code {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    background: white;
    border-radius: 5px;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, #000 2px, transparent 2px),
        linear-gradient(0deg, #000 2px, transparent 2px),
        linear-gradient(90deg, #000 4px, transparent 4px),
        linear-gradient(0deg, #000 4px, transparent 4px);
    background-size: 14px 14px, 14px 14px, 28px 28px, 28px 28px;
    background-position: -1px -1px, -1px -1px, -2px -2px, -2px -2px;
    position: relative;
}

.qr-corner {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 4px solid #000;
}

.qr-corner::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: #000;
    top: 6px;
    left: 6px;
}

.qr-corner.top-left {
    top: 5px;
    left: 5px;
}

.qr-corner.top-right {
    top: 5px;
    right: 5px;
}

.qr-corner.bottom-left {
    bottom: 5px;
    left: 5px;
}

.merchant-name {
    font-family: 'RSU', 'Segoe UI', Tahoma, sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.merchant-details {
    font-family: 'RSU', 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin-bottom:0;
}

.footer {
    background: #f8f8f8;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-note {
    font-family: 'RSU', 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.75rem;
    color: #888;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .qr-code {
        width: 240px;
        height: 240px;
    }
    
    .merchant-name {
        font-size: 2rem;
    }
}