/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* ===== BACKGROUND BLOBS ===== */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #6c5ce7;
    top: -100px;
    right: -100px;
    animation: float1 8s ease-in-out infinite;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: #a29bfe;
    bottom: -80px;
    left: -80px;
    animation: float2 10s ease-in-out infinite;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #6c5ce7;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 20px;
    margin: 40px auto;
}

/* ===== CARD ===== */
.card {
    background: rgba(30, 30, 50, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
}

.main-card {
    text-align: center;
}

/* ===== AVATAR ===== */
.avatar {
    margin-bottom: 20px;
}

.avatar-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: #3d3d5c;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #a29bfe;
    border: 3px solid #6c5ce7;
}

/* ===== STORE NAME ===== */
.store-name {
    color: #e0e0e0;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tagline {
    color: #a0a0b0;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* ===== LINK LIST ===== */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    display: flex;
    align-items: center;
    background: rgba(45, 45, 70, 0.7);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.link-item:hover {
    background: rgba(108, 92, 231, 0.2);
    border-color: rgba(108, 92, 231, 0.4);
    transform: translateY(-2px);
}

.link-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 14px;
    flex-shrink: 0;
}

.link-icon.whatsapp {
    background: #25d366;
    color: white;
}

.link-icon.telegram {
    background: #0088cc;
    color: white;
    font-size: 16px;
}

.link-icon.default {
    background: rgba(108, 92, 231, 0.3);
    color: #a29bfe;
}

.link-text {
    flex: 1;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
}

.link-arrow {
    color: #6c5ce7;
    font-size: 14px;
}

/* ===== FOOTER ===== */
.footer-text {
    color: #606080;
    font-size: 0.8rem;
    margin-top: 30px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    color: #a29bfe;
    font-size: 1.4rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #808090;
    font-size: 0.85rem;
}

/* ===== STEPS GRID ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.step-card {
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: #6c5ce7;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    margin-bottom: 8px;
}

.step-title {
    color: #c0c0d0;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-desc {
    color: #808090;
    font-size: 0.7rem;
}

/* ===== STEP HIGHLIGHT ===== */
.step-highlight {
    text-align: center;
    margin-bottom: 20px;
}

.step-highlight .step-card {
    display: inline-block;
    background: rgba(108, 92, 231, 0.1);
}

/* ===== INFO BOX ===== */
.info-box {
    background: rgba(45, 45, 70, 0.7);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-box-title {
    color: #a29bfe;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-box p {
    color: #c0c0d0;
    font-size: 0.8rem;
    line-height: 1.6;
}

.info-box .highlight-green {
    color: #00b894;
    font-weight: 600;
}

/* ===== FEATURES GRID ===== */
.features-section {
    background: rgba(45, 45, 70, 0.7);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.features-title {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0a0b0;
    font-size: 0.75rem;
}

.feature-item i {
    color: #6c5ce7;
    font-size: 12px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: rgba(45, 45, 70, 0.7);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.cta-title {
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.cta-desc {
    color: #808090;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.btn-primary {
    display: inline-block;
    background: #6c5ce7;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-primary:hover {
    background: #5a4bd4;
    transform: translateY(-2px);
}

/* ===== BACK BUTTON ===== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a29bfe;
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #6c5ce7;
}

/* ===== TERMS PAGE ===== */
.dropdown-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(30, 30, 50, 0.9);
    border: 1px solid rgba(108, 92, 231, 0.4);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.9rem;
    appearance: none;
    cursor: pointer;
    margin-bottom: 20px;
}

.dropdown-select option {
    background: #1a1a2e;
    color: #e0e0e0;
}

.terms-content {
    background: rgba(45, 45, 70, 0.7);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.terms-content h3 {
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 12px;
}

.terms-content p {
    color: #808090;
    font-size: 0.85rem;
    line-height: 1.6;
}

.terms-list {
    text-align: left;
    color: #a0a0b0;
    font-size: 0.85rem;
    line-height: 1.9;
    padding-left: 20px;
    list-style: disc;
}

.terms-list li {
    margin-bottom: 4px;
}

.terms-list li strong {
    color: #e0e0e0;
}

/* ===== TOOLS PAGE ===== */
.tools-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.tools-nav-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    padding-bottom: 4px;
    scroll-behavior: smooth;
}

.tools-nav-scroll::-webkit-scrollbar {
    height: 3px;
}

.tools-nav-scroll::-webkit-scrollbar-thumb {
    background: #6c5ce7;
    border-radius: 4px;
}

.nav-arrow {
    width: 30px;
    height: 30px;
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 50%;
    color: #a29bfe;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #6c5ce7;
    color: white;
}

.tool-tab {
    padding: 8px 14px;
    background: rgba(45, 45, 70, 0.7);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 20px;
    color: #a0a0b0;
    font-size: 0.75rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tool-tab:hover,
.tool-tab.active {
    background: #6c5ce7;
    color: white;
    border-color: #6c5ce7;
}

/* ===== TOOL CONTENT ===== */
.tool-content {
    background: rgba(45, 45, 70, 0.5);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.tool-tabs-input {
    display: flex;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: rgba(30, 30, 50, 0.8);
    border: none;
    color: #a0a0b0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #6c5ce7;
    color: white;
}

.tool-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(30, 30, 50, 0.9);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    padding: 14px;
    color: #e0e0e0;
    font-size: 0.85rem;
    resize: vertical;
    margin-bottom: 8px;
}

.tool-textarea::placeholder {
    color: #606080;
}

.tool-textarea:focus {
    outline: none;
    border-color: #6c5ce7;
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.line-count {
    color: #606080;
    font-size: 0.75rem;
}

.btn-clear {
    background: none;
    border: none;
    color: #a29bfe;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool-input-group {
    margin-bottom: 16px;
}

.tool-input-group label {
    color: #a0a0b0;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 6px;
}

.tool-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(30, 30, 50, 0.9);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.85rem;
}

.tool-input:focus {
    outline: none;
    border-color: #6c5ce7;
}

.btn-process {
    width: 100%;
    padding: 12px;
    background: rgba(108, 92, 231, 0.3);
    border: 1px solid rgba(108, 92, 231, 0.4);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-process:hover {
    background: #6c5ce7;
}

/* ===== TOOL PANEL EXTRAS ===== */
.tool-panel-title {
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tool-panel-desc {
    color: #808090;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.upload-area {
    border: 2px dashed rgba(108, 92, 231, 0.4);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 16px;
    cursor: pointer;
    position: relative;
}

.upload-area i {
    font-size: 2rem;
    color: #6c5ce7;
    margin-bottom: 8px;
    display: block;
}

.upload-area p {
    color: #808090;
    font-size: 0.8rem;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tool-result {
    margin-top: 16px;
}

.result-box {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.result-header span {
    color: #a29bfe;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-copy {
    background: #6c5ce7;
    border: none;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-copy:hover {
    background: #5a4bd4;
}

.result-pre {
    color: #c0c0d0;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 150px;
    overflow-y: auto;
    margin: 0;
    font-family: 'Courier New', monospace;
}

.success-msg {
    color: #00b894;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .container {
        padding: 16px;
        margin: 20px auto;
    }

    .card {
        padding: 30px 20px;
    }

    .store-name {
        font-size: 1.3rem;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
