﻿:root {
        --bg: #fef6f3;
        --card: #ffffff;
        --text: #2d3748;
        --muted: #718096;
        --border: #f5e6e0;
        --primary: #ee6c4d;
        --primary-dark: #d95639;
        --primary-light: #fff5f2;
        --success: #10b981;
        --info: #3b82f6;
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    * { 
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        color: var(--text);
        background: #ff612580;
        line-height: 1.6;
        padding: 12px;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .container {
        max-width: 520px;
        margin: 0 auto;
    }

    .header {
        text-align: center;
        padding: 16px 12px 12px 12px;
        margin-bottom: 16px;
    }

    .header-community-card {
        margin: 10px auto 0;
        padding: 8px 12px;
        width: fit-content;
        max-width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        border: 1px solid #f3d7cf;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 10px rgba(238, 108, 77, 0.08);
    }

    .header-community-text {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
        color: #7a4b3e;
    }

    .header-community-actions {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .header-social-btn {
        width: 32px;
        height: 32px;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        margin-left: 0;
        padding: 0;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .header-social-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        opacity: 0.9;
    }

    .header-social-fb {
        width: auto;
        height: auto;
        background: transparent;
        color: #ffffff;
        border-radius: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 21px;
        font-weight: 700;
        line-height: 1;
        font-family: Arial, Helvetica, sans-serif;
        transform: translateY(1px);
        margin: 0;
        padding: 0;
    }

    .header h1 {
        margin: 0;
        font-size: clamp(24px, 6vw, 30px);
        font-weight: 800;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        letter-spacing: -0.5px;
    }

    .header h1::before {
        display: none;
        content: "ðŸ”—";
        font-size: clamp(26px, 6.5vw, 32px);
    }

    .card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
        padding: 16px;
        margin-bottom: 12px;
    }

    .card-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 10px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .input-wrapper {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .input-with-button {
        display: flex;
        gap: 8px;
        align-items: stretch;
    }

    .form-control {
        flex: 1;
        min-width: 0;
        border: 1.5px solid var(--border);
        padding: 12px 14px;
        font-size: 16px;
        color: var(--text);
        outline: none;
        background: #fff;
        border-radius: 8px;
        min-height: 48px;
        -webkit-appearance: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .paste-btn {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 0 16px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 48px;
        white-space: nowrap;
        transition: all 0.2s ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        flex-shrink: 0;
        width: 90px;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }

    .paste-btn:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
        transform: translateY(-1px);
    }

    .paste-btn:active {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    }

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light), 0 4px 12px rgba(238, 108, 77, 0.15);
        transform: translateY(-1px);
    }

    .form-control::placeholder {
        color: #a0aec0;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 0;
        border-radius: 8px;
        padding: 12px 16px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.2s ease;
        white-space: nowrap;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-appearance: none;
    }

    .btn:hover {
        transform: translateY(-2px);
    }

    .btn:active {
        transform: translateY(0) scale(0.98);
    }

    .btn-block {
        width: 100%;
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: #fff;
        box-shadow: 0 4px 12px rgba(238, 108, 77, 0.3);
    }

    .btn-primary:hover {
        box-shadow: 0 6px 16px rgba(238, 108, 77, 0.4);
    }

    .btn-primary:active {
        box-shadow: 0 2px 8px rgba(238, 108, 77, 0.3);
    }

    .btn-success {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: #fff;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

    .btn-success:hover {
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    }

    .btn-success:active {
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }

    .btn-info {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: #fff;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

    .btn-info:hover {
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    }

    .btn-info:active {
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }

    .btn-outline {
        background: #fff;
        color: var(--primary);
        border: 1.5px solid var(--primary);
        box-shadow: 0 2px 8px rgba(238, 108, 77, 0.15);
    }

    .btn-outline:hover {
        background: var(--primary-light);
        box-shadow: 0 4px 12px rgba(238, 108, 77, 0.25);
    }

    .btn-outline:active {
        box-shadow: 0 2px 6px rgba(238, 108, 77, 0.2);
    }

    .btn-sm {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
    }

    .result-section {
        margin-top: 12px;
    }

    .result-box {
        background: var(--primary-light);
        border: 1px solid #ffd4c8;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 4px 12px rgba(238, 108, 77, 0.15);
    }

    .product-preview {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px;
        margin-bottom: 10px;
        min-height: 82px;
        background: #fff;
        border: 1px solid #ffd4c8;
        border-radius: 8px;
        text-decoration: none;
        cursor: pointer;
        transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    }

    a.product-preview:hover {
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(238, 108, 77, 0.18);
        transform: translateY(-1px);
    }

    a.product-preview:active {
        transform: translateY(0) scale(0.99);
    }

    .product-preview-image {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid #f3d7cf;
        background: #f8fafc;
    }

    .product-preview-placeholder {
        display: block;
    }

    .product-preview-info {
        min-width: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .product-preview-title {
        min-width: 0;
        color: var(--text);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .product-preview-price-row {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 8px;
        line-height: 1.15;
    }

    .product-preview-price {
        color: #14192f;
        font-size: 18px;
        font-weight: 800;
    }

    .product-preview-old-price {
        color: var(--muted);
        font-size: 13px;
        text-decoration: line-through;
    }

    .product-preview-discount {
        min-height: 22px;
        padding: 3px 10px;
        border-radius: 999px;
        background: #ffe3ed;
        color: #d44b6b;
        font-size: 12px;
        font-weight: 700;
    }

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

    .result-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: wrap;
    }
    .result-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--primary-dark);
    }

    .result-link {
        font-size: 13px;
        color: var(--text);
        word-break: break-all;
        line-height: 1.5;
        background: #fff;
        padding: 8px;
        border-radius: 6px;
        border: 1px solid #ffd4c8;
    }

    .action-buttons {
        display: flex;
        gap: 6px;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .instructions-list {
        list-style: none;
        counter-reset: step;
        padding: 0;
    }

    .instructions-list li {
        counter-increment: step;
        position: relative;
        padding-left: 40px;
        margin-bottom: 14px;
        font-size: 15px;
        line-height: 1.7;
    }

    .instructions-list li::before {
        content: counter(step);
        position: absolute;
        left: 0;
        top: 2px;
        width: 24px;
        height: 24px;
        background: var(--primary);
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        flex-shrink: 0;
    }

    .btn-facebook {
        background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
        color: #fff;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.2s ease;
        margin-left: 6px;
        white-space: nowrap;
        vertical-align: middle;
        box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
    }

    .btn-facebook:hover {
        box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
        transform: translateY(-2px);
    }

    .btn-facebook:active {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 2px 6px rgba(24, 119, 242, 0.3);
    }

    .btn-youtube {
        background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
        color: #fff;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
    }

    .btn-youtube:hover {
        box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
        transform: translateY(-2px);
    }

    .btn-youtube:active {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 2px 6px rgba(255, 0, 0, 0.3);
    }

    .btn-zalo {
        background: #e8f4ff;
        color: #0068ff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 104, 255, 0.15);
    }

    .btn-zalo:hover {
        box-shadow: 0 4px 12px rgba(0, 104, 255, 0.25);
        transform: translateY(-2px);
        background: #d6ebff;
    }

    .btn-zalo:active {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 2px 6px rgba(0, 104, 255, 0.2);
    }

    .fb-icon {
        width: 16px;
        height: 16px;
        background: #fff;
        color: #1877f2;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 11px;
        flex-shrink: 0;
        line-height: 1;
        padding: 0;
        margin: 0;
        text-align: center;
    }


    .arrow-down {
        display: inline;
    }

    .instructions-list li.has-button .btn-facebook {
        margin: 8px 0 0 0;
    }

    .instructions-image {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin-top: 10px;
        border: 1px solid var(--border);
    }

    .note {
        background: #fff3cd;
        border: 1px solid #ffc107;
        border-radius: 8px;
        padding: 12px;
        margin-top: 5px;
        font-size: 14px;
        line-height: 1.6;
        color: #856404;
    }

    .note strong {
        color: #856404;
        font-weight: 600;
    }

    .community-box {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border: 1px solid #fbbf24;
        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
    }

    .community-title {
        font-size: 13px;
        font-weight: 700;
        color: #92400e;
        text-align: center;
        margin-bottom: 10px;
    }

    .community-links {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .community-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 6px;
        text-decoration: none;
        color: var(--text);
        font-size: 12px;
        transition: all 0.2s ease;
        min-height: 44px;
        touch-action: manipulation;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    .community-link:hover {
        background: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    .community-link:active {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .community-icon {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary);
        color: #fff;
        border-radius: 6px;
        font-weight: 700;
        font-size: 13px;
        flex-shrink: 0;
    }

    .community-text strong {
        display: block;
        font-weight: 600;
        color: var(--text);
        font-size: 12px;
        word-break: break-all;
    }

    .community-text span {
        font-size: 11px;
        color: var(--muted);
    }

    .not-found {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .not-found-card {
        text-align: center;
        max-width: 400px;
    }

    .not-found-card h1 {
        font-size: 48px;
        color: var(--primary);
        margin-bottom: 12px;
    }

    .not-found-card p {
        color: var(--muted);
        margin-bottom: 16px;
    }

    .not-found-card a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

    @media (max-width: 640px) {
        body {
            padding: 8px;
        }

        .header {
            padding: 12px 8px 8px 8px;
            margin-bottom: 12px;
        }

        .header h1 {
            font-size: clamp(20px, 5vw, 24px);
        }

        .header-community-card {
            margin-top: 8px;
            padding: 7px 10px;
            gap: 8px;
        }

        .header-community-text {
            font-size: 12px;
        }

        .header-social-btn {
            width: 30px;
            height: 30px;
            min-height: 30px;
        }

        .header h1::before {
            font-size: clamp(22px, 5.5vw, 26px);
        }

        .card {
            padding: 14px;
        }
        
        .card-title {
            font-size: 15px;
        }

        .form-control {
            font-size: 16px;
        }

        .input-with-button {
            gap: 6px;
        }

        .paste-btn {
            width: 75px;
            padding: 0 10px;
            font-size: 13px;
            gap: 4px;
        }

        .btn {
            font-size: 14px;
            padding: 11px 14px;
        }

        .product-preview {
            min-height: 74px;
        }

        .product-preview-image {
            width: 56px;
            height: 56px;
            flex-basis: 56px;
        }

        .product-preview-title {
            font-size: 13px;
        }

        .product-preview-price {
            font-size: 16px;
        }

        .product-preview-old-price,
        .product-preview-discount {
            font-size: 12px;
        }

        .instructions-list li {
            font-size: 14px;
            padding-left: 30px;
        }

        .instructions-list li::before {
            width: 22px;
            height: 22px;
            font-size: 12px;
        }
    }

    @media (max-width: 520px) {

        .arrow-down {
            display: inline !important;
        }

        .instructions-list li.has-button {
            display: block !important;
            text-align: left !important;
        }

        .instructions-list li.has-button .btn-facebook {
            margin: 8px 0 0 0 !important;
            display: flex !important;
            width: fit-content !important;
            min-height: 40px !important;
            padding: 8px 14px !important;
            border-radius: 8px !important;
            gap: 8px !important;
        }

        .instructions-list li.has-button .fb-icon {
            width: 24px !important;
            height: 24px !important;
            font-size: 18px !important;
        }
    }

    @media (max-width: 380px) {
        .header h1 {
            font-size: 18px;
            gap: 6px;
        }

        .header-community-card {
            padding: 6px 9px;
        }

        .header-community-text {
            font-size: 11px;
        }

        .header h1::before {
            font-size: 20px;
        }

        .card {
            padding: 12px;
        }

        .input-with-button {
            gap: 5px;
        }

        .paste-btn {
            width: 68px;
            padding: 0 8px;
            font-size: 12px;
        }

        .instructions-list li {
            font-size: 13px;
        }
    }

    /* Toast Notification - Force styles vá»›i !important */
    #toast-container {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 999999 !important;
        pointer-events: none !important;
        max-width: 400px !important;
    }

    .toast-notification {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: #ffffff !important;
        padding: 16px 24px !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 40px rgba(16, 185, 129, 0.5), 0 6px 20px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        min-width: 280px !important;
        margin-bottom: 10px !important;
        transform: translateX(450px) !important;
        opacity: 0 !important;
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        pointer-events: auto !important;
    }

    .toast-notification.show {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

    .toast-notification.hide {
        transform: translateX(450px) !important;
        opacity: 0 !important;
    }

    .toast-check {
        width: 32px !important;
        height: 32px !important;
        background: rgba(255, 255, 255, 0.3) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 20px !important;
        flex-shrink: 0 !important;
        transform: scale(0) !important;
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s !important;
        color: #ffffff !important;
        font-weight: bold !important;
    }

    .toast-notification.show .toast-check {
        transform: scale(1) !important;
    }

    .toast-text {
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        color: #ffffff !important;
        flex: 1 !important;
    }

    @media (max-width: 640px) {
        #toast-container {
            top: 10px !important;
            right: 10px !important;
            left: 10px !important;
            max-width: none !important;
        }

        .toast-notification {
            padding: 14px 20px !important;
            min-width: auto !important;
            width: 100% !important;
            font-size: 14px !important;
        }

        .toast-check {
            width: 28px !important;
            height: 28px !important;
            font-size: 18px !important;
        }

        .toast-text {
            font-size: 14px !important;
        }
    }


