body { font-family: monospace; margin: 0; font-size: 12px; line-height: 1.2; background: #f0f0f0; }
h1 { font-size: 18px; margin: 0 0 15px 0; text-align: center; }
h2 { margin: 0 0 10px 0; background: #333; color: #fff; padding: 5px; font-size: 13px; }

.grid-container { display: flex; flex-direction: column; gap: 10px; max-width: 1200px; margin: 0 auto; padding: 20px 10px; }
.top-row { display: flex; gap: 10px; }
.box { border: 2px solid #000; background: #fff; padding: 10px; flex: 1; }

.profile-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 6px 12px;
    font-weight: bold;
    font-family: monospace;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.profile-btn.active {
    background: #3f51b5;
    color: #fff;
    border-color: #3f51b5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.profile-btn.custom-profile {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}
.profile-btn.custom-profile:hover {
    background: #e0e7ff;
    color: #4338ca;
}
.profile-btn.custom-profile.active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.4);
}

.bottom-area { border: 2px solid #000; background: #fff; padding: 10px; }

textarea { 
    width: 100%; 
    height: 200px; 
    font-size: 12px; 
    margin-bottom: 5px; 
    border: 1px solid #999; 
    box-sizing: border-box; 
    font-family: 'Consolas', 'Monaco', monospace; 
    background: #eee; 
    padding: 10px; 
    line-height: 1.5;
    color: #333;
}

button { cursor: pointer; padding: 8px 12px; border: 1px solid #000; background: #ddd; font-family: monospace; }
button:hover:not(:disabled) { background: #bbb; }
button:disabled { cursor: not-allowed; opacity: 0.5; background: #ccc !important; }

.preset-area { margin-bottom: 15px; padding: 10px; border: 1px dashed #666; background: #f9f9f9; }
.preset-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }

/* author: kh.moon */
.pm-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}
.pm-card:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    transform: translateY(-1px);
}
.pm-card.active {
    border-color: #3f51b5;
    background: #eef2ff;
    box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}
.pm-title {
    font-weight: bold;
    font-size: 13px;
    color: #1e293b;
}
.pm-provider {
    font-size: 10px;
    color: #64748b;
    font-family: monospace;
}

/* author: kh.moon */
.form-sim {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 580px;
    margin: 20px auto;
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    margin-bottom: 2px;
}

/* inputs & hosted container */
.form-sim input[type="text"],
.hosted-container {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-sim input[type="text"]::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.form-sim input[type="text"]:focus,
.hosted-container.focused {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* horizontal row for expiry & cvv */
.form-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.flex-1 {
    flex: 1;
}

/* input wrapper for icons inside */
.input-wrapper {
    position: relative;
    width: 100%;
}

/* cvv icon */
.cvv-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

/* pay now submit button */
.form-submit {
    margin-top: 12px;
}

#pay-btn {
    width: 100%;
    height: 52px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #1a73e8; /* elegant blue */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

#pay-btn:hover:not(:disabled) {
    background-color: #1557b0;
    box-shadow: 0 6px 14px rgba(26, 115, 232, 0.3);
}

#pay-btn:active:not(:disabled) {
    transform: scale(0.985);
}

#pay-btn:disabled {
    background-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.8;
}
.lock-icon {
    font-size: 14px;
}
#status { margin-top: 10px; border: 1px solid #777; padding: 10px; white-space: pre-wrap; background: #fff; height: 150px; overflow-y: auto; font-size: 11px; color: #333; }
#status.error { border-color: red; background: #fff0f0; color: red; }

/* author: kh.moon */
#reset-btn {
    background: #757575;
    color: white;
    padding: 12px 35px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#reset-btn:hover {
    background: #616161 !important;
}

#reset-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

/* author: kh.moon */
.brand-title {
    font-family: "Instrument Sans", sans-serif;
    font-size: 35px;
    font-weight: 700;
    /* Heritage Red fallback */
    color: #A50034;
    letter-spacing: -0.02em;
    /* Heritage Red to Active Red */
    background: linear-gradient(135deg, #A50034 0%, #FD312E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
