﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url(fonts/fontiran.css);

html, body {
    font-family: IRANYekanX !important;
}

.mud-typography-h6 {
    font-family: IRANYekanX !important;
}


.mud-typography-body1 {
    font-family: IRANYekanX !important;
}

.mud-button {
    font-family: IRANYekanX !important;
}

.mud-typography-subtitle1 {
    font-family: IRANYekanX !important;
}

.mud-typography-h5, h6, h1, h2, h3, h4 {
    font-family: IRANYekanX !important;
}

.mud-typography-caption {
    font-family: IRANYekanX !important;
}

.mud-typography-body2, body1 {
    font-family: IRANYekanX !important;
}

.mud-appbar {
    background-color: white !important;
}

.mud-nav-link .mud-nav-link-text {
    font-weight: 600;
    font-size: 14px;
}

.mud-avatar {
    margin: 10px;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #b5daff !important;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }



:root {
    --qr-bg-1: #0f0f23;
    --qr-bg-2: #1a1a2e;
    --qr-surface: #16213e;
    --qr-surface-light: #1f2d4d;
    --qr-text: #ffffff;
    --qr-text-soft: #b8c5d6;
    --qr-text-faint: #7a8ba3;
    --qr-accent: #6c5ce7;
    --qr-accent-2: #00d4ff;
    --qr-accent-pink: #ff6b9d;
    --qr-accent-yellow: #feca57;
    --qr-radius-xl: 28px;
    --qr-radius-lg: 20px;
    --qr-radius-md: 16px;
    --qr-radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

.qr-premium-page {
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 18px 14px 24px;
    color: var(--qr-text);
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

.qr-state-screen {
    width: 100%;
    max-width: 460px;
    min-height: calc(100vh - 36px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    border-radius: var(--qr-radius-xl);
    background: var(--qr-surface);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.loading,
.empty {
    font-size: 15px;
    color: var(--qr-text-soft);
    letter-spacing: 0.2px;
}

.qr-premium-player {
    width: 100%;
    max-width: 460px;
    min-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(12px, 2.5vh, 18px);
    padding: 20px 18px 22px;
    border-radius: 32px;
    background: var(--qr-surface);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

    .qr-premium-player::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -10%;
        right: -10%;
        height: 200px;
        background: radial-gradient(circle, rgba(108, 92, 231, 0.15), transparent 70%);
        pointer-events: none;
    }

.qr-premium-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 4px 0;
    flex-shrink: 0;
}

.qr-premium-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: var(--qr-text-faint);
    text-transform: uppercase;
}

.qr-premium-brand {
    font-size: 12px;
    color: var(--qr-text-soft);
    white-space: nowrap;
}

.qr-artwork-section {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 4px;
    flex-shrink: 0;
}

.qr-artwork-frame {
    width: min(75vw, 320px);
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: var(--qr-surface-light);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .qr-artwork-frame:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    .qr-artwork-frame::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
        pointer-events: none;
    }

.qr-artwork-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.qr-artwork-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--qr-accent) 0%, var(--qr-accent-2) 100%);
}

.qr-artwork-placeholder-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.qr-meta-section {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 10px;
    flex-shrink: 0;
}

.qr-main-title {
    margin: 0;
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--qr-text);
    letter-spacing: -0.3px;
}

.qr-subtitle {
    font-size: 14px;
    color: var(--qr-text-soft);
    line-height: 1.6;
}

.qr-text-strip {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    background: var(--qr-surface-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

    .qr-text-strip:hover {
        background: #243554;
    }

.qr-text-strip-empty {
    align-items: flex-start;
}

.qr-text-strip-label {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.4px;
    color: #d3d3d3;
    text-transform: uppercase;
}

.qr-text-marquee-wrap {
    width: 100%;
    overflow: hidden;
    min-height: 28px;
    display: flex;
    align-items: center;
}

.qr-text-marquee {
    font-size: 14px;
    line-height: 1.8;
    color: var(--qr-text);
    white-space: nowrap;
}

.qr-text-placeholder {
    font-size: 14px;
    color: var(--qr-text-soft);
    line-height: 1.8;
}

.qr-player-section {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 18px;
    border-radius: 24px;
    background: var(--qr-surface-light);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.qr-player-section-empty {
    align-items: center;
    justify-content: center;
    min-height: 110px;
}

.qr-player-meta-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.qr-player-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--qr-text-faint);
    text-transform: uppercase;
}

.qr-player-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--qr-text);
}

.qr-progress-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qr-progress-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--qr-text-soft);
    direction: ltr;
}

.progressWrap {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    position: relative;
    cursor: pointer;
}

.progress {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--qr-accent) 0%, var(--qr-accent-2) 100%);
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.4);
    transition: width 0.18s linear;
}

.qr-controls-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 4px;
}

.qr-side-control {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--qr-text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .qr-side-control:hover {
        transform: scale(1.1);
        background: rgba(255,255,255,0.12);
        color: var(--qr-text);
    }

    .qr-side-control:active {
        transform: scale(0.95);
    }

.qr-main-play-btn {
    width: 80px;
    height: 80px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--qr-accent) 0%, var(--qr-accent-2) 100%);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
    transition: all 0.3s ease;
}

    .qr-main-play-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 12px 32px rgba(108, 92, 231, 0.5);
    }

    .qr-main-play-btn:active {
        transform: scale(0.95);
    }

.qr-player-empty-text {
    font-size: 14px;
    color: var(--qr-text-soft);
    text-align: center;
    line-height: 1.8;
}

.qr-bottom-cta {
    position: relative;
    z-index: 1;
    padding-top: 4px;
    margin-top: auto;
    flex-shrink: 0;
}

.qr-order-btn {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--qr-accent) 0%, var(--qr-accent-pink) 100%);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.35);
    transition: all 0.3s ease;
}

    .qr-order-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(108, 92, 231, 0.45);
    }

    .qr-order-btn:active {
        transform: translateY(0);
    }

    .qr-order-btn:visited {
        color: #fff;
    }

.qr-player-card {
    position: relative;
    border-radius: 24px;
    padding: 22px 16px 20px;
    background: var(--qr-surface-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.qr-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: var(--qr-text-soft);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.qr-progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255,255,255,0.08);
}

.qr-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--qr-accent) 0%, var(--qr-accent-2) 100%);
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.4);
    transition: width 160ms linear;
}

.qr-play-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.qr-play-btn {
    position: relative;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--qr-accent-yellow) 0%, var(--qr-accent-pink) 100%);
    box-shadow: 0 8px 24px rgba(254, 202, 87, 0.3);
    transition: all 0.3s ease;
}

    .qr-play-btn::before {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(254, 202, 87, 0.15) 0%, transparent 70%);
        z-index: 0;
    }

    .qr-play-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 12px 32px rgba(254, 202, 87, 0.4);
    }

    .qr-play-btn:active {
        transform: scale(0.95);
    }

    .qr-play-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(254, 202, 87, 0.3);
    }

.qr-play-icon {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 180ms ease, transform 220ms ease;
    z-index: 1;
}

.qr-svg {
    width: 24px;
    height: 24px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.qr-icon-play {
    opacity: 1;
    transform: scale(1);
}

.qr-icon-pause {
    opacity: 0;
    transform: scale(0.82);
}

.qr-play-btn.playing .qr-icon-play {
    opacity: 0;
    transform: scale(1.12);
}

.qr-play-btn.playing .qr-icon-pause {
    opacity: 1;
    transform: scale(1);
}

.qr-track-text {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

    .qr-track-text span {
        display: inline-block;
        white-space: nowrap;
        will-change: transform;
    }

    .qr-track-text.is-marquee span {
        animation: qrMarqueeToEnd 9s ease-in-out infinite alternate;
    }

@keyframes qrMarqueeToEnd {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * var(--qr-marquee-distance, 0px)));
    }
}

@media (max-width: 390px) {
    .qr-premium-page {
        padding: 10px 10px 18px;
    }

    .qr-premium-player {
        min-height: calc(100vh - 20px);
        padding: 16px 14px 18px;
        border-radius: 28px;
        gap: 14px;
    }

    .qr-artwork-frame {
        width: min(80vw, 300px);
        border-radius: 20px;
    }

    .qr-main-title {
        font-size: 20px;
    }

    .qr-player-section {
        padding: 16px 14px;
        border-radius: 20px;
    }

    .qr-main-play-btn {
        width: 76px;
        height: 76px;
        font-size: 26px;
    }

    .qr-side-control {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .qr-order-btn {
        min-height: 52px;
        font-size: 14px;
    }
}

/*Login page name Te TagGiftEdit*/
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 100%);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 24px;
}

/* Header */
.header-section {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    box-shadow: 0 8px 24px rgba(44, 44, 44, 0.2);
    transition: transform 0.3s ease;
}

    .logo-circle:hover {
        transform: scale(1.05);
    }

.main-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.main-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Form Section */
.form-section {
    background: white;
    border-radius: 24px;
    padding: 32px 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    animation: fadeInUp 0.6s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 16px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

    .step.active {
        background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(44, 44, 44, 0.3);
        transform: scale(1.1);
    }

    .step.completed {
        background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    }

.step-line {
    width: 50px;
    height: 3px;
    background: #e8e8e8;
    border-radius: 2px;
    transition: all 0.4s ease;
}

    .step-line.active {
        background: linear-gradient(90deg, #2c2c2c 0%, #1a1a1a 100%);
    }

/* Input Group */
.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-right: 4px;
}

::deep .custom-input .mud-input-root {
    border-radius: 14px !important;
}

::deep .custom-input input {
    font-size: 16px !important;
    padding: 16px 48px 16px 16px !important;
    text-align: right !important;
    direction: ltr !important;
    letter-spacing: 0.5px;
}

::deep .custom-input .mud-input-adornment {
    margin-left: 12px !important;
}

::deep .otp-input input {
    letter-spacing: 6px !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 16px !important;
    font-size: 18px !important;
}

/* Phone Display */
.phone-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    position: relative;
    border: 1px solid #e8eef3;
}

.check-icon {
    color: #4caf50 !important;
    font-size: 22px !important;
}

.phone-display strong {
    color: #1a1a1a;
    font-weight: 700;
    direction: ltr;
    font-size: 15px;
}

.edit-btn {
    position: absolute;
    left: 8px;
    color: #666 !important;
    transition: all 0.2s ease;
}

    .edit-btn:hover {
        color: #2c2c2c !important;
        transform: scale(1.1);
    }

/* Timer Box */
.timer-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #e65100;
    border: 1px solid #ffcc80;
}

    .timer-box strong {
        color: #e65100;
        font-weight: 700;
        font-size: 18px;
        direction: ltr;
        font-family: 'Courier New', monospace;
    }

/* Wait Message */
.wait-message {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #f44336;
    font-weight: 600;
    padding: 10px;
    background: #ffebee;
    border-radius: 10px;
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%) !important;
    color: white !important;
    border-radius: 14px !important;
    padding: 16px 0 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: none !important;
    box-shadow: 0 4px 16px rgba(44, 44, 44, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

    .primary-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #1a1a1a 0%, #000 100%) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(44, 44, 44, 0.3) !important;
    }

    .primary-btn:active:not(:disabled) {
        transform: translateY(0);
    }

    .primary-btn:disabled {
        background: #e8e8e8 !important;
        color: #999 !important;
        box-shadow: none !important;
    }

.resend-btn {
    color: #2c2c2c !important;
    font-weight: 600 !important;
    text-transform: none !important;
    margin-bottom: 16px !important;
    padding: 12px 0 !important;
    border-radius: 12px !important;
}

    .resend-btn:hover {
        background: #f8f8f8 !important;
    }

/* Guide Section */
.guide-section {
    background: white;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.guide-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}

    .guide-header .mud-icon-root {
        color: #2c2c2c !important;
        font-size: 22px !important;
    }

.guide-steps {
    margin-bottom: 20px;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

    .guide-item:hover {
        background: #f8f9fa;
        transform: translateX(-4px);
    }

.guide-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(44, 44, 44, 0.2);
}

.support-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    border: 1px solid #e8eef3;
}

    .support-box .mud-icon-root {
        color: #2c2c2c !important;
        font-size: 22px !important;
    }

    .support-box strong {
        color: #1a1a1a;
        font-weight: 700;
        direction: ltr;
        font-size: 15px;
    }

/* Utility */
.ml-2 {
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }

    .form-section {
        padding: 28px 24px;
    }

    .main-title {
        font-size: 24px;
    }

    .guide-section {
        padding: 24px 20px;
    }
}


/*raggifteditdetail-------------------------*/
/* ============================================
   ZONE 1: GLOBAL RESET & BASE STYLES
   ریست و استایل‌های پایه
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   ZONE 2: MAIN CONTAINER
   کانتینر اصلی صفحه با گرادیانت بنفش
   ============================================ */
.edit-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 30px;
}

/* ============================================
   ZONE 3: MAIN CARD
   کارت اصلی سفید که فرم داخلش قرار دارد
   ============================================ */
.edit-card {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 40px 30px;
}

/* ============================================
   ZONE 4: STEPPER (مراحل 1-2-3-4)
   استپر کوچک با خط اتصال
   ============================================ */
.stepper-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 35px;
    gap: 0;
    position: relative;
}

.stepper-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* دایره شماره مرحله - کوچک‌تر شده */
.step-counter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-weight: 700;
    font-size: 13px;
    color: #a0aec0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* حالت فعال */
.stepper-item.active .step-counter {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: scale(1.15);
}

/* حالت تکمیل شده */
.stepper-item.completed .step-counter {
    background: #667eea;
    color: white;
}

/* نام مرحله زیر دایره */
.step-name {
    font-size: 11px;
    color: #a0aec0;
    font-weight: 400;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.stepper-item.active .step-name {
    color: #667eea;
    font-weight: 400;
}

.stepper-item.completed .step-name {
    color: #545454;
}

/* خط اتصال بین مراحل */
.stepper-line {
    flex: 1;
    max-width: 60px;
    height: 2px;
    background: #e2e8f0;
    position: relative;
    z-index: 1;
}

/* ============================================
   ZONE 5: FORM CONTENT - آیکون‌های مدرن
   ============================================ */
.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

    .step-content h3 svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

/* آیکون متن - دو رنگ */
.icon-text {
    fill: none;
}

    .icon-text .primary {
        stroke: #667eea;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .icon-text .secondary {
        stroke: #764ba2;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* آیکون عکس - دو رنگ */
.icon-image {
    fill: none;
}

    .icon-image .primary {
        stroke: #667eea;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .icon-image .secondary {
        fill: #764ba2;
    }

/* آیکون صدا - دو رنگ */
.icon-audio {
    fill: none;
}

    .icon-audio .primary {
        stroke: #667eea;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .icon-audio .secondary {
        fill: #764ba2;
    }

/* آیکون پیش‌نمایش - دو رنگ */
.icon-preview {
    fill: none;
}

    .icon-preview .primary {
        stroke: #667eea;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .icon-preview .secondary {
        fill: #764ba2;
    }

/* ============================================
   ZONE 6: TEXT INPUT
   فیلد ورودی متن
   ============================================ */
.text-input {
    width: 100%;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 14px 16px;
    font-size: 15px;
    resize: none;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #f7fafc;
    text-align: right;
    direction: rtl;
}

    .text-input:focus {
        outline: none;
        border-color: #667eea;
        background: white;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.char-counter {
    display: block;
    text-align: right;
    color: #a0aec0;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
}

/* ============================================
   ZONE 7: UPLOAD AREA
   ناحیه آپلود فایل
   ============================================ */
.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

    .upload-area:hover {
        border-color: #667eea;
        background: #edf2f7;
        transform: translateY(-2px);
    }

    .upload-area.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.upload-area p {
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   ZONE 8: IMAGE PREVIEW
   پیش‌نمایش عکس آپلود شده و دکمه حذف
   ============================================ */
.preview-box {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.img-preview {
    width: 326px;
    height: auto;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    object-fit: contain;
}

/* دکمه حذف عکس با آیکون ضربدر - روی خود عکس بالا سمت چپ */
.btn-remove-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #e53e3e;
    border: none;
    border-radius:50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    z-index: 10;
}

    .btn-remove-icon:hover:not(:disabled) {
        background: #e53e3e;
        color: white;
        transform: scale(1.15);
        box-shadow: 0 4px 16px rgba(229, 62, 62, 0.5);
    }

    .btn-remove-icon:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.remove-x {
    line-height: 1;
}

/* ============================================
   ZONE 9: FILE BOX
   باکس نمایش فایل آپلود شده (صوت/ویدیو)
   ============================================ */
.file-box {
    display: flex;
    align-items: center;
    background: #f7fafc;
    padding: 16px;
    border-radius: 14px;
    gap: 14px;
    border: 2px solid #e2e8f0;
}

.file-icon {
    font-size: 32px;
}

.file-info {
    flex: 1;
    text-align: right;
}

.file-name {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
    font-size: 14px;
}

.file-size {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 500;
}

.btn-remove-small {
    background: #e53e3e;
    color: white;
    border-radius: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 700;
}

    .btn-remove-small:hover:not(:disabled) {
        background: #c53030;
        transform: scale(1.05);
    }

    .btn-remove-small:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ============================================
   ZONE 10: MEDIA SELECTOR
   انتخابگر نوع رسانه (آهنگ/ویدیو)
   ============================================ */
.media-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.media-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f7fafc;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    color: #718096;
}

    .media-btn:hover {
        border-color: #cbd5e0;
        background: white;
    }

    .media-btn.active {
        background: #667eea;
        color: white;
        border-color: #667eea;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    }

/* ============================================
   ZONE 11: PREVIEW CARDS
   کارت‌های پیش‌نمایش در مرحله 4
   ============================================ */
.preview-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-card {
    border-radius: 14px;
    background: #f7fafc;
    padding: 18px;
    border: 1px solid #f6fafc;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .preview-header h3 {
        font-size: 14px;
        color: #2d3748;
        font-weight: 700;
    }

.preview-content {
    color: #718096;
    line-height: 1.6;
    font-size: 13px;
    text-align: right;
    direction: rtl;
}

.preview-img {
    height:100px;
    max-width: 100%;
    margin-top: 12px;
    border-radius: 10px;
}

.preview-filename {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
    font-size: 13px;
}

.preview-filesize {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 500;
}

.btn-edit {
    background: #edf2f7;
    font-size: 12px;
    padding: 8px 16px;
    color: #718096;
    font-weight: 600;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-edit:hover {
        background: #e2e8f0;
    }

/* ============================================
   ZONE 12: BUTTONS (دکمه‌های قبلی/بعدی)
   دکمه‌های ناوبری با استایل جدید
   ============================================ */
.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

/* دکمه‌ها در یک ردیف */
.btn-group-row {
    flex-direction: row;
}

button {
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

    button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* دکمه اصلی (بعدی) */
.btn-primary {
    background: linear-gradient(135deg, #d3dbfc 0%, #667eea 100%);
    color: white;
 
    flex: 1;
}

    .btn-primary:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
    }

/* دکمه ثانویه (قبلی) */
.btn-secondary {
    background: white;
    color: #718096;
    border: 1px solid #e2e8f0;
  
    flex: 1;
}

    .btn-secondary:hover:not(:disabled) {
        background: #f7fafc;
        border-color: #cbd5e0;
        transform: translateY(-2px);
    }

/* دکمه موفقیت (تایید نهایی) */
.btn-success {
    background: linear-gradient(135deg, #667eea 0%, #667eea 100%);
    color: white;
    flex: 1;
    border-color: #667eea!important;
}

    .btn-success:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(72, 187, 120, 0.4);
    }

/* آیکون‌های داخل دکمه */
.btn-arrow {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.btn-check {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

/* ============================================
   ZONE 13: LOADING OVERLAY (ادامه)
   صفحه لودینگ هنگام آپلود
   ============================================ */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.progress-container {
    width: 280px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 10px;
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   ZONE 14: HELP BOX
   باکس راهنما در سمت راست
   ============================================ */
.help-box {
    width: 100%;
    max-width: 380px;
    background: white;
    border-radius: 24px;
    margin-top: 30px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.help-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.help-icon {
    font-size: 24px;
}

.help-header h3 {
    font-size: 17px;
    color: #2d3748;
    font-weight: 700;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .help-list li {
        display: flex;
        gap: 12px;
        margin-bottom: 16px;
        align-items: flex-start;
        flex-direction: row;
        text-align: right;
    }

.help-number {
    min-width: 28px;
    height: 28px;
    background: #667eea;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.help-list li span:last-child {
    color: #718096;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 400;
}

.help-warning {
    background: #fff5f5;
    padding: 14px;
    border-radius: 12px;
    border-right: 3px solid #e53e3e;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: row-reverse;
}

.help-icon-warning {
    font-size: 18px;
    flex-shrink: 0;
}

.help-warning span:last-child {
    color: #c53030;
    font-weight: 600;
    font-size: 13px;
    text-align: right;
}

/* ============================================
   ZONE 15: RESPONSIVE
   استایل‌های ریسپانسیو برای موبایل
   ============================================ */
@media (max-width: 768px) {
    .edit-container {
        padding: 20px 15px;
        flex-direction: column;
        gap: 20px;
    }

    .edit-card {
        padding: 30px 20px;
    }

    .help-box {
        max-width: 100%;
    }

    .stepper-wrapper {
        margin-bottom: 50px;
    }

    .step-name {
        font-size: 10px;
        top: 41px;
    }

    .step-counter {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .stepper-line {
        max-width: 40px;
    }

    .btn-group {
        flex-direction: row;
    }

    button {
        font-size: 14px;
        padding: 12px 20px;
    }

    .btn-arrow {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .stepper-wrapper {
        gap: 0;
    }

    .stepper-line {
        max-width: 30px;
    }

    .step-counter {
        width: 35px;
        height: 35px;
        font-size: 11px;
    }

    .step-name {
        font-size: 12px;
        top: 42px;
    }
}
.hconsept {
    display: inline-flex;
    border-bottom: 1px solid;
    padding: 8px;
    margin-bottom: 21px;
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ============================================
   CROP MODAL STYLES - MOBILE OPTIMIZED
   ============================================ */
.crop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    padding: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.crop-modal-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2px;
    max-width: 95vw;
    max-height: 95vh;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.crop-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

    .crop-modal-header h3 {
        color: white;
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0;
    }

.crop-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .crop-close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.crop-image-wrapper {
    padding: 15px;
    background: #0f0f1e;
    max-height: 55vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 200px;
}

#cropImage {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.crop-controls {
    padding: 12px 16px;
    background: #16213e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.crop-action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.crop-tool-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .crop-tool-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #667eea;
        transform: translateY(-2px);
    }

    .crop-tool-btn:active {
        transform: translateY(0);
    }

.crop-modal-footer {
    padding: 12px 16px;
    background: #1a1a2e;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

    .crop-modal-footer .btn {
        padding: 10px 20px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        display: flex;
        align-items: center;
        gap: 6px;
        min-height: 44px;
    }

    .crop-modal-footer .btn-secondary {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

        .crop-modal-footer .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.15);
        }

    .crop-modal-footer .btn-success {
        background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
        color: white;
        box-shadow: 0 5px 15px rgba(56, 239, 125, 0.3);
    }

        .crop-modal-footer .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(56, 239, 125, 0.4);
        }

        .crop-modal-footer .btn-success:active {
            transform: translateY(0);
        }

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .crop-modal-container {
        border-radius: 12px;
        max-height: 98vh;
    }

    .crop-modal-header h3 {
        font-size: 1rem;
    }

    .crop-close-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .crop-image-wrapper {
        padding: 10px;
        max-height: 50vh;
    }

    .crop-controls {
        padding: 10px 12px;
    }

    .crop-tool-btn {
        padding: 6px 10px;
        font-size: 1rem;
        min-width: 40px;
        min-height: 40px;
    }

    .crop-modal-footer {
        padding: 10px 12px;
    }

        .crop-modal-footer .btn {
            padding: 8px 16px;
            font-size: 0.9rem;
            min-height: 40px;
        }
}

@media (max-width: 480px) {
    .crop-modal-overlay {
        padding: 5px;
    }

    .crop-modal-header {
        padding: 10px 12px;
    }

        .crop-modal-header h3 {
            font-size: 0.95rem;
        }

    .crop-action-buttons {
        gap: 6px;
    }

    .crop-tool-btn {
        min-width: 38px;
        min-height: 38px;
        font-size: 0.95rem;
    }

    .crop-modal-footer .btn {
        font-size: 0.85rem;
        padding: 7px 14px;
    }
}



/*-- ============================================ -->
<!-- CSS Styles - Scoped to /tgp/ {
 
Page Only -->
<!-- ============================================ -->*/
/* Page Container - Full viewport, no scroll */
.tgp-page-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 20px;
    padding-top: 60px;
    overflow-y: auto;
    position: relative;
}

/* Animated Particles Background */
.tgp-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.tgp-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

    .tgp-particle:nth-child(1) {
        width: 80px;
        height: 80px;
        top: 10%;
        left: 10%;
        animation-delay: 0s;
    }

    .tgp-particle:nth-child(2) {
        width: 120px;
        height: 120px;
        top: 60%;
        left: 80%;
        animation-delay: 2s;
    }

    .tgp-particle:nth-child(3) {
        width: 60px;
        height: 60px;
        top: 80%;
        left: 20%;
        animation-delay: 4s;
    }

    .tgp-particle:nth-child(4) {
        width: 100px;
        height: 100px;
        top: 30%;
        left: 70%;
        animation-delay: 6s;
    }

    .tgp-particle:nth-child(5) {
        width: 90px;
        height: 90px;
        top: 50%;
        left: 50%;
        animation-delay: 8s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-30px) translateX(20px) scale(1.1);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-60px) translateX(-20px) scale(0.9);
        opacity: 0.3;
    }

    75% {
        transform: translateY(-30px) translateX(30px) scale(1.05);
        opacity: 0.4;
    }
}

/* ============================================ */
/* Content Card */
/* ============================================ */
.tgp-content-card {
    max-width: 450px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: cardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px) rotateX(20deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0);
    }
}

.tgp-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* ============================================ */
/* Image Section */
/* ============================================ */
.tgp-image-section {
    width: 100%;
    aspect-ratio: 1 / 1; /* همیشه مربعی */
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}
.tgp-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tgp-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* عکس کامل نمایش داده میشه بدون کش */
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
    animation: imageZoom 1s ease-out;
}

@keyframes imageZoom {
    0% {
        transform: scale(1.1);
        filter: blur(5px);
    }

    100% {
        transform: scale(1);
        filter: blur(0);
    }
}
.tgp-content-card:hover .tgp-image {
    transform: scale(1.03);
}



.tgp-image-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
    .tgp-image-section {
        aspect-ratio: 1 / 1; /* موبایل هم مربعی */
    }
}
/* ============================================ */
/* Text Section - UPDATED */
/* ============================================ */
.tgp-text-section {
    padding: 40px 28px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Text Card Container */
.tgp-text-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .tgp-text-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    }

/* Decorative Corners */
.tgp-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid;
    border-image: linear-gradient(135deg, #667eea, #764ba2) 1;
    animation: cornerPulse 3s ease-in-out infinite;
}

.tgp-corner-tl {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 4px;
}

.tgp-corner-tr {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 4px;
    animation-delay: 0.5s;
}

.tgp-corner-bl {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 4px;
    animation-delay: 1s;
}

.tgp-corner-br {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 4px;
    animation-delay: 1.5s;
}

@keyframes cornerPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Animated Border */
.tgp-border-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #764ba2 75%, #667eea 100%);
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderMove 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tgp-text-card:hover .tgp-border-animation {
    opacity: 1;
}

@keyframes borderMove {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

/* Icon Badge */
.tgp-text-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    animation: badgeSlide 0.6s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

    .tgp-text-badge::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        animation: badgeShine 2s infinite;
    }

@keyframes badgeSlide {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes badgeShine {
    0% {
        left: -100%;
    }

    50%, 100% {
        left: 100%;
    }
}

.tgp-text-badge svg {
    animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Text Wrapper with Glow */
.tgp-text-wrapper {
    position: relative;
    padding: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.1), inset 0 0 20px rgba(102, 126, 234, 0.05);
    }

    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.2), inset 0 0 30px rgba(102, 126, 234, 0.1);
    }
}

.tgp-text-content {
    font-size: 18px;
    line-height: 1.9;
    color: #2c3e50;
    text-align: center;
    font-weight: 400;
    margin: 0;
    word-wrap: break-word;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
    animation: textFadeIn 0.8s ease-out 0.6s both;
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative Dots */
.tgp-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    animation: dotsAppear 0.6s ease-out 0.8s both;
}

    .tgp-dots span {
        width: 8px;
        height: 8px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-radius: 50%;
        animation: dotBounce 1.5s ease-in-out infinite;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    }

        .tgp-dots span:nth-child(1) {
            animation-delay: 0s;
        }

        .tgp-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .tgp-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes dotsAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes dotBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.2);
    }
}

/* ============================================ */
/* Responsive Design - Text Section */
/* ============================================ */
@media (max-width: 480px) {
    .tgp-text-section {
        padding: 32px 20px;
    }

    .tgp-text-card {
        padding: 24px 20px;
    }

    .tgp-text-content {
        font-size: 12px;
        line-height: 1.8;
    }

    .tgp-text-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .tgp-text-wrapper {
        padding: 20px;
    }

    .tgp-corner {
        width: 16px;
        height: 16px;
    }

    .tgp-dots span {
        width: 6px;
        height: 6px;
    }
}


/* ============================================ */
/* Media Player Section */
/* ============================================ */
.tgp-media-section {
    padding: 28px;
    background: #ffffff;
    animation: slideInRight 0.6s ease-out 0.4s both;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Audio Player */
.tgp-audio-container {
    position: relative;
}

.tgp-audio-icon {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
    }

    50% {
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 16px 32px rgba(102, 126, 234, 0.6);
    }
}

.tgp-audio-player {
    width: 100%;
    outline: none;
    border-radius: 12px;
    background: #f8f9fa;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .tgp-audio-player:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        transform: translateY(-2px);
    }

/* Video Player */
.tgp-video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

    .tgp-video-container:hover {
        box-shadow: 0 16px 40px rgba(0,0,0,0.2);
        transform: translateY(-4px);
    }

.tgp-video-player {
    width: 100%;
    max-height: 300px;
    border-radius: 16px;
    outline: none;
    background: #000;
    display: block;
}

/* ============================================ */
/* Decorative Wave */
/* ============================================ */
.tgp-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

    .tgp-wave svg {
        position: relative;
        display: block;
        width: calc(100% + 1.3px);
        height: 60px;
    }

    .tgp-wave path {
        fill: rgba(102, 126, 234, 0.1);
        animation: waveMove 8s linear infinite;
    }

@keyframes waveMove {
    0% {
        d: path("M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z");
    }

    50% {
        d: path("M321.39,70c58-10.79,114.16-20,172-30,82.39-10,168.19-10,250.45,0C823.78,50,906.67,80,985.66,100c70.05,15,146.53,20,214.34,0V0H0V40A600.21,600.21,0,0,0,321.39,70Z");
    }

    100% {
        d: path("M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z");
    }
}

/* ============================================ */
/* Loading State */
/* ============================================ */
.tgp-loading {
    text-align: center;
    padding: 60px 40px;
    color: #ffffff;
    z-index: 1;
}

.tgp-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
}

.tgp-loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spinRing 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

    .tgp-loader-ring:nth-child(1) {
        animation-delay: 0s;
        border-top-color: rgba(255, 255, 255, 0.9);
    }

    .tgp-loader-ring:nth-child(2) {
        animation-delay: 0.3s;
        border-top-color: rgba(255, 255, 255, 0.6);
        width: 80%;
        height: 80%;
        top: 10%;
        left: 10%;
    }

    .tgp-loader-ring:nth-child(3) {
        animation-delay: 0.6s;
        border-top-color: rgba(255, 255, 255, 0.3);
        width: 60%;
        height: 60%;
        top: 20%;
        left: 20%;
    }

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.tgp-loading-text {
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ============================================ */
/* Responsive Design */
/* ============================================ */
@media (max-width: 480px) {
    .tgp-page-container {
        padding-top: 30px;
        padding: 15px;
    }

    .tgp-content-card {
        max-width: 100%;
        border-radius: 20px;
    }

    .tgp-image-section {
        height: 280px;
    }

    .tgp-text-section {
        padding: 24px 20px;
    }

    .tgp-text-content {
        font-size: 12px;
        line-height: 1.7;
    }

    .tgp-media-section {
        padding: 24px 20px;
    }

    .tgp-video-player {
        max-height: 240px;
    }

    .tgp-audio-icon {
        width: 56px;
        height: 56px;
        top: -45px;
    }

    .tgp-text-icon {
        width: 36px;
        height: 36px;
    }
}