:root {
    --bg: #0b0c10; 
    --card-bg: #14161d; 
    --text-main: #ffffff;
    --text-muted: #64748b;
    --primary: #00f5a0; 
    --primary-hover: #00d88c;
    --border: rgba(255, 255, 255, 0.05);
    --input-bg: #1e202b;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 44px 16px;
    box-sizing: border-box;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 245, 160, 0.03) 0px, transparent 40%),
        radial-gradient(at 100% 100%, rgba(0, 245, 160, 0.01) 0px, transparent 40%);
}

.app-wrapper {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.toast-notif {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 388px;
    background: #ffffff;
    color: #0b0c10;
    padding: 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    text-align: center;
}

.toast-notif.show {
    top: 20px;
}

.toast-action-text {
    color: #00a86b;
    text-decoration: underline;
    cursor: pointer;
    display: block;
    margin-top: 4px;
}

.header {
    text-align: center;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tiktok-logo-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #1e202b 0%, #14161d 100%);
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.tiktok-logo {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

.logo-title {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-title span {
    background: linear-gradient(135deg, #00f5a0 0%, #00d88c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.main-card {
    width: 100%;
    background: var(--card-bg);
    padding: 26px 24px;
    border-radius: 24px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

.input-field {
    width: 100%;
    padding: 18px 16px 18px 48px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--input-bg);
    border: 1px solid rgba(255,255,255,0.02);
    border-radius: 14px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.input-field:focus {
    border-color: rgba(0, 245, 160, 0.4);
    background-color: #232633;
    box-shadow: 0 0 0 4px rgba(0, 245, 160, 0.04);
}

.btn-primary {
    width: 100%;
    padding: 18px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: #0b0c10;
    background-color: var(--primary); 
    border: none;
    border-radius: 14px; 
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.2px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 20px rgba(0, 245, 160, 0.2);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

#resultContainer {
    display: none;
    animation: cubicUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cubicUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.text-box {
    background-color: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13.5px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 140px;
    overflow-y: auto;
    color: #e2e8f0;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.text-box::-webkit-scrollbar { width: 4px; }
.text-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 99px; }

.btn-secondary {
    width: 100%;
    padding: 16px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    color: #ffffff;
    background-color: #222533;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.btn-secondary:hover { background-color: #2b2f42; }
.btn-secondary:active { transform: scale(0.98); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    background: var(--card-bg);
    padding: 14px 4px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-sizing: border-box;
}

.feature-item svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.feature-label {
    font-size: 9px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card {
    width: 100%;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
}

.info-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.2px;
}

.info-title svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--input-bg);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 245, 160, 0.2);
}

.step-text {
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 14px 4px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.social-link:hover {
    background-color: var(--input-bg);
    color: #ffffff;
    border-color: rgba(255,255,255,0.1);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.btn-donate {
    width: 100%;
    padding: 16px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    color: #ffffff;
    background-color: #0d0e12;
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-donate:hover { 
    background-color: #161820; 
    border-color: rgba(255,255,255,0.1);
}

.footer {
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 8px;
    text-transform: uppercase;
}
