 :root {
    --ld-primary: rgb(247, 198, 0);
    --ld-dark: rgb(0, 112, 192);
    --ld-white: #fff;
    --ld-bg: rgb(243, 244, 248);
    --ld-white: #ffffff;
    --ld-text: rgb(110, 106, 120);
    --ld-border: #e2e8f0;
    --ld-title: rgb(28, 27, 31);
    --spacing: 0.25rem;
}
.ld-lang-switcher select:focus-visible {
    outline: none;
}

.rank{
    font-size: 18px;
    font-weight: 800;
}
.ld-not-found {
    padding: 16px 22px;
}
.ld-pagination{
    display: flex;
    justify-content: center;
    padding: 16px;
    gap: 8px; 
}
.notice{
    margin: auto;
    display: flex;
    justify-content: center;
    padding: 32px;
}
.notice a {
     margin: 0 4px;
    text-decoration: underline !important;  
}
.ld-lang-switcher{
   background: var(--ld-white);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.4; 
    background: #e0f2ff;
    
}
.ld-lang-switcher option[selected] {
    color: #0070c0;
    font-weight: bold;
}
.ld-lang-switcher select{
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    
    color: #0070c0;
  
}
.ld-pagination .page-numbers.current{
    color: #007fd4;
    border-color: #007fd4;
}
.rank-box{
 margin-top: 8px; 
}
.ld-us-overview .ld-content h4{
word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient: vertical;
        max-width: 700px;
}
.ld-app {
    display: flex;
    min-height: 100vh;
    background: var(--ld-bg);
    color: var(--ld-text);
    font-size: 14px;
    line-height: 1.4;
}
.ld-action-dark .ld-title{
color: #fff;
}
.ld-tag{
      display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgb(247, 198, 0);
    color: rgb(13, 26, 46);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap; 
      margin-bottom: 0;
}

.gift-title{
    font-family: "Bricolage Grotesque";
    font-weight: 700;
    font-size: 16px;
    color: var(--ld-title);
    margin-bottom: 6px;
    line-height: 1.3;  
}

.ld-sidebar {
    width: 220px;
    min-height: 100vh;
    padding: 24px 12px;
    background: var(--ld-white);
    display: grid;
    align-content: space-between;
    box-shadow: 1px 0 #e8eaf0;
}
.ld-title{
 color: var(--ld-title);
 font-weight: 600;
}
.ld-profile {
    margin-bottom: 2rem;
}
.ld-profile-info{
    border-bottom: 1px solid rgb(232, 234, 240);
    margin-bottom: 20px;
    padding: 0 16px 20px;
}
.ld-avatar {
    width: 52px;
    height: 52px;
    background: rgb(247, 198, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;

}
.ld-flex{
 display: flex;
 gap: 12px;
 align-items: center;
}
.ld-name { font-weight: 700; font-size: 1.1rem; }
.ld-handle { 
    color: rgb(110, 106, 120);
    font-size: 12px;
    line-height: 1.3;
 }
.ld-points-box {
    background: var(--ld-primary);
    border-radius: 8px;
    color: var(--ld-title); 
    font-size: 1.2rem;
    border-radius: 16px;
    padding: 14px 20px;
    box-shadow: rgba(247, 198, 0, 0.35) 0px 2px 8px;
   
}
.ld-points-box .point{
    font-family: 'Bricolage Grotesque';
    font-weight: 800;
    font-size: 24px;
    color: var(--ld-title);
    line-height: 1;
}
.ld-points-box span {
    display: block;
    font-size: 0.7rem;
    font-weight: normal;
    color: rgba(28, 27, 31, 0.65);
}
.ld-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.ld-nav a {
    color: #49454f;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: inherit;
}
.ld-nav a:hover{
           background: #009aff14;
}
.ld-nav a.active {
       color: #0070c0;
    background: #e0f2ff;
}
.ld-sidebar-footer{
    display: flex;
    position: relative;
    vertical-align: bottom;
    align-items: end;
}
.ld-sidebar-footer a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.ld_form-reward{
        max-width: 580px;
}
.ld-main-content{
    padding: 32px;
}
.ld-main {
    flex: 1;
  
}
.ld-main a{
    font-size: inherit;
}
.ld-main .ld-meta a{
    font-size: 12px;
}
.ld_pd{
    /* padding: 28px 32px; */
}
.ld-mb-8{
    margin-bottom: calc(var(--spacing) * 8);
}
.ld-pd-card{
    padding: 20px;
}
.ld-header {
    justify-content: space-between;
}
.ld-btn-gray{
    font-size: 13px;
    line-height: 1.4;
}
.ld-btn.disabled{
    opacity: 0.6;
    cursor: not-allowed;
    margin-bottom: 8px;
}
.link-article{
   font-size: 12px;
    color: #64748b;
    text-decoration: underline !important;
    font-weight: 400 ;
}
.ld-header h1 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.ld-btn {
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px !important;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
}
.ld-btn:hover { transform: translateY(-1px); }
.ld-btn-yellow { 
    background: #007fd4; 
    box-shadow: 0 2px 4px #00000026, 0 4px 10px #009aff59;
    color: #fff;    
}
.ld-btn-blue{
    color: #0070c0;
    cursor: pointer;
    background: #e0f2ff;
    border: none;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    transition:  0.2s;
}
.ld-btn-blue:hover{
    background: #b3e4ff;
}
    
.ld-btn-yellow:hover{
    background: #0070c0;
    color: #fff;
    transform: translateY(0);
}
.ld-btn-outline { border: 1px solid var(--ld-border); color: var(--ld-text); background: white; }
.ld-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.ld-stats-grid .ld-card.d-flex{
    gap: 16px;
    align-items: center;
}

.ld-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.ld-icon-green { background: #dcfce7; color: #16a34a; }
.ld-icon-blue { background: #e0e7ff; color: #4f46e5; }
.ld-icon-yellow { background: #fef9c3; color: #ca8a04; }
.ld-stat-content { flex: 1; }
.ld-stat-content .ld-number { 
    font-size: 1.8rem; 
    font-weight: 700; 
    line-height: 1;
    color: var(--ld-title);
    margin-bottom: 4px !important;
  
 }
 .ld-card .ld-number, .ld-card .ld-icon{
    margin-bottom: 12px;
 }
.ld-card p {
     margin: 0.2rem 0 0; 
     font-size: 13px; 
     line-height: 1.4;
    color: var(--ld-text);
    font-weight: 400;
}
.ld-card .ld-title{
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.4;
}
.ld-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ld-action-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.ld-action-card.ld-action-dark { background: var(--ld-dark); color: white; border-color: var(--ld-dark);     box-shadow: rgba(0, 154, 255, 0.4) 0px 4px 14px;}

.ld-action-card.ld-action-dark p {  color: rgba(255, 255, 255, 0.65); }
.ld-action-card .ld-icon { font-size: 1.5rem; }
.ld-recent.ld-card{
padding: 0;
}
.ld-recent-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;  
    padding: 16px 22px;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid rgb(240, 240, 235);}

.ld-recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
   padding: 14px 22px;
    border-bottom: 1px solid var(--ld-border);
    gap: 32px;
    flex-wrap: wrap;
}
.ld-heading-form .ld-title{
    font-size: 28px;
    margin-top: 16px;
}
.ld-recent-item:last-child { border-bottom: none; }
.ld-content h4 { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 500; }
.ld-meta {
    display: flex;
    gap: 1rem;
    color: #64748b;
    font-size: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.ld-profile-info img{
    border-radius: 12px !important;
}
.ld-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
}
.ld-badge-facebook { background: #e0e7ff; color: #1877F2; }
.ld-badge-tiktok { background: #f1f1f2; color: #000; }
.ld-badge-instagram { background: #ffe4e6; color: #E4405F; }
.ld-badge-youtube { background: #ffe0e0; color: #FF0000; }
.ld-right { text-align: right; display: flex; align-items: center; gap: 1rem; }
.ld-points { color: #137333; font-weight: 600; font-size: 14px;
    line-height: 1.4; }
.ld-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}
.ld-approved {   
        color: #137333;
    background: #e6f4ea;
}
.ld-rejected{
    background: #d4183d12;
    color: #d4183d;   
}
.ld-pending {        
    background: rgb(255, 247, 237);
    color: rgb(249, 115, 22);
}
.ld-empty { color: #94a3b8; text-align: center; padding: 2rem; }
.ld-points-badge {
    background: #fef9c3;
    color: #854d0e;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}
.ld-card {
    background: var(--ld-white);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    padding: 1.5rem;
}
.ld-subtitle {
       color: rgb(124, 124, 112);
    font-size: 14px;

 }
 .ld-heading-form{
        margin-bottom: 24px;
 }
.ld-form-group { margin-bottom: 1rem; }
.ld-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.ld-form-group input,
.ld-form-group select,
.ld-form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--ld-border);
    border-radius: 6px;
    font-size: 0.95rem;
}
.ld-form-row {
    display: flex;
    gap: 1rem;
}
.ld-form-half { flex: 1; }
.ld-alert {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}
.ld-alert-success { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; font-size: 16px;line-height: 1.4;}
.ld-alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.ld-text-small{
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em; 
}
.ld-text-small.t-point{
    text-transform: inherit;
    margin: 0;
}
.ld-history-section{
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--ld-title)
}
.ld-history-section .ld-number{
    font-family: 'Bricolage Grotesque';
    font-weight: 800;
    font-size: 52px;
    color: var(--ld-primary);
    line-height: 1;
    margin-top: 12px;
    margin-bottom: 6px;
}
.btn-redeem{

}


@media (max-width: 768px) {
    .ld-gift-grid {
        grid-template-columns: 1fr;
    }

    .ld-history-section{
    flex-wrap: wrap;
    gap: 16px;
    
    }
    .ld-nav a {
        padding: 8px;
        font-size: 14px;
        line-height: 1.4;
        display: block;
    }
    .ld-right{
          flex-wrap: wrap;
          gap: 8px;
    } 
    .ld-points {
        font-size: 14px;
        line-height: 1.4;
    }
    .ld-recent .ld-right{
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
     .ld-right .ld-status{
        padding: 0;
    }
    .ld-right .ld-status.ld-rejected,.ld-right .ld-status.ld-pending,.ld-right .ld-status.approved{
        padding: 8px 12px;
    }
    .ld-history-section .ld-number {
       font-size: 32px; 
    }
    .ld-recent-header .ld-title {
    font-size: 18px;
        
    }
    .ld-form-group textarea{
        font-size: 14px;
    }
    .ld-header{
        margin-bottom: 0;
    }
    .ld-stats-grid .ld-card.d-flex {
        flex-flow: column;
        align-items: start;
    }
    .ld-main-content {
        padding: 0;
    }
    .ld-stats-grid {
    gap: 1rem;
    }
    .ld-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 16px 8px;
        width: 40%;
    }
    .ld-points-box
     {
        padding: 8px 12px; 
     }
     .rank {
        font-size: 14px;
     }
    .ld-main { margin-left: 0; padding: 1rem; 
            width: 60%;}
    .ld-stats-grid,
    .ld-actions-grid { grid-template-columns: 1fr; }
    .ld-form-row { flex-direction: column; }
    .ld-header { 
         padding: 0;
        display: block;
        height: auto;
     }
     .ld-header a{
        width: fit-content;
        margin-top: 8px;
    }
     .ld_pd {
            padding: 32px 0;
        }
    .ld-card {
        padding: 16px;
    }
    .ld-card .ld-title {
            font-size: 14px;
    }
    .ld-meta {
            gap: 8px;
    }
    .ld-recent-item ,.ld-recent-header {
            padding: 8px 12px;
    }
    .ld-recent-item{
                gap: 24px;
    }
}

span.ld-points.blur {
    opacity: 0.4;
}

        /* Gift Grid */
.ld-gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 28px;
}
.ld-gift-card {
    background: var(--ld-white);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s;
}
.ld-icon-card{
    display: block;
}
.ld-gift-card p{
     font-size: 14px;
    color: rgb(13, 26, 46);
    line-height: 1.4;
}
.ld-recent-header .ld-title{
    font-size: 20px;
    color: rgb(13, 26, 46);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.ld-gift-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.ld-gift-icon {
    font-size: 2rem;
    margin-bottom: 16px;
        min-height: 50px;
}
.ld-btn-sm{
    width: 100%;
}
.ld-gift-icon img{
        max-width: 64px !important;
    margin: auto;
    width: 100%;
}
.ld-gift-cost {
    display: inline-flex;
    margin-bottom: 1rem;
    background: rgb(247, 198, 0);
    color: rgb(13, 26, 46);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px !important;
    font-weight: 600;
 
    white-space: nowrap;
}
.ld-gift-disabled {
    opacity: 0.6;
    pointer-events: none;
}
.ld-gift-btn {
    width: 100%;
}
.ld-gift-not-enough {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Modal */
.ld-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.ld-modal-content {
    background: var(--ld-white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.ld-modal-content .ld-form-group label{
    font-size: 16px;
}
.ld-modal-content .ld-title {
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 16px;
    font-family: 'Bricolage Grotesque';
}
.ld-modal-content p{
    font-size: 16px;
    line-height: 1.4;
}
.ld-modal-content .ld-form-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.ld-modal-content .ld-form-row .ld-btn {
    flex: 1;
}

.ld_form-reward .list-platforms{
      display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;  
}
.ld_form-reward .platform{
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 16777200px;
    border: 2px solid var(--Neutral-Extra-Light-Grey, #e9e9ea);
    background: var(--Neutral-White, #fff);
    display: flex;
    padding: 12px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.ld_form-reward .platform.active{
        background: #FFC800;
    border-color: #ffc800;

}
.ld_form-reward .social-item input{
    height: 48px;
    width: 100%;
    outline: none;
    padding: 4px 8px 4px 12px;
    margin-top: 0;
    border-radius: 8px;
    border: 1px solid var(--Neutral-Light-Grey, #c3c4c5);
    background: var(--Neutral-White, #fff);
}
.ld_form-reward .social-item p {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 48px;
    width: 100%;
}
.ld_form-reward .list-platforms{
margin-bottom: 16px;
}