/* 추천인 페이지 전용 스타일 */

/* 추천인 메인 컨테이너 */
.rec-main-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

/* 추천인 안내 섹션 (좌측) */
.rec-guide-section {
    flex: 1;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.rec-guide-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.rec-guide-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* 추천인 혜택 안내 */
.rec-benefits-container {
    margin-bottom: 1.25rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.rec-benefit-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    border: 1px solid var(--gray-100);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.rec-benefit-item::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.rec-benefit-item:hover {
    border-color: var(--gray-300);
}

.rec-benefit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    min-width: 0;
}

.rec-benefit-type {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.rec-benefit-points {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.rec-benefit-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.4;
    white-space: nowrap;
}

/* 추천인 상태 */
.rec-status-container {
    margin-bottom: 1.25rem;
}

.rec-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.rec-status-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1.125rem;
    border: 1px solid var(--gray-100);
    text-align: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rec-status-item:hover {
    border-color: var(--gray-300);
}

.rec-status-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.rec-status-icon {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.rec-status-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

/* 추천인 코드 */
.rec-code-container {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    border: 1px solid var(--gray-100);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rec-code-container:hover {
    border-color: var(--gray-300);
}

.rec-code-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.rec-code-label i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.rec-code-input-container {
    display: flex;
    gap: 0.5rem;
}

.rec-code-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    background: var(--gray-50);
    text-align: center;
    letter-spacing: 0.05em;
}

.rec-code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rec-copy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rec-copy-button:hover {
    background: var(--primary-dark);
    box-shadow: 0 2px 6px 0 rgba(59, 130, 246, 0.2);
}

.rec-copy-button i {
    font-size: 0.75rem;
}

/* 추천인 현황 섹션 (우측) */
.rec-status-history-section {
    flex: 1;
    min-width: 0; /* flex 아이템이 컨테이너를 넘지 않도록 */
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.rec-status-history-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.rec-status-history-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* 추천인 현황 테이블 컨테이너 */
.rec-status-table-container {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 379.173px;
    display: flex;
    flex-direction: column;
    min-width: 0; /* 컨테이너가 부모를 넘지 않도록 */
    width: 100%; /* 부모 컨테이너 너비에 맞춤 */
}

.rec-status-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    max-height: 100%;
}

.rec-status-table {
    width: 100%;
    min-width: max-content; /* 테이블이 헤더 nowrap에 맞는 최소 너비 유지 */
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--white);
}

.rec-status-table thead {
    background: var(--gray-50);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.rec-status-table th {
    padding: 0.75rem 0.875rem;
    text-align: center;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
    position: relative;
}

.rec-status-table th:first-child {
    text-align: center;
}

.rec-status-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--gray-200);
}

.rec-status-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s ease;
}

.rec-status-table tbody tr:hover {
    background: var(--gray-50);
}

.rec-status-table tbody tr:last-child {
    border-bottom: none;
}

.rec-status-table td {
    padding: 0.75rem 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
    vertical-align: middle;
    border-bottom: none;
    text-align: center;
}

/* 추천인 현황 테이블 스크롤바 스타일 - 가로 스크롤바만 숨김 */
.rec-status-table-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 0px; /* 가로 스크롤바 높이를 0으로 설정하여 숨김 */
}

.rec-status-table-wrapper::-webkit-scrollbar:horizontal {
    height: 0px; /* 가로 스크롤바만 숨김 */
}

.rec-status-table-wrapper::-webkit-scrollbar:vertical {
    width: 6px; /* 세로 스크롤바는 유지 */
}

.rec-status-table-wrapper::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.rec-status-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.rec-status-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* 1200px 이하 반응형 */
@media (max-width: 1200px) {
    .rec-main-container {
        gap: 1.75rem;
    }
    
    .rec-guide-section {
        padding: 28px;
    }
    
    .rec-status-history-section {
        padding: 28px;
        min-width: 0;
    }
    
    .rec-guide-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .rec-guide-title i {
        font-size: 1.25rem;
    }
    
    .rec-benefits-container {
        margin-bottom: 1rem;
        gap: 1rem;
    }
    
    .rec-benefit-item {
        padding: 1.25rem;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .rec-benefit-item::-webkit-scrollbar {
        display: none;
    }
    
    .rec-status-container {
        margin-bottom: 1rem;
    }
    
    .rec-status-grid {
        gap: 1rem;
    }
    
    .rec-benefit-type {
        font-size: 0.9375rem;
    }
    
    .rec-benefit-points {
        font-size: 1.125rem;
    }
    
    .rec-benefit-description {
        font-size: 0.8125rem;
    }
    
    .rec-status-item {
        padding: 1rem;
    }
    
    .rec-status-label {
        font-size: 0.75rem;
    }
    
    .rec-status-count {
        font-size: 1.375rem;
    }
    
    .rec-code-container {
        padding: 1.125rem;
    }
    
    .rec-code-label {
        font-size: 0.8125rem;
    }
    
    .rec-code-input {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }
    
    .rec-copy-button {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .rec-status-history-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .rec-status-history-title i {
        font-size: 1.25rem;
    }
    
    .rec-status-table-container {
        height: 339.16px;
        min-width: 0;
        width: 100%;
    }
    
    .rec-status-table {
        font-size: 0.8125rem;
        min-width: max-content;
    }
    
    .rec-status-table th,
    .rec-status-table td {
        padding: 0.75rem 0.875rem;
    }
}

/* 900px 이하 반응형 */
@media (max-width: 900px) {
    .rec-main-container {
        gap: 1.5rem;
    }
    
    .rec-guide-section {
        padding: 24px;
    }
    
    .rec-status-history-section {
        padding: 24px;
        min-width: 0;
    }
    
    .rec-guide-title {
        font-size: 1.375rem;
        gap: 0.625rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }
    
    .rec-guide-title i {
        font-size: 1.125rem;
    }
    
    .rec-benefits-container {
        margin-bottom: 0.875rem;
        gap: 0.875rem;
    }
    
    .rec-benefit-item {
        padding: 1.125rem;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .rec-benefit-item::-webkit-scrollbar {
        display: none;
    }
    
    .rec-benefit-type {
        font-size: 0.875rem;
    }
    
    .rec-benefit-points {
        font-size: 1rem;
    }
    
    .rec-benefit-description {
        font-size: 0.75rem;
    }
    
    .rec-status-container {
        margin-bottom: 0.875rem;
    }
    
    .rec-status-grid {
        gap: 0.875rem;
    }
    
    .rec-status-item {
        padding: 0.875rem;
    }
    
    .rec-status-label {
        font-size: 0.6875rem;
    }
    
    .rec-status-count {
        font-size: 1.25rem;
    }
    
    .rec-code-container {
        padding: 1rem;
    }
    
    .rec-code-label {
        font-size: 0.75rem;
        margin-bottom: 0.625rem;
    }
    
    .rec-code-input {
        padding: 0.625rem;
        font-size: 0.75rem;
    }
    
    .rec-copy-button {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .rec-status-history-title {
        font-size: 1.375rem;
        gap: 0.625rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }
    
    .rec-status-history-title i {
        font-size: 1.125rem;
    }
    
    .rec-status-table-container {
        height: 308.173px;
        min-width: 0;
        width: 100%;
    }
    
    .rec-status-table {
        font-size: 0.75rem;
        min-width: max-content;
    }
    
    .rec-status-table th,
    .rec-status-table td {
        padding: 0.625rem 0.75rem;
    }
}

/* 768px 이하 반응형 - 세로 배치 */
@media (max-width: 768px) {
    .rec-main-container {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .rec-guide-section {
        flex: none;
        width: 100%;
        padding: 20px;
    }
    
    .rec-status-history-section {
        flex: none;
        width: 100%;
        padding: 20px;
        min-width: 0;
    }
    
    .rec-guide-title {
        font-size: 1.25rem;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .rec-guide-title i {
        font-size: 1.125rem;
    }
    
    .rec-benefits-container {
        margin-bottom: 1rem;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .rec-benefit-item {
        padding: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .rec-benefit-item::-webkit-scrollbar {
        display: none;
    }
    
    .rec-benefit-header {
        margin-bottom: 0.625rem;
    }
    
    .rec-benefit-type {
        font-size: 0.8125rem;
    }
    
    .rec-benefit-points {
        font-size: 0.9375rem;
    }
    
    .rec-benefit-description {
        font-size: 0.6875rem;
        line-height: 1.3;
    }
    
    .rec-status-container {
        margin-bottom: 1rem;
    }
    
    .rec-status-grid {
        gap: 1rem;
    }
    
    .rec-status-item {
        padding: 0.875rem;
    }
    
    .rec-status-label {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .rec-status-count {
        font-size: 1.125rem;
    }
    
    .rec-code-container {
        padding: 0.875rem;
    }
    
    .rec-code-label {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .rec-code-input-container {
        gap: 0.375rem;
    }
    
    .rec-code-input {
        padding: 0.625rem;
        font-size: 0.6875rem;
    }
    
    .rec-copy-button {
        padding: 0.625rem 0.75rem;
        font-size: 0.6875rem;
        gap: 0.25rem;
    }
    
    .rec-status-history-title {
        font-size: 1.25rem;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .rec-status-history-title i {
        font-size: 1.125rem;
    }
    
    .rec-status-table-container {
        height: 291.469px;
        min-width: 0;
        width: 100%;
    }
    
    .rec-status-table {
        font-size: 0.6875rem;
        min-width: max-content;
    }
    
    .rec-status-table th,
    .rec-status-table td {
        padding: 0.5rem 0.625rem;
    }
    
    /* 768px 이하에서 추천인 현황 테이블 스크롤바 숨기기 */
    .rec-status-table-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .rec-status-table-wrapper {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* 480px 이하 반응형 */
@media (max-width: 480px) {
    .rec-main-container {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .rec-guide-section {
        width: 100%;
        padding: 12px;
    }
    
    .rec-status-history-section {
        width: 100%;
        padding: 12px;
        min-width: 0;
    }
    
    .rec-guide-title {
        font-size: 1.125rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .rec-guide-title i {
        font-size: 1rem;
    }
    
    .rec-benefits-container {
        margin-bottom: 0.75rem;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .rec-benefit-item {
        padding: 0.875rem;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .rec-benefit-item::-webkit-scrollbar {
        display: none;
    }
    
    .rec-benefit-header {
        margin-bottom: 0.5rem;
    }
    
    .rec-benefit-type {
        font-size: 0.75rem;
    }
    
    .rec-benefit-points {
        font-size: 0.875rem;
    }
    
    .rec-benefit-description {
        font-size: 0.625rem;
        line-height: 1.2;
    }
    
    .rec-status-container {
        margin-bottom: 0.75rem;
    }
    
    .rec-status-grid {
        gap: 0.75rem;
    }
    
    .rec-status-item {
        padding: 0.75rem;
    }
    
    .rec-status-label {
        font-size: 0.6875rem;
        margin-bottom: 0.375rem;
    }
    
    .rec-status-count {
        font-size: 1rem;
    }
    
    .rec-code-container {
        padding: 0.75rem;
    }
    
    .rec-code-label {
        font-size: 0.6875rem;
        margin-bottom: 0.5rem;
    }
    
    .rec-code-input-container {
        gap: 0.25rem;
    }
    
    .rec-code-input {
        padding: 0.5rem;
        font-size: 0.625rem;
    }
    
    .rec-copy-button {
        padding: 0.5rem 0.625rem;
        font-size: 0.625rem;
        gap: 0.25rem;
    }
    
    .rec-status-history-title {
        font-size: 1.125rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .rec-status-history-title i {
        font-size: 1rem;
    }
    
    .rec-status-table-container {
        height: 254.173px;
        min-width: 0;
        width: 100%;
    }
    
    .rec-status-table {
        font-size: 0.625rem;
        min-width: max-content;
    }
    
    .rec-status-table th,
    .rec-status-table td {
        padding: 0.375rem 0.5rem;
    }
}
