* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.calculator {
    background: linear-gradient(145deg, #f0f0f0, #cacaca);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    width: 100%;
    max-width: 400px;
    border: 3px solid #333;
}

.display-container {
    background: #fff;
    border: 3px solid #ddd;
    border-radius: 20px;
    padding: 25px 20px;
    margin-bottom: 20px;
    box-shadow: inset 5px 5px 10px #d1d1d1, inset -5px -5px 10px #ffffff;
}

.display {
    font-family: 'Courier New', monospace;
    font-size: 48px;
    text-align: right;
    color: #333;
    min-height: 60px;
    letter-spacing: 2px;
    word-break: break-all;
    line-height: 1.2;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

button {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 15px;
    font-size: 24px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 5px 5px 10px #bebebe, -5px -5px 10px #ffffff;
    font-weight: 600;
    color: #333;
    min-height: 70px;
}

button:active {
    box-shadow: inset 5px 5px 10px #bebebe, inset -5px -5px 10px #ffffff;
    transform: scale(0.95);
}

button:hover {
    background: #f5f5f5;
}

.operator {
    background: linear-gradient(145deg, #ffb347, #ff9500);
    color: white;
    border: 2px solid #ff8800;
}

.operator:hover {
    background: linear-gradient(145deg, #ff9500, #ff8800);
}

.wide {
    grid-column: span 2;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 25px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.modal-header p {
    color: #666;
    font-size: 14px;
}

.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.pricing-card {
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pricing-card.selected {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.pricing-card.current {
    border-color: #10b981;
    background: #f0fdf4;
}

.pricing-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.pricing-card .price {
    font-size: 32px;
    font-weight: bold;
    color: #7c3aed;
    margin: 10px 0;
}

.pricing-card .features {
    list-style: none;
    margin: 15px 0;
}

.pricing-card .features li {
    padding: 5px 0;
    color: #666;
    font-size: 14px;
}

.pricing-card .features li:before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
}

.billing-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
    flex-wrap: wrap;
}

.billing-toggle button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 10px;
    min-height: auto;
}

.billing-toggle button.active {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
}

.discount-badge {
    background: #10b981;
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
}

.payment-section {
    display: none;
    margin-top: 20px;
}

.payment-section.active {
    display: block;
}

.payment-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
}

.payment-methods {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.payment-method-card {
    cursor: pointer;
    padding: 15px;
    border: 3px solid #ddd;
    border-radius: 15px;
    transition: all 0.3s;
    background: white;
}

.payment-method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.payment-method-card.selected {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.payment-details {
    margin-top: 20px;
}

.send-to-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.send-to-section label {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.account-number {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.account-name {
    display: block;
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.9;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.gcash-logo {
    text-align: center;
    margin: 20px 0;
    display: none;
}

.btn-primary {
    background: linear-gradient(145deg, #7c3aed, #6d28d9);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    min-height: auto;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #6d28d9, #5b21b6);
}

.btn-secondary {
    background: #e5e7eb;
    color: #333;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    min-height: auto;
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.current-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
}

/* Mobile Responsive Styles */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .calculator {
        padding: 15px;
        border-radius: 20px;
        max-width: 100%;
    }

    .display {
        font-size: 36px;
        min-height: 50px;
    }

    .display-container {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .buttons {
        gap: 8px;
    }

    button {
        font-size: 20px;
        padding: 15px;
        min-height: 60px;
        border-radius: 12px;
    }

    .modal-content {
        padding: 20px;
        border-radius: 15px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .pricing-card {
        padding: 15px;
    }

    .pricing-card h3 {
        font-size: 18px;
    }

    .pricing-card .price {
        font-size: 28px;
    }

    .pricing-card .features li {
        font-size: 13px;
    }

    .payment-methods {
        gap: 10px;
    }

    .account-number {
        font-size: 22px;
    }

    .send-to-section {
        padding: 15px;
    }
}

@media (max-width: 360px) {
    .display {
        font-size: 32px;
    }

    button {
        font-size: 18px;
        padding: 12px;
        min-height: 55px;
    }

    .buttons {
        gap: 6px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        align-items: flex-start;
        padding: 10px;
    }

    .calculator {
        margin: 10px auto;
    }

    .display {
        font-size: 32px;
        min-height: 40px;
    }

    button {
        padding: 12px;
        min-height: 50px;
        font-size: 18px;
    }
}