
:root{
    --page-bg:#000000;
    --card-bg: #181f27;
    --card-border: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.42);
    --gold-light: #fde08d;
    --gold-gradient: linear-gradient(90deg, #ebb05e 0%, #fff9d6 100%);
    --gold-gradient-v: linear-gradient(180deg, #fff5d7 0%, #ffd695 100%);
    --link-item-bg: #333333;
    --social-btn-bg: #3a3a40;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body{
     background: var(--page-bg);
}
.page{
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    padding: 40px 14px 28px;
}
.card{
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.flTywP{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.userImg{
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 8px;
}
.account{
    color: var(--gold-light);
    margin-bottom: 8px;
}
.ins_btn{
    background: var(--social-btn-bg);
    color: var(--text-primary);
    padding: 8px 18px;
    box-sizing: border-box;
    border-radius: 9999px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}
a{
    text-decoration: none !important;
    color: #1a1200;
}
.ins_btn img{
   width: 24px;
   height: 24px; 
}

.platformName{
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
}
.inviteRow{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    cursor: pointer;
}
.inviteLabel{
    color: rgba(255, 255, 255, 0.7);
}
.inviteCode{
    color: var(--gold-light);
    font-weight: 700;
    letter-spacing: 0.5px;
    user-select: all;
}
.cardActions{
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 2px;
}
.cardActions .openPlatform{
    flex: 1;
    min-width: 0;
}
.openLinkBtn,
.copyBtn{
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.openLinkBtn{
    width: 100%;
    background: var(--gold-gradient);
}
.openLinkBtn img{
    width: 16px;
    height: 16px;
    filter: brightness(0);
}
.copyBtn{
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #2a313a;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
}
.copyBtn img{
    width: 15px;
    height: 15px;
}
.logoFrame{
    position: relative;
    display: inline-flex;
    max-width: 240px;
    overflow: hidden;
    border-radius: 14px;
    line-height: 0;
    animation: gold-glow 1.3s ease-in-out infinite;
}
.logoFrame::after{
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 46%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 236, 170, 0.95), transparent);
    animation: logo-sheen 1.5s linear infinite;
}
.currentLogo{
    height: 68px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    border-radius: 14px;
    cursor: pointer;
}
@keyframes gold-glow{
    0%, 100%{ box-shadow: 0 0 0 1px rgba(253, 224, 141, 0.45), 0 0 8px rgba(253, 224, 141, 0.2); }
    50%{ box-shadow: 0 0 0 1px #fde08d, 0 0 22px rgba(253, 224, 141, 0.85); }
}
@keyframes logo-sheen{
    from{ transform: translateX(-140%); }
    to{ transform: translateX(320%); }
}
.card--links{
    align-items: stretch;
    padding: 16px 0 14px;
    gap: 0;
}
.cardHeader{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 12px;
}
.cardHeaderIcon{
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.cardTitle{
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}
.linkList{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 12px;
}
.link-list__empty{
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 18px 8px;
}
.link-item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 10px;
    background: var(--link-item-bg);
    border-radius: 12px;
    color: var(--text-primary);
}
.link-item__thumb{
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.link-item__thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.link-item__thumb--placeholder{
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.12);
}
.link-item__body{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.link-item__top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.link-item__name{
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.link-item__access{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 28px;
    padding: 0 10px;
    background: var(--gold-gradient);
    color: #1a1200;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.link-item__access img{
    width: 14px;
    height: 14px;
}
.link-item__url-row{
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.link-item__copy{
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.7;
}
.link-item__copy img{
    width: 16px;
    height: 16px;
    display: block;
}
.link-item__url{
    font-size: 12px;
    line-height: 1.2;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.toast{
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(24, 31, 39, 0.96);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    z-index: 10;
}
.rtp{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}
.rtp-item{
    width: 50%;
    text-align: center;
}
.rtp-number,
.onLineNumber{
    display: inline-block;
    font-size: 24px;
    color: var(--gold-light);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    transform-origin: center;
}
.rtp-number.is-rolling,
.onLineNumber.is-rolling{
    animation: number-pop 0.8s ease;
}
@keyframes number-pop{
    0%{ transform: scale(1); }
    35%{ transform: scale(1.12); }
    100%{ transform: scale(1); }
}