<!DOCTYPE html>
<html lang="fa">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>اتصال به سالن زیبایی | تایمو</title>


    <style>
        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --primary-light: #818cf8;
            --accent: #ec4899;
            --accent-light: #f472b6;
            --bg-gradient-1: #f0f9ff;
            --bg-gradient-2: #faf5ff;
            --text: #0f172a;
            --text-muted: #64748b;
            --card: #ffffff;
            --danger: #ef4444;
            --success: #10b981;
            --shadow: rgba(99, 102, 241, 0.12);
            --shadow-lg: rgba(99, 102, 241, 0.25);
        }
        @font-face {
            font-family: 'iy';
            src: url("/IRANYekanXVF.woff");
            font-weight: 400;
            font-style: normal;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            min-height: 100vh;
            font-family: 'iy', -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
            background-attachment: fixed;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text);
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }

        /* Background decoration */
        body::before,
        body::after {
            content: '';
            position: fixed;
            border-radius: 50%;
            pointer-events: none;
            z-index: 0;
        }

        body::before {
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
            top: -300px;
            right: -200px;
            animation: float 20s ease-in-out infinite;
        }

        body::after {
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
            bottom: -250px;
            left: -150px;
            animation: float 15s ease-in-out infinite reverse;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(30px, -30px) rotate(5deg); }
            66% { transform: translate(-20px, 20px) rotate(-5deg); }
        }

        .container {
            width: 100%;
            max-width: 480px;
            position: relative;
            z-index: 1;
        }

        .card {
            background: var(--card);
            border-radius: 32px;
            box-shadow:
                    0 20px 60px var(--shadow),
                    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
            padding: 48px 32px 40px;
            text-align: center;
            animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 32px 32px 0 0;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Logo Section */
        .logo-wrapper {
            width: 120px;
            height: 120px;
            margin: 0 auto 24px;
            position: relative;
            animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
        }

        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: scale(0.5) rotate(-10deg);
            }
            to {
                opacity: 1;
                transform: scale(1) rotate(0deg);
            }
        }

        .logo-ring {
            position: absolute;
            inset: -8px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            padding: 3px;
            animation: rotate 15s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .logo-inner {
            width: 100%;
            height: 100%;
            background: white;
            border-radius: 50%;
            padding: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 1;
        }

        .logo {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            box-shadow: 0 8px 24px var(--shadow);
        }

        /* Typography */
        .greeting {
            font-size: 15px;
            color: var(--text-muted);
            font-weight: 500;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }

        h1 {
            font-size: 28px;
            font-weight: 800;
            margin: 0 0 16px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.3;
        }

        .salon-name {
            font-size: 32px;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin: 16px 0;
            display: block;
            animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
        }

        .welcome-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #fef3c7, #fde68a);
            color: #92400e;
            padding: 10px 24px;
            border-radius: 100px;
            font-size: 15px;
            font-weight: 700;
            margin: 16px 0 24px;
            box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
            animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
        }

        .subtitle {
            font-size: 15px;
            color: var(--text-muted);
            line-height: 1.8;
            margin-bottom: 32px;
            font-weight: 400;
        }

        /* Buttons */
        .actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 24px;
        }

        .btn {
            width: 100%;
            border: none;
            border-radius: 16px;
            padding: 16px 24px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .btn:hover::before {
            opacity: 1;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            box-shadow: 0 8px 24px var(--shadow-lg);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 32px var(--shadow-lg);
        }

        .btn-primary:active {
            transform: translateY(-1px);
        }

        .btn-secondary {
            background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
            color: var(--primary);
            border: 2px solid rgba(99, 102, 241, 0.15);
        }

        .btn-secondary:hover {
            background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
            border-color: rgba(99, 102, 241, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
        }

        .btn-accent {
            background: linear-gradient(135deg, var(--accent), #db2777);
            color: white;
            box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25);
        }

        .btn-accent:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(236, 72, 153, 0.35);
        }

        .btn-icon {
            font-size: 20px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        }

        /* Divider */
        .divider {
            position: relative;
            margin: 32px 0;
            font-size: 13px;
            color: var(--text-muted);
            font-weight: 500;
        }

        .divider::before,
        .divider::after {
            content: '';
            position: absolute;
            top: 50%;
            width: calc(50% - 80px);
            height: 1px;
            background: linear-gradient(to right, transparent, #cbd5e1, transparent);
        }

        .divider::before {
            right: 0;
        }

        .divider::after {
            left: 0;
        }

        /* Error Box */
        .error-box {
            background: linear-gradient(135deg, #fee2e2, #fecaca);
            color: #991b1b;
            padding: 20px;
            border-radius: 20px;
            font-size: 14px;
            line-height: 1.8;
            margin-bottom: 24px;
            border: 2px solid rgba(239, 68, 68, 0.2);
            box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12);
            font-weight: 500;
        }

        .error-icon {
            font-size: 32px;
            margin-bottom: 12px;
            display: block;
        }

        /* Footer */
        .footer {
            margin-top: 32px;
            padding-top: 24px;
            border-top: 1px solid #e2e8f0;
            font-size: 13px;
            color: var(--text-muted);
            font-weight: 500;
        }

        .brand {
            margin-top: 20px;
            padding: 16px;
            background: linear-gradient(135deg, #ede9fe, #ddd6fe);
            border-radius: 16px;
            font-size: 16px;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Badge */
        .badge {
            display: inline-block;
            background: linear-gradient(135deg, #d1fae5, #a7f3d0);
            color: #065f46;
            padding: 6px 14px;
            border-radius: 100px;
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 16px;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
        }

        /* Responsive */
        @media (max-width: 480px) {
            .card {
                padding: 40px 24px 32px;
                border-radius: 28px;
            }

            h1 {
                font-size: 24px;
            }

            .salon-name {
                font-size: 28px;
            }

            .btn {
                padding: 14px 20px;
                font-size: 15px;
            }

            .logo-wrapper {
                width: 100px;
                height: 100px;
            }
        }

        /* Animation delays for stagger effect */
        .actions .btn:nth-child(1) {
            animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
        }

        .actions .btn:nth-child(2) {
            animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards;
        }

        .actions .btn:nth-child(3) {
            animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s backwards;
        }
    </style>
</head>
<body>

<div class="container">
    <div class="card">

        <!-- اگر سرویس معتبر بود -->
        

        <!-- اگر سرویس پیدا نشد -->
        <div>

            <div class="logo-wrapper">
                <div class="logo-ring">
                    <div class="logo-inner">
                        <img src="/logo_Back.png" alt="تایمو" class="logo"/>
                    </div>
                </div>
            </div>

            <h1>⚠️ کد اتصال نامعتبر</h1>

            <div class="error-box">
                <span class="error-icon">🔍</span>
                کد معرفی وارد شده صحیح نمی‌باشد.<br>
                لطفاً اپلیکیشن را نصب کنید و پس از ورود،<br>
                کد معرفی سالن را داخل برنامه وارد نمایید
            </div>

            <div class="actions">
                <a href="/download/app.apk" class="btn btn-primary">
                    <span class="btn-icon">📲</span>
                    <span>دانلود اپلیکیشن اندروید</span>
                </a>

                <a href="https://web.mydomain.com/#/connect?serviceId=sitemap.xml"
                   class="btn btn-secondary">
                    <span class="btn-icon">🌐</span>
                    <span>ورود به نسخه وب</span>
                </a>
            </div>

        </div>

        <div class="footer">
            تجربه‌ای مدرن برای مدیریت نوبت‌های زیبایی
        </div>

        <div class="brand">
            💜 تایمو، همراه همیشگی شما 💜
        </div>

    </div>
</div>

</body>
</html>