@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Noto+Sans+KR:wght@400;500;700&display=swap');

.point-grant-page {
    padding: 2rem 1rem 3rem;
    display: flex;
    justify-content: center;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    color: #111827;
}

.point-grant-grid {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
}

.point-grant-form,
.point-grant-history {
    background: #ffffff;
    border-radius: 2rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.point-grant-form header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.point-grant-form header p {
    margin: 0.4rem 0 1.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.point-grant-field {
    margin-bottom: 1.2rem;
}

.point-grant-toggle {
    display: inline-flex;
    gap: 0.4rem;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 0.3rem;
    margin-bottom: 1.2rem;
}

.point-grant-toggle button {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    color: #6b7280;
}

.point-grant-toggle button.is-active {
    background: #111827;
    color: #ffffff;
}

.point-grant-inline {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.point-grant-search {
    border: none;
    background: #1f2937;
    color: #ffffff;
    padding: 0.85rem 1rem;
    border-radius: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

.point-grant-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.point-grant-input,
.point-grant-textarea {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1.2rem;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.point-grant-input:focus,
.point-grant-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: #ffffff;
}

.point-grant-amount {
    position: relative;
}

.point-grant-amount input {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2563eb;
}

.point-grant-amount span {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-weight: 700;
}

.point-grant-textarea {
    resize: none;
}

.point-grant-message {
    background: #eef2ff;
    color: #1e3a8a;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.point-grant-submit {
    width: 100%;
    border: none;
    background: #111827;
    color: #ffffff;
    padding: 1rem;
    border-radius: 1.2rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.point-grant-history header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.point-grant-history header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.point-grant-history header span {
    font-size: 0.7rem;
    background: #f3f4f6;
    color: #9ca3af;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
}

.point-grant-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.point-grant-item {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.point-grant-item:last-child {
    border-bottom: none;
}

.point-grant-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.point-grant-avatar {
    width: 42px;
    height: 42px;
    border-radius: 1rem;
    background: #e0e7ff;
    color: #4338ca;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.point-grant-user p {
    margin: 0;
    font-weight: 700;
    color: #111827;
}

.point-grant-user span {
    font-size: 0.75rem;
    color: #9ca3af;
}

.point-grant-amount-info {
    text-align: right;
}

.point-grant-amount-info strong {
    font-weight: 800;
    color: #111827;
}

.point-grant-amount.is-negative {
    color: #dc2626;
}

.point-grant-amount-info span {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

.point-grant-empty {
    color: #9ca3af;
    font-size: 0.85rem;
}

.point-grant-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2200;
}

.point-grant-modal-card {
    width: min(520px, 95vw);
    background: #ffffff;
    border-radius: 1.8rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.point-grant-modal-header {
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.point-grant-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.point-grant-modal-close {
    border: none;
    background: #f3f4f6;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #9ca3af;
}

.point-grant-modal-body {
    padding: 1.4rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.point-grant-user-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 360px;
    overflow-y: auto;
}

.point-grant-user-item {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.point-grant-user-item strong {
    display: block;
    font-size: 0.9rem;
    color: #111827;
}

.point-grant-user-item span {
    font-size: 0.7rem;
    color: #9ca3af;
}

.point-grant-user-balance {
    font-weight: 700;
    color: #111827;
}

@media (max-width: 900px) {
    .point-grant-grid {
        grid-template-columns: 1fr;
    }
}
