@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700;900&display=swap');

        :root { 
            --primary: #001d3d;
            --accent: #ffc300; 
            --accent-hover: #ffd60a;
            --bg-gradient: linear-gradient(135deg, #000814 0%, #001d3d 100%);
            --glass: rgba(255, 255, 255, 0.95);
            --text-dark: #000814;
            --danger: #d00000;
            --success: #16a34a;
            --info: #0284c7;
        }

        * { box-sizing: border-box; outline: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        
        body { 
            font-family: 'Vazirmatn', sans-serif; 
            background: var(--bg-gradient);
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            color: var(--text-dark); 
            margin: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow-x: hidden;
            position: relative;
        }

        #ticker-wrapper {
            width: 100%;
            background: var(--accent);
            color: var(--primary);
            padding: 12px 40px 12px 10px;
            position: fixed;
            top: 0;
            z-index: 2000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            display: none;
            font-weight: bold;
            text-align: center;
            min-height: 45px;
        }
        
        #ticker-content {
            opacity: 0;
            transition: opacity 0.6s ease-in-out;
            display: inline-block;
            width: 90%;
        }

        .close-ticker {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            font-size: 20px;
            line-height: 1;
            background: rgba(0,0,0,0.1);
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s;
        }
        .close-ticker:hover { background: rgba(0,0,0,0.2); color: var(--danger); }

        #dynamic-header { width: 100%; max-width: 550px; margin-top: 65px; border-radius: 20px; display: none; }
        #dynamic-footer { width: 100%; max-width: 550px; margin-top: 20px; border-radius: 20px; display: none; }

        .container { 
            width: 92%;
            max-width: 550px; 
            background: var(--glass);
            padding: 30px; 
            border-radius: 35px; 
            box-shadow: 0 25px 50px rgba(0,0,0,0.5);
            position: relative;
            margin: 20px auto;
            z-index: 1;
        }

        h2 { text-align: center; color: var(--primary); margin-bottom: 25px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.4rem; }
        .header-icon { font-style: normal; }

        #form-logo-container { text-align: center; margin-bottom: 15px; display: none; }
        #form-logo { max-width: 100px; height: auto; border-radius: 15px; }

        .form-group { margin-bottom: 18px; position: relative; }
        label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; color: var(--primary); padding-right: 5px; opacity: 0.8; }

        input, select, textarea { 
            width: 100%; 
            padding: 12px 15px; 
            border: 2px solid #e2e8f0; 
            border-radius: 15px; 
            font-family: 'Vazirmatn'; 
            background: #f8fafc;
            color: var(--primary);
            font-size: 14px;
        }

        input:focus, select:focus { border-color: var(--accent); background: #fff; }

        .fee-badge {
            display: none; background: #f0fdf4; color: var(--success);
            padding: 8px 15px; border-radius: 12px; font-size: 13px;
            font-weight: 800; margin-top: 8px; border: 1px dashed var(--success);
            text-align: center;
        }

        .brand-notice {
            display: none; background: #f0f9ff; color: var(--info);
            padding: 12px; border-radius: 15px; font-size: 13px;
            font-weight: 700; margin-top: 10px; border-right: 5px solid var(--info);
            line-height: 1.6;
        }

        .btn-group { display: flex; gap: 10px; margin-top: 25px; }
        .btn-submit { background: var(--primary); color: var(--accent); flex: 2; padding: 15px; border-radius: 18px; font-weight: 800; cursor: pointer; border: none; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
        .btn-submit:hover { background: #003566; }
        .btn-reset { background: #fff; color: var(--danger); border: 2px solid #fee2e2; flex: 1; padding: 15px; border-radius: 18px; font-weight: 700; cursor: pointer; font-size: 14px; }

        .hidden { display: none !important; }
        .time-box { background: #f1f5f9; padding: 20px; border-radius: 25px; margin-top: 20px; }

        #previewModal, #loadingModal, #statusModal {
            position: fixed; inset: 0; background: rgba(0, 8, 20, 0.9); 
            display: none; align-items: center; justify-content: center; z-index: 3000; padding: 15px;
            backdrop-filter: blur(10px);
        }

        .modal-content { background: #fff; width: 100%; max-width: 380px; padding: 25px; border-radius: 30px; border: 2px solid var(--accent); position: relative; }
        .preview-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
        .preview-label { color: #64748b; min-width: 80px; }
        .preview-value { font-weight: 800; color: var(--primary); text-align: left; }
        
        footer { text-align: center; color: #fff; padding: 20px; font-size: 12px; width: 100%; z-index: 1; }

        .status-icon { font-size: 50px; margin-bottom: 15px; display: block; }
        .status-msg { font-weight: 700; color: var(--primary); line-height: 1.8; margin-bottom: 20px; }

        #loading-overlay {
            position: fixed; inset: 0; z-index: 9999; display: flex; 
            flex-direction: column; align-items: center; justify-content: center;
        }

        .admin-login-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--accent);
            color: var(--primary);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            z-index: 1000;
            font-size: 20px;
            border: 2px solid var(--primary);
        }
        .admin-login-btn:hover { transform: scale(1.1); background: var(--accent-hover); }

        @media (max-width: 480px) {
            .container { padding: 20px; border-radius: 25px; }
            h2 { font-size: 1.1rem; }
            input, select, textarea { font-size: 13px; }
            .btn-group { flex-direction: column; }
        }
