
        :root {
            --gold: #c9a84c;
            --gold-light: #e2c47a;
            --gold-dim: #8a6e2e;
            --bg-dark: #0a0a0c;
            --bg-card: #111114;
            --bg-nav: rgba(8, 8, 10, 0.97);
            --text-primary: #e8e2d4;
            --text-secondary: #8a8278;
            --text-muted: #5a5650;
            --border-subtle: rgba(201, 168, 76, 0.12);
            --border-card: rgba(255, 255, 255, 0.06);
            --shadow-card: 0 8px 40px rgba(0,0,0,0.7);
            --shadow-gold: 0 0 20px rgba(201, 168, 76, 0.15);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }


        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Vazirmatn', sans-serif;
            background: var(--bg-dark);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
            direction: rtl;
            position: relative;
        }


        ::-webkit-scrollbar {
            width: 6px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-dark);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--gold-dim);
            border-radius: 3px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--gold);
        }


        .atmosphere {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
        }


        .ember-glow {
            position: absolute;
            bottom: -10%;
            left: 50%;
            transform: translateX(-50%);
            width: 140%;
            height: 45%;
            background: radial-gradient(ellipse at center bottom,
                rgba(201, 120, 30, 0.20) 0%,
                rgba(202, 40, 16, 0.07) 30%,
                rgba(120, 50, 10, 0.03) 55%,
                transparent 75%
            );
            animation: emberPulse 8s ease-in-out infinite alternate;
        }

        @keyframes emberPulse {
            0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
            50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
            100% { opacity: 0.7; transform: translateX(-50%) scale(0.98); }
        }


        .smoke-layer {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 100%;
            opacity: 0.04;
        }

        .smoke-layer:nth-child(1) {
            background: 
                radial-gradient(ellipse 600px 200px at 20% 80%, rgba(201, 168, 76, 0.08), transparent),
                radial-gradient(ellipse 400px 300px at 70% 90%, rgba(180, 100, 30, 0.06), transparent);
            animation: smokeRise1 20s ease-in-out infinite;
        }

        .smoke-layer:nth-child(2) {
            background: 
                radial-gradient(ellipse 500px 250px at 60% 85%, rgba(201, 168, 76, 0.05), transparent),
                radial-gradient(ellipse 300px 200px at 30% 75%, rgba(150, 80, 20, 0.04), transparent);
            animation: smokeRise2 25s ease-in-out infinite;
        }

        @keyframes smokeRise1 {
            0%, 100% { transform: translateY(0) scale(1); opacity: 0.04; }
            50% { transform: translateY(-80px) scale(1.1); opacity: 0.07; }
        }

        @keyframes smokeRise2 {
            0%, 100% { transform: translateY(0) scale(1.05); opacity: 0.03; }
            50% { transform: translateY(-120px) scale(1); opacity: 0.06; }
        }

       

        #particleCanvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            pointer-events: none;
        }

        

        .vignette {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
            pointer-events: none;
            background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
        }


        .navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 1000;
      height: 62px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 40px;
      background: rgba(6,6,8,0.88);
      backdrop-filter: blur(18px) saturate(160%);
      -webkit-backdrop-filter: blur(18px) saturate(160%);
      border-bottom: 1px solid var(--border-gold);
      box-shadow: 0 1px 40px rgba(0,0,0,0.7), 0 0 0 0.5px var(--border-dim);
    }

    .navbar::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--gold-dim), var(--gold), var(--gold-dim), transparent);
      opacity: 0.6;
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      font-family: 'Cinzel', serif;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--gold-light);
      letter-spacing: 0.04em;
      text-shadow: 0 0 18px var(--gold-glow);
      transition: var(--transition);
    }
    .nav-logo:hover { text-shadow: 0 0 30px var(--gold-glow), 0 0 60px var(--gold-glow); }

    .nav-logo-icon {
      width: 32px; height: 32px;
      border: 1.5px solid var(--gold-dim);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 0 12px var(--gold-glow-sm), inset 0 0 8px rgba(201,168,76,0.08);
      position: relative;
      overflow: hidden;
    }
    .nav-logo-icon::before {
      content: '';
      position: absolute;
      inset: -1px;
      border-radius: 50%;
      background: conic-gradient(from 0deg, transparent 60%, var(--gold-dim) 100%);
      animation: spin 8s linear infinite;
      opacity: 0.4;
    }
    .nav-logo-icon svg { position: relative; z-index: 1; }

    @keyframes spin { to { transform: rotate(360deg); } }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 5px;
      list-style: none;
    }

    .nav-links a {
      display: block;
      padding: 6px 14px;
      font-size: 17PX;
      font-weight: 500;
      color: var(--text-secondary);
      text-decoration: none;
      border-radius: var(--radius-sm);
      transition: var(--transition);
      letter-spacing: 0.02em;
      position: relative;
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: 2px; left: 50%; right: 50%;
      height: 1px;
      background: var(--gold);
      transition: var(--transition);
      box-shadow: 0 0 6px var(--gold-glow);
    }
    .nav-links a:hover { color: var(--gold); }
    .nav-links a:hover::after { left: 14px; right: 14px; }

     

        .main-content {
            position: relative;
            z-index: 10;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 100px 1.5rem 60px;
        }

      
        .page-title {
            text-align: center;
            margin-bottom: 2.5rem;
            animation: fadeInDown 1s ease-out;
        }

        .page-title h1 {
            font-size: 2rem;
            font-weight: 800;
            color: var(--gold);
            margin-bottom: 0.5rem;
            text-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
            letter-spacing: 1px;
        }

        .page-title p {
            font-size: 0.9rem;
            color: var(--text-secondary);
            font-weight: 300;
        }

        .title-ornament {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            margin-top: 1rem;
        }

        .title-ornament .line {
            width: 80px;
            height: 1px;
            background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
        }

        .title-ornament .diamond {
            width: 8px;
            height: 8px;
            background: var(--gold);
            transform: rotate(45deg);
            opacity: 0.6;
        }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }

      
        .panel-container {
            position: relative;
            width: 100%;
            max-width: 580px;
            animation: panelReveal 1.2s ease-out 0.3s both;
        }

        @keyframes panelReveal {
            from { opacity: 0; transform: translateY(40px) scale(0.96); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .panel {
            position: relative;
            background: linear-gradient(160deg, 
                rgba(17, 17, 20, 0.95) 0%,
                rgba(14, 14, 18, 0.97) 50%,
                rgba(11, 11, 14, 0.98) 100%
            );
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border: 1px solid var(--border-subtle);
            border-radius: 4px;
            padding: 3rem 2.5rem;
            box-shadow: 
                var(--shadow-card),
                var(--shadow-gold),
                inset 0 1px 0 rgba(201, 168, 76, 0.06),
                inset 0 0 80px rgba(0, 0, 0, 0.3);
            overflow: visible;
        }

        

        .panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 10%;
            right: 10%;
            height: 1px;
            background: linear-gradient(to right, transparent, var(--gold-dim), var(--gold), var(--gold-dim), transparent);
            opacity: 0.4;
        }

        

        .panel::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20%;
            right: 20%;
            height: 1px;
            background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
            opacity: 0.2;
        }

       

        .corner {
            position: absolute;
            width: 50px;
            height: 50px;
            z-index: 5;
            pointer-events: none;
        }

    

        .corner--tr {
            top: -6px;
            right: -6px;
        }
        .corner--tr::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 40px;
            height: 2px;
            background: linear-gradient(to left, var(--gold), var(--gold-dim), transparent);
            box-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
        }
        .corner--tr::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 2px;
            height: 40px;
            background: linear-gradient(to bottom, var(--gold), var(--gold-dim), transparent);
            box-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
        }
        .corner--tr .corner-blade {
            position: absolute;
            top: -4px;
            right: -4px;
            width: 14px;
            height: 14px;
            border: 2px solid var(--gold);
            transform: rotate(45deg);
            background: var(--bg-dark);
            box-shadow: 0 0 12px rgba(201, 168, 76, 0.4), inset 0 0 4px rgba(201, 168, 76, 0.2);
        }
        .corner--tr .corner-dot {
            position: absolute;
            top: -1px;
            right: -1px;
            width: 8px;
            height: 8px;
            background: var(--gold);
            transform: rotate(45deg);
            box-shadow: 0 0 10px rgba(201, 168, 76, 0.6);
        }
        .corner--tr .corner-ext {
            position: absolute;
            top: 2px;
            right: 42px;
            width: 12px;
            height: 1px;
            background: var(--gold-dim);
            opacity: 0.5;
        }
        .corner--tr .corner-ext2 {
            position: absolute;
            top: 42px;
            right: 2px;
            width: 1px;
            height: 12px;
            background: var(--gold-dim);
            opacity: 0.5;
        }


        .corner--tl {
            top: -6px;
            left: -6px;
        }
        .corner--tl::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background: linear-gradient(to right, var(--gold), var(--gold-dim), transparent);
            box-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
        }
        .corner--tl::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 2px;
            height: 40px;
            background: linear-gradient(to bottom, var(--gold), var(--gold-dim), transparent);
            box-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
        }
        .corner--tl .corner-blade {
            position: absolute;
            top: -4px;
            left: -4px;
            width: 14px;
            height: 14px;
            border: 2px solid var(--gold);
            transform: rotate(45deg);
            background: var(--bg-dark);
            box-shadow: 0 0 12px rgba(201, 168, 76, 0.4), inset 0 0 4px rgba(201, 168, 76, 0.2);
        }
        .corner--tl .corner-dot {
            position: absolute;
            top: -1px;
            left: -1px;
            width: 8px;
            height: 8px;
            background: var(--gold);
            transform: rotate(45deg);
            box-shadow: 0 0 10px rgba(201, 168, 76, 0.6);
        }
        .corner--tl .corner-ext {
            position: absolute;
            top: 2px;
            left: 42px;
            width: 12px;
            height: 1px;
            background: var(--gold-dim);
            opacity: 0.5;
        }
        .corner--tl .corner-ext2 {
            position: absolute;
            top: 42px;
            left: 2px;
            width: 1px;
            height: 12px;
            background: var(--gold-dim);
            opacity: 0.5;
        }


        .corner--br {
            bottom: -6px;
            right: -6px;
        }
        .corner--br::before {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 40px;
            height: 2px;
            background: linear-gradient(to left, var(--gold), var(--gold-dim), transparent);
            box-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
        }
        .corner--br::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 2px;
            height: 40px;
            background: linear-gradient(to top, var(--gold), var(--gold-dim), transparent);
            box-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
        }
        .corner--br .corner-blade {
            position: absolute;
            bottom: -4px;
            right: -4px;
            width: 14px;
            height: 14px;
            border: 2px solid var(--gold);
            transform: rotate(45deg);
            background: var(--bg-dark);
            box-shadow: 0 0 12px rgba(201, 168, 76, 0.4), inset 0 0 4px rgba(201, 168, 76, 0.2);
        }
        .corner--br .corner-dot {
            position: absolute;
            bottom: -1px;
            right: -1px;
            width: 8px;
            height: 8px;
            background: var(--gold);
            transform: rotate(45deg);
            box-shadow: 0 0 10px rgba(201, 168, 76, 0.6);
        }
        .corner--br .corner-ext {
            position: absolute;
            bottom: 2px;
            right: 42px;
            width: 12px;
            height: 1px;
            background: var(--gold-dim);
            opacity: 0.5;
        }
        .corner--br .corner-ext2 {
            position: absolute;
            bottom: 42px;
            right: 2px;
            width: 1px;
            height: 12px;
            background: var(--gold-dim);
            opacity: 0.5;
        }

    

        .corner--bl {
            bottom: -6px;
            left: -6px;
        }
        .corner--bl::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background: linear-gradient(to right, var(--gold), var(--gold-dim), transparent);
            box-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
        }
        .corner--bl::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 2px;
            height: 40px;
            background: linear-gradient(to top, var(--gold), var(--gold-dim), transparent);
            box-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
        }
        .corner--bl .corner-blade {
            position: absolute;
            bottom: -4px;
            left: -4px;
            width: 14px;
            height: 14px;
            border: 2px solid var(--gold);
            transform: rotate(45deg);
            background: var(--bg-dark);
            box-shadow: 0 0 12px rgba(201, 168, 76, 0.4), inset 0 0 4px rgba(201, 168, 76, 0.2);
        }
        .corner--bl .corner-dot {
            position: absolute;
            bottom: -1px;
            left: -1px;
            width: 8px;
            height: 8px;
            background: var(--gold);
            transform: rotate(45deg);
            box-shadow: 0 0 10px rgba(201, 168, 76, 0.6);
        }
        .corner--bl .corner-ext {
            position: absolute;
            bottom: 2px;
            left: 42px;
            width: 12px;
            height: 1px;
            background: var(--gold-dim);
            opacity: 0.5;
        }
        .corner--bl .corner-ext2 {
            position: absolute;
            bottom: 42px;
            left: 2px;
            width: 1px;
            height: 12px;
            background: var(--gold-dim);
            opacity: 0.5;
        }

        

        .corner-blade {
            animation: cornerFlicker 4s ease-in-out infinite alternate;
        }

        @keyframes cornerFlicker {
            0%, 100% { box-shadow: 0 0 12px rgba(201, 168, 76, 0.4), inset 0 0 4px rgba(201, 168, 76, 0.2); }
            50% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.6), inset 0 0 8px rgba(201, 168, 76, 0.3); }
        }


        .edge-ornament {
            position: absolute;
            z-index: 5;
        }

        .edge-ornament--top {
            top: -1px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .edge-ornament--top::before {
            content: '';
            width: 6px;
            height: 6px;
            background: var(--gold);
            transform: rotate(45deg);
            box-shadow: 0 0 8px rgba(201, 168, 76, 0.5);
        }

        .edge-ornament--bottom {
            bottom: -1px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .edge-ornament--bottom::before {
            content: '';
            width: 6px;
            height: 6px;
            background: var(--gold-dim);
            transform: rotate(45deg);
            box-shadow: 0 0 6px rgba(201, 168, 76, 0.3);
        }

       

        .form-group {
            margin-bottom: 1.8rem;
            position: relative;
        }

        .form-label {
            display: block;
            font-size: 0.82rem;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 0.6rem;
            letter-spacing: 0.3px;
            transition: var(--transition);
        }

        .form-label .label-icon {
            display: inline-block;
            margin-left: 6px;
            color: var(--gold-dim);
            font-size: 0.75rem;
            opacity: 0.7;
        }

        .form-input,
        .form-textarea {
            width: 100%;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--border-card);
            border-radius: 8px;
            padding: 14px 18px;
            font-family: 'Vazirmatn', sans-serif;
            font-size: 0.9rem;
            color: var(--text-primary);
            transition: var(--transition);
            outline: none;
            direction: rtl;
            position: relative;
        }

        .form-input::placeholder,
        .form-textarea::placeholder {
            color: var(--text-muted);
            font-weight: 300;
            font-size: 0.82rem;
        }

        .form-input:hover,
        .form-textarea:hover {
            border-color: rgba(201, 168, 76, 0.2);
            background: rgba(255, 255, 255, 0.03);
        }

        .form-input:focus,
        .form-textarea:focus {
            border-color: var(--gold-dim);
            background: rgba(201, 168, 76, 0.03);
            box-shadow: 
                0 0 0 3px rgba(201, 168, 76, 0.06),
                0 0 20px rgba(201, 168, 76, 0.08),
                inset 0 0 20px rgba(201, 168, 76, 0.02);
        }

        .form-input:focus + .input-glow,
        .form-textarea:focus + .input-glow {
            opacity: 1;
        }

        .input-glow {
            position: absolute;
            bottom: 0;
            left: 10%;
            right: 10%;
            height: 1px;
            background: linear-gradient(to right, transparent, var(--gold), transparent);
            opacity: 0;
            transition: var(--transition);
            pointer-events: none;
        }

        .form-textarea {
            min-height: 140px;
            resize: vertical;
            line-height: 1.7;
        }


        .form-textarea::-webkit-scrollbar {
            width: 4px;
        }
        .form-textarea::-webkit-scrollbar-track {
            background: transparent;
        }
        .form-textarea::-webkit-scrollbar-thumb {
            background: var(--gold-dim);
            border-radius: 2px;
        }

        .form-group::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 15%;
            right: 15%;
            height: 1px;
            background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
        }

        .form-group:last-of-type::after {
            display: none;
        }


        .btn-container {
            margin-top: 2rem;
            position: relative;
        }

        .btn-submit {
            width: 100%;
            padding: 16px 24px;
            background: linear-gradient(160deg, 
                rgba(201, 168, 76, 0.12) 0%,
                rgba(138, 110, 46, 0.08) 50%,
                rgba(201, 168, 76, 0.1) 100%
            );
            border: 1px solid var(--gold-dim);
            border-radius: 6px;
            color: var(--gold-light);
            font-family: 'Vazirmatn', sans-serif;
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: var(--transition);
            box-shadow: 
                0 4px 20px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(201, 168, 76, 0.15),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
        }

        .btn-submit::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.08), transparent);
            transition: left 0.6s ease;
        }

        .btn-submit:hover::before {
            left: 100%;
        }

        .btn-submit:hover {
            background: linear-gradient(160deg, 
                rgba(201, 168, 76, 0.18) 0%,
                rgba(138, 110, 46, 0.12) 50%,
                rgba(201, 168, 76, 0.15) 100%
            );
            border-color: var(--gold);
            box-shadow: 
                0 6px 30px rgba(0, 0, 0, 0.6),
                0 0 30px rgba(201, 168, 76, 0.12),
                inset 0 1px 0 rgba(201, 168, 76, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
            transform: translateY(-1px);
            color: var(--gold-light);
            text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
        }

        .btn-submit:active {
            transform: translateY(1px);
            box-shadow: 
                0 2px 10px rgba(0, 0, 0, 0.5),
                inset 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .btn-submit:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

      

        .btn-corner {
            position: absolute;
            width: 10px;
            height: 10px;
        }

        .btn-corner--tr {
            top: -1px;
            right: -1px;
            border-top: 1.5px solid var(--gold);
            border-right: 1.5px solid var(--gold);
        }

        .btn-corner--tl {
            top: -1px;
            left: -1px;
            border-top: 1.5px solid var(--gold);
            border-left: 1.5px solid var(--gold);
        }

        .btn-corner--br {
            bottom: -1px;
            right: -1px;
            border-bottom: 1.5px solid var(--gold);
            border-right: 1.5px solid var(--gold);
        }

        .btn-corner--bl {
            bottom: -1px;
            left: -1px;
            border-bottom: 1.5px solid var(--gold);
            border-left: 1.5px solid var(--gold);
        }

        

        .btn-spinner {
            display: none;
            width: 18px;
            height: 18px;
            border: 2px solid transparent;
            border-top-color: var(--gold);
            border-right-color: var(--gold);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto;
        }

        .btn-submit.loading .btn-text {
            display: none;
        }

        .btn-submit.loading .btn-spinner {
            display: block;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

      

.success-message {
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: linear-gradient(135deg, 
        rgba(201, 168, 76, 0.06) 0%,
        rgba(201, 168, 76, 0.03) 100%
    );
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 8px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.06);
    position: relative;
    overflow: hidden;
}

.success-message.visible {
    max-height: 200px;
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
    opacity: 1;
    pointer-events: auto;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.4;
}

.success-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { text-shadow: 0 0 10px rgba(201, 168, 76, 0.3); }
    50% { text-shadow: 0 0 25px rgba(201, 168, 76, 0.5); }
}

.success-message p {
    font-size: 0.82rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
}


.error-message {
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgb(36 109 8 / 87%);
    border: 1px solid rgba(180, 40, 40, 0.2);
    border-radius: 6px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-message.visible {
    max-height: 120px;
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    opacity: 1;
}

.error-message p {
    font-size: 0.8rem;
    color: #ffffff;
    margin: 0;
}

      

        .bottom-quote {
            margin-top: 3rem;
            text-align: center;
            max-width: 500px;
            animation: fadeInUp 1.5s ease-out 0.8s both;
        }

        .bottom-quote .quote-ornament {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.8rem;
            margin-bottom: 1.2rem;
        }

        .bottom-quote .quote-ornament .line {
            width: 40px;
            height: 1px;
            background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
        }

        .bottom-quote .quote-ornament .dot {
            width: 4px;
            height: 4px;
            background: var(--gold-dim);
            border-radius: 50%;
            opacity: 0.5;
        }

        .bottom-quote blockquote {
            font-size: 0.85rem;
            line-height: 2;
            color: var(--text-muted);
            font-weight: 300;
            font-style: italic;
            letter-spacing: 0.2px;
        }

        .bottom-quote .quote-source {
            margin-top: 0.8rem;
            font-size: 0.7rem;
            color: var(--gold-dim);
            font-style: normal;
            font-weight: 400;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

       

        @media (max-width: 640px) {
            .panel {
                padding: 2rem 1.5rem;
            }

            .page-title h1 {
                font-size: 1.5rem;
            }

            .main-content {
                padding: 90px 1rem 40px;
            }

            .corner {
                width: 35px;
                height: 35px;
            }

            .corner--tr::before,
            .corner--tl::before,
            .corner--br::before,
            .corner--bl::before {
                width: 28px;
            }

            .corner--tr::after,
            .corner--tl::after,
            .corner--br::after,
            .corner--bl::after {
                height: 28px;
            }

            .corner-blade {
                width: 10px !important;
                height: 10px !important;
            }

            .corner-ext,
            .corner-ext2 {
                display: none;
            }

            .form-input,
            .form-textarea {
                padding: 12px 14px;
                font-size: 0.85rem;
            }

            .btn-submit {
                padding: 14px 20px;
                font-size: 0.88rem;
            }

            .bottom-quote blockquote {
                font-size: 0.78rem;
            }

        }

        @media (max-width: 400px) {
            .panel {
                padding: 1.5rem 1.2rem;
            }

            .page-title h1 {
                font-size: 1.3rem;
            }
        }

        

        .ambient-rune {
            position: fixed;
            width: 2px;
            height: 2px;
            background: var(--gold);
            border-radius: 50%;
            opacity: 0;
            pointer-events: none;
            z-index: 1;
        }

        .ambient-rune:nth-child(1) {
            top: 30%;
            left: 10%;
            animation: runeFloat 12s ease-in-out infinite 0s;
        }

        .ambient-rune:nth-child(2) {
            top: 60%;
            right: 8%;
            animation: runeFloat 15s ease-in-out infinite 3s;
        }

        .ambient-rune:nth-child(3) {
            top: 45%;
            left: 85%;
            animation: runeFloat 18s ease-in-out infinite 6s;
        }

        .ambient-rune:nth-child(4) {
            top: 75%;
            left: 15%;
            animation: runeFloat 14s ease-in-out infinite 2s;
        }

        @keyframes runeFloat {
            0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
            20% { opacity: 0.3; }
            50% { opacity: 0.6; transform: translateY(-40px) scale(1.5); }
            80% { opacity: 0.2; }
        }

       
        
        .form-input.invalid,
        .form-textarea.invalid {
            border-color: rgba(180, 60, 60, 0.4);
        }

        .field-error {
            font-size: 0.72rem;
            color: #c47a7a;
            margin-top: 4px;
            opacity: 0;
            transition: var(--transition);
            height: 0;
            overflow: hidden;
        }

        .field-error.show {
            opacity: 1;
            height: auto;
            margin-top: 6px;
        }

        @media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 6px 14px;
    gap: 8px;
  }
  .nav-logo {
    order: 1;
    margin: 0;
  }
  .nav-links {
    order: 2;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    gap: 0px;
    padding: 2px 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    direction: rtl;
  }
  .nav-links a {
    display: inline-block;
    font-size: 13px;
    padding: 6px 12px;
  }
  .nav-links a::after {
    bottom: 0;
  }
  .nav-links a:hover::after {
    left: 12px;
    right: 12px;
  }
  .nav-links a:active {
    color: var(--gold);
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 6px 12px;
  }
  .nav-logo {
    font-size: 0.9rem;
  }
  .nav-logo-icon {
    width: 28px;
    height: 28px;
  }
  .nav-links a {
    font-size: 11px;
    padding: 4px 10px;
  }
}