/* D:\anjirweb.ir\public\css\glass.css */

@property --border-angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0turn;
}

.glass-box, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: none;
}

/* --- Large Stacked Services Cards --- */
.services-stack {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 60px;
}

.service-large-card {
    padding: 40px 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    position: relative;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-large-card:nth-child(even) {
    flex-direction: row-reverse;
}

.service-large-card:hover {
    border-color: transparent;
    box-shadow: 0 10px 40px rgba(104, 81, 241, 0.1), 0 0 20px rgba(104, 81, 241, 0.05);
}

/* بوردر نوری یکنواخت و نرم (طول تنظیم شده) */
.service-large-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--border-angle),
        transparent 0%,
        transparent 80%, /* ۸۰ درصد محیط شفاف است */
        rgba(104, 81, 241, 0) 80%, /* شروع محو شدن دنباله (حدود 200px) */
        var(--primary) 95%, /* پایان محو شدن و شروع بدنه غلیظ (حدود 200px) */
        var(--primary) 99%,
        #d1c4ff 100% /* نوک درخشان */
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: spinBorder 4s linear infinite; /* سرعت ثابت و نرم */
    pointer-events: none;
}

.service-large-card:hover::before {
    opacity: 1;
}

.service-large-img {
    width: 250px;
    height: 250px;
    object-fit: contain; /* بدون ماسک و حفظ کامل تصویر */
    flex-shrink: 0;
}

.service-large-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    text-align: right;
}

.service-large-card:nth-child(even) .service-large-content {
    align-items: flex-start;
}

.service-title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-title-wrap h3 {
    color: var(--primary);
    font-size: 1.6rem;
    font-variation-settings: var(--fw-black);
}

.service-large-content p {
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Telegram Support Card --- */
.support-card {
    padding: 40px 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    position: relative;
    background: linear-gradient(135deg, rgba(42, 171, 238, 0.08) 0%, rgba(20, 20, 30, 0.4) 100%);
    border: 1px solid rgba(42, 171, 238, 0.2);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.support-card:hover {
    border-color: transparent;
    box-shadow: 0 10px 40px rgba(42, 171, 238, 0.1), 0 0 20px rgba(42, 171, 238, 0.05);
}

.support-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--border-angle),
        transparent 0%,
        transparent 80%,
        rgba(42, 171, 238, 0) 80%,
        #2AABEE 95%,
        #2AABEE 99%,
        #bcedff 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: spinBorder 4s linear infinite;
    pointer-events: none;
}

.support-card:hover::before {
    opacity: 1;
}

.support-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 10px 20px rgba(42, 171, 238, 0.3)); /* سایه ملایم برای جذابیت عکس تلگرام */
}

.support-content-wrap {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.support-content h2 {
    color: #2AABEE;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-variation-settings: var(--fw-black);
}

.support-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

.telegram-btn {
    background-color: #2AABEE;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    font-variation-settings: var(--fw-bold);
    font-size: 1.1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.telegram-btn:hover {
    background-color: #229ED9;
    box-shadow: 0 0 15px rgba(42, 171, 238, 0.4);
}

.ltr-text {
    direction: ltr;
    display: inline-block;
    font-variation-settings: var(--fw-normal);
    opacity: 0.9;
}

/* انیمیشن خطی و یکنواخت چرخشی */
@keyframes spinBorder {
    to { --border-angle: 1turn; }
}

/* --- Forms & Buttons --- */
.glass-input {
    width: 100%;
    padding: 12px 15px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.glass-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a24 inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.glass-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    cursor: pointer;
    margin-top: 20px;
    font-variation-settings: var(--fw-bold);
    font-size: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.primary-bg {
    background-color: var(--primary);
}

.primary-bg:hover:not(:disabled) {
    background-color: var(--primary-hover);
    box-shadow: 0 0 15px rgba(104, 81, 241, 0.3);
}

.glass-btn:disabled {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Login Page specific --- */
.login-box {
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo {
    height: 70px;
    margin-bottom: 25px;
    display: inline-block;
    filter: brightness(0) saturate(100%) invert(35%) sepia(50%) saturate(6144%) hue-rotate(243deg) brightness(98%) contrast(93%);
}

.login-form .form-group {
    margin-bottom: 20px;
}
