{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "secure-envelope",
  "title": "Secure Envelope",
  "author": "AlgorizeTech",
  "description": "An interactive classified security envelope & travel pass sleeve component featuring a secret card that glides out horizontally on hover and elevates gracefully onto the cover on click with 3D flip physics.",
  "dependencies": [],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "src/components/custom/blocks/SecureEnvelopeBlock.tsx",
      "content": "\"use client\";\n\nimport React, { useRef, useState } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\n// ============================================================================\n// CLASSIFIED SECURITY CREST SEAL SVG\n// ============================================================================\nexport function ClassifiedSeal({\n  className,\n  style,\n  size = 260,\n  strokeWidth = 1.3,\n}: {\n  className?: string;\n  style?: React.CSSProperties;\n  size?: number | string;\n  strokeWidth?: number;\n}) {\n  return (\n    <svg\n      viewBox=\"0 0 200 200\"\n      width={size}\n      height={size}\n      style={style}\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      className={cn(\"pointer-events-none select-none\", className)}\n    >\n      <g transform=\"translate(100, 100)\">\n        <circle\n          r={86}\n          stroke=\"currentColor\"\n          strokeWidth={strokeWidth}\n          strokeDasharray=\"4 6\"\n          className=\"opacity-40\"\n        />\n        <circle\n          r={78}\n          stroke=\"currentColor\"\n          strokeWidth={strokeWidth * 0.8}\n          className=\"opacity-55\"\n        />\n        <line x1=\"-92\" y1=\"0\" x2=\"-80\" y2=\"0\" stroke=\"currentColor\" strokeWidth={strokeWidth} className=\"opacity-70\" />\n        <line x1=\"80\" y1=\"0\" x2=\"92\" y2=\"0\" stroke=\"currentColor\" strokeWidth={strokeWidth} className=\"opacity-70\" />\n        <line x1=\"0\" y1=\"-92\" x2=\"0\" y2=\"-80\" stroke=\"currentColor\" strokeWidth={strokeWidth} className=\"opacity-70\" />\n        <line x1=\"0\" y1=\"80\" x2=\"0\" y2=\"92\" stroke=\"currentColor\" strokeWidth={strokeWidth} className=\"opacity-70\" />\n        <polygon\n          points=\"0,-64 45,-45 64,0 45,45 0,64 -45,45 -64,0 -45,-45\"\n          stroke=\"currentColor\"\n          strokeWidth={strokeWidth * 0.85}\n          className=\"opacity-35\"\n        />\n        <circle\n          r={48}\n          stroke=\"currentColor\"\n          strokeWidth={strokeWidth}\n          className=\"opacity-65\"\n        />\n        <circle cx=\"0\" cy=\"-56\" r={1.8} fill=\"currentColor\" className=\"opacity-60\" />\n        <circle cx=\"56\" cy=\"0\" r={1.8} fill=\"currentColor\" className=\"opacity-60\" />\n        <circle cx=\"0\" cy=\"56\" r={1.8} fill=\"currentColor\" className=\"opacity-60\" />\n        <circle cx=\"-56\" cy=\"0\" r={1.8} fill=\"currentColor\" className=\"opacity-60\" />\n        <path\n          d=\"M 0 -26 L 20 -16 V 3 C 20 16 11 26 0 30 C -11 26 -20 16 -20 3 V -16 Z\"\n          stroke=\"currentColor\"\n          strokeWidth={strokeWidth * 1.3}\n          strokeLinejoin=\"round\"\n          className=\"opacity-85\"\n        />\n        <circle\n          cx=\"0\"\n          cy=\"-2\"\n          r=\"4.5\"\n          stroke=\"currentColor\"\n          strokeWidth={strokeWidth * 1.1}\n          className=\"opacity-90\"\n        />\n        <path\n          d=\"M -2 1.5 L -3.5 13 H 3.5 L 2 1.5 Z\"\n          fill=\"currentColor\"\n          className=\"opacity-80\"\n        />\n      </g>\n    </svg>\n  );\n}\n\nexport const OrbitalSpirograph = ClassifiedSeal;\n\n// ============================================================================\n// HYPERBOLT EXPRESS BULLET TRAIN LOGO & WATERMARK SVGS\n// ============================================================================\nexport function HyperboltTrainLogo({ className }: { className?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 160 56\"\n      fill=\"currentColor\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      className={cn(\"select-none pointer-events-none\", className)}\n    >\n      {/* 5 Aerodynamic Speed Streak Fins */}\n      <path d=\"M 0 32 L 62 32 L 65 28 L 5 28 Z\" opacity=\"0.95\" />\n      <path d=\"M 10 24 L 68 24 L 71 20 L 15 20 Z\" opacity=\"0.95\" />\n      <path d=\"M 22 16 L 76 16 L 79 12 L 28 12 Z\" opacity=\"0.95\" />\n      <path d=\"M 38 8 L 84 8 L 87 4 L 44 4 Z\" opacity=\"0.95\" />\n      <path d=\"M 54 2 L 92 2 L 94 0 L 58 0 Z\" opacity=\"0.95\" />\n\n      {/* Main Bullet Locomotive Body */}\n      <path\n        d=\"M 65 32 L 115 32 C 128 32, 138 28, 144 22 C 147 19, 149 14, 145 11 C 137 3, 118 0, 92 0 L 58 0 L 65 32 Z\"\n      />\n\n      {/* Cockpit Windshield */}\n      <path\n        d=\"M 120 14 C 130 14, 136 18, 138 20 C 133 22, 126 22, 120 22 Z\"\n        className=\"fill-background\"\n      />\n\n      {/* Wheel Tracks & Undercarriage */}\n      <rect x=\"72\" y=\"34\" width=\"7\" height=\"2\" rx=\"1\" />\n      <rect x=\"88\" y=\"34\" width=\"7\" height=\"2\" rx=\"1\" />\n      <rect x=\"106\" y=\"34\" width=\"7\" height=\"2\" rx=\"1\" />\n      <line x1=\"60\" y1=\"38\" x2=\"132\" y2=\"38\" stroke=\"currentColor\" strokeWidth=\"1.5\" />\n    </svg>\n  );\n}\n\nexport function TrainWatermark({ className }: { className?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 160 56\"\n      fill=\"currentColor\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      className={cn(\"pointer-events-none select-none\", className)}\n    >\n      <path d=\"M 0 32 L 62 32 L 65 28 L 5 28 Z\" />\n      <path d=\"M 10 24 L 68 24 L 71 20 L 15 20 Z\" />\n      <path d=\"M 22 16 L 76 16 L 79 12 L 28 12 Z\" />\n      <path d=\"M 38 8 L 84 8 L 87 4 L 44 4 Z\" />\n      <path d=\"M 65 32 L 115 32 C 128 32, 138 28, 144 22 C 147 19, 149 14, 145 11 C 137 3, 118 0, 92 0 L 58 0 L 65 32 Z\" />\n    </svg>\n  );\n}\n\nexport function HyperboltSleeveSeal({\n  className,\n  style,\n  size = 240,\n}: {\n  className?: string;\n  style?: React.CSSProperties;\n  size?: number | string;\n}) {\n  return (\n    <svg\n      viewBox=\"0 0 200 200\"\n      width={size}\n      height={size}\n      style={style}\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      className={cn(\"pointer-events-none select-none\", className)}\n    >\n      <g transform=\"translate(100, 100)\">\n        {/* Outer Dotted Speed Orbit */}\n        <circle r=\"86\" stroke=\"currentColor\" strokeWidth=\"1.4\" strokeDasharray=\"4 6\" className=\"opacity-40\" />\n        <circle r=\"78\" stroke=\"currentColor\" strokeWidth=\"1\" className=\"opacity-50\" />\n\n        {/* Speed Rays */}\n        <line x1=\"-92\" y1=\"0\" x2=\"-80\" y2=\"0\" stroke=\"currentColor\" strokeWidth=\"1.5\" className=\"opacity-70\" />\n        <line x1=\"80\" y1=\"0\" x2=\"92\" y2=\"0\" stroke=\"currentColor\" strokeWidth=\"1.5\" className=\"opacity-70\" />\n        <line x1=\"0\" y1=\"-92\" x2=\"0\" y2=\"-80\" stroke=\"currentColor\" strokeWidth=\"1.5\" className=\"opacity-70\" />\n        <line x1=\"0\" y1=\"80\" x2=\"0\" y2=\"92\" stroke=\"currentColor\" strokeWidth=\"1.5\" className=\"opacity-70\" />\n\n        {/* Center Bullet Train Silhouette */}\n        <g transform=\"translate(-40, -14) scale(0.55)\">\n          <path d=\"M 0 32 L 62 32 L 65 28 L 5 28 Z\" fill=\"currentColor\" opacity=\"0.9\" />\n          <path d=\"M 10 24 L 68 24 L 71 20 L 15 20 Z\" fill=\"currentColor\" opacity=\"0.9\" />\n          <path d=\"M 22 16 L 76 16 L 79 12 L 28 12 Z\" fill=\"currentColor\" opacity=\"0.9\" />\n          <path d=\"M 38 8 L 84 8 L 87 4 L 44 4 Z\" fill=\"currentColor\" opacity=\"0.9\" />\n          <path d=\"M 65 32 L 115 32 C 128 32, 138 28, 144 22 C 147 19, 149 14, 145 11 C 137 3, 118 0, 92 0 L 58 0 L 65 32 Z\" fill=\"currentColor\" />\n          <circle cx=\"125\" cy=\"18\" r=\"3\" className=\"fill-background\" />\n          <rect x=\"72\" y=\"34\" width=\"7\" height=\"2\" rx=\"1\" fill=\"currentColor\" />\n          <rect x=\"88\" y=\"34\" width=\"7\" height=\"2\" rx=\"1\" fill=\"currentColor\" />\n          <rect x=\"106\" y=\"34\" width=\"7\" height=\"2\" rx=\"1\" fill=\"currentColor\" />\n          <line x1=\"60\" y1=\"38\" x2=\"132\" y2=\"38\" stroke=\"currentColor\" strokeWidth=\"2\" />\n        </g>\n\n        {/* Outer Circular Train Track Markers */}\n        {[0, 45, 90, 135, 180, 225, 270, 315].map((angle, i) => (\n          <circle\n            key={i}\n            cx={70 * Math.cos((angle * Math.PI) / 180)}\n            cy={70 * Math.sin((angle * Math.PI) / 180)}\n            r={1.8}\n            fill=\"currentColor\"\n            className=\"opacity-60\"\n          />\n        ))}\n      </g>\n    </svg>\n  );\n}\n\n// ============================================================================\n// CYBER NEXUS SMARTCARD SEAL & CIRCUIT WATERMARK SVGS\n// ============================================================================\nexport function CyberNexusSeal({\n  className,\n  style,\n  size = 240,\n}: {\n  className?: string;\n  style?: React.CSSProperties;\n  size?: number | string;\n}) {\n  return (\n    <svg\n      viewBox=\"0 0 200 200\"\n      width={size}\n      height={size}\n      style={style}\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      className={cn(\"pointer-events-none select-none\", className)}\n    >\n      <g transform=\"translate(100, 100)\">\n        {/* Outer Hexagon Tech Boundary */}\n        <polygon\n          points=\"0,-88 76,-44 76,44 0,88 -76,44 -76,-44\"\n          stroke=\"currentColor\"\n          strokeWidth=\"1.2\"\n          className=\"opacity-40\"\n        />\n        {/* Outer Circular Degree Marks & Rings */}\n        <circle r=\"78\" stroke=\"currentColor\" strokeWidth=\"1\" strokeDasharray=\"3 5\" className=\"opacity-50\" />\n        <circle r=\"68\" stroke=\"currentColor\" strokeWidth=\"1.4\" className=\"opacity-70\" />\n        <circle r=\"52\" stroke=\"currentColor\" strokeWidth=\"0.8\" strokeDasharray=\"2 4\" className=\"opacity-40\" />\n\n        {/* Diagonal Corner Nodes */}\n        <circle cx=\"-55\" cy=\"-55\" r=\"2.5\" fill=\"currentColor\" className=\"opacity-80\" />\n        <circle cx=\"55\" cy=\"-55\" r=\"2.5\" fill=\"currentColor\" className=\"opacity-80\" />\n        <circle cx=\"55\" cy=\"55\" r=\"2.5\" fill=\"currentColor\" className=\"opacity-80\" />\n        <circle cx=\"-55\" cy=\"55\" r=\"2.5\" fill=\"currentColor\" className=\"opacity-80\" />\n        <line x1=\"-55\" y1=\"-55\" x2=\"-40\" y2=\"-40\" stroke=\"currentColor\" strokeWidth=\"1.2\" className=\"opacity-60\" />\n        <line x1=\"55\" y1=\"-55\" x2=\"40\" y2=\"-40\" stroke=\"currentColor\" strokeWidth=\"1.2\" className=\"opacity-60\" />\n        <line x1=\"55\" y1=\"55\" x2=\"40\" y2=\"40\" stroke=\"currentColor\" strokeWidth=\"1.2\" className=\"opacity-60\" />\n        <line x1=\"-55\" y1=\"55\" x2=\"-40\" y2=\"40\" stroke=\"currentColor\" strokeWidth=\"1.2\" className=\"opacity-60\" />\n\n        {/* Center Hexagonal Microprocessor Core */}\n        <polygon\n          points=\"0,-28 24,-14 24,14 0,28 -24,14 -24,-14\"\n          stroke=\"currentColor\"\n          strokeWidth=\"1.8\"\n          fill=\"currentColor\"\n          fillOpacity=\"0.08\"\n          className=\"opacity-90\"\n        />\n        {/* Fingerprint / Biometric Waves inside center */}\n        <path d=\"M -12 -6 A 14 14 0 0 1 12 -6\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" className=\"opacity-80\" />\n        <path d=\"M -8 2 A 9 9 0 0 1 8 2\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" className=\"opacity-90\" />\n        <circle cx=\"0\" cy=\"10\" r=\"2\" fill=\"currentColor\" className=\"opacity-95\" />\n\n        {/* Telemetry Perimeter Text */}\n        <text x=\"0\" y=\"-72\" textAnchor=\"middle\" fill=\"currentColor\" fontSize=\"5.5\" fontWeight=\"bold\" letterSpacing=\"1.5\" className=\"opacity-80 font-mono\">NFC • FIDO2 • 13.56 MHz</text>\n        <text x=\"0\" y=\"80\" textAnchor=\"middle\" fill=\"currentColor\" fontSize=\"5\" fontWeight=\"bold\" letterSpacing=\"1.8\" className=\"opacity-80 font-mono\">SECURE VAULT // 09</text>\n      </g>\n    </svg>\n  );\n}\n\nexport const BiometricIrisSeal = CyberNexusSeal;\nexport const LuxuryDiamondCrownSeal = CyberNexusSeal;\n\nexport function SmartChipGlyph({ className }: { className?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 72 56\"\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      className={cn(\"select-none pointer-events-none\", className)}\n    >\n      {/* Golden Metallic Chip Body */}\n      <rect x=\"1\" y=\"1\" width=\"70\" height=\"54\" rx=\"7\" className=\"fill-amber-400/90 dark:fill-amber-500/80 stroke-amber-600/80 dark:stroke-amber-400/70\" strokeWidth=\"1.5\" />\n      {/* Contact Pads Geometry */}\n      <rect x=\"23\" y=\"1\" width=\"26\" height=\"54\" className=\"stroke-amber-700/60 dark:stroke-amber-900/60\" strokeWidth=\"1.2\" fill=\"none\" />\n      <line x1=\"1\" y1=\"20\" x2=\"71\" y2=\"20\" className=\"stroke-amber-700/60 dark:stroke-amber-900/60\" strokeWidth=\"1.2\" />\n      <line x1=\"1\" y1=\"36\" x2=\"71\" y2=\"36\" className=\"stroke-amber-700/60 dark:stroke-amber-900/60\" strokeWidth=\"1.2\" />\n      <circle cx=\"36\" cy=\"28\" r=\"7\" className=\"fill-amber-500 dark:fill-amber-600 stroke-amber-700/70\" strokeWidth=\"1.2\" />\n      <path d=\"M 23 28 H 1 M 49 28 H 71\" className=\"stroke-amber-700/60 dark:stroke-amber-900/60\" strokeWidth=\"1.2\" />\n    </svg>\n  );\n}\n\nexport function NfcContactlessGlyph({ className }: { className?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 32 32\"\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      className={cn(\"select-none pointer-events-none\", className)}\n    >\n      <path d=\"M 9 23 A 14 14 0 0 1 9 9\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" opacity=\"0.4\" />\n      <path d=\"M 14 20 A 9 9 0 0 1 14 12\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" opacity=\"0.7\" />\n      <path d=\"M 19 18 A 5 5 0 0 1 19 14\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" opacity=\"0.95\" />\n    </svg>\n  );\n}\n\nexport function CyberCircuitWatermark({ className }: { className?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 200 120\"\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      className={cn(\"pointer-events-none select-none\", className)}\n    >\n      <g stroke=\"currentColor\" strokeWidth=\"1\" opacity=\"0.25\">\n        <path d=\"M 10 30 H 45 L 60 45 H 110 L 125 30 H 190\" />\n        <path d=\"M 10 80 H 70 L 85 65 H 140 L 155 80 H 190\" />\n        <path d=\"M 50 10 V 35 L 65 50 V 90 L 75 100 V 110\" />\n        <path d=\"M 150 10 V 35 L 135 50 V 90 L 125 100 V 110\" />\n        <circle cx=\"45\" cy=\"30\" r=\"2\" fill=\"currentColor\" />\n        <circle cx=\"125\" cy=\"30\" r=\"2\" fill=\"currentColor\" />\n        <circle cx=\"70\" cy=\"80\" r=\"2\" fill=\"currentColor\" />\n        <circle cx=\"155\" cy=\"80\" r=\"2\" fill=\"currentColor\" />\n        <rect x=\"90\" y=\"48\" width=\"20\" height=\"24\" rx=\"2\" strokeWidth=\"1\" />\n      </g>\n    </svg>\n  );\n}\n\nexport const ArtDecoWatermark = CyberCircuitWatermark;\n\n// ============================================================================\n// AVIATION BOARDING PASS & RADAR SEAL SVGS\n// ============================================================================\nexport function AviationRadarSeal({\n  className,\n  style,\n  size = 240,\n}: {\n  className?: string;\n  style?: React.CSSProperties;\n  size?: number | string;\n}) {\n  return (\n    <svg\n      viewBox=\"0 0 200 200\"\n      width={size}\n      height={size}\n      style={style}\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      className={cn(\"pointer-events-none select-none\", className)}\n    >\n      <g transform=\"translate(100, 100)\">\n        {/* Outer Degree Marks & Radar Rings */}\n        <circle r=\"88\" stroke=\"currentColor\" strokeWidth=\"1.2\" strokeDasharray=\"3 5\" className=\"opacity-40\" />\n        <circle r=\"80\" stroke=\"currentColor\" strokeWidth=\"1.4\" className=\"opacity-55\" />\n        <circle r=\"60\" stroke=\"currentColor\" strokeWidth=\"0.9\" strokeDasharray=\"2 4\" className=\"opacity-35\" />\n        <circle r=\"40\" stroke=\"currentColor\" strokeWidth=\"0.8\" className=\"opacity-45\" />\n\n        {/* Compass Crosshairs */}\n        <line x1=\"-94\" y1=\"0\" x2=\"-76\" y2=\"0\" stroke=\"currentColor\" strokeWidth=\"1.5\" className=\"opacity-70\" />\n        <line x1=\"76\" y1=\"0\" x2=\"94\" y2=\"0\" stroke=\"currentColor\" strokeWidth=\"1.5\" className=\"opacity-70\" />\n        <line x1=\"0\" y1=\"-94\" x2=\"0\" y2=\"-76\" stroke=\"currentColor\" strokeWidth=\"1.5\" className=\"opacity-70\" />\n        <line x1=\"0\" y1=\"76\" x2=\"0\" y2=\"94\" stroke=\"currentColor\" strokeWidth=\"1.5\" className=\"opacity-70\" />\n\n        {/* Compass Cardinal Points */}\n        <text x=\"0\" y=\"-83\" textAnchor=\"middle\" fill=\"currentColor\" fontSize=\"6.5\" fontWeight=\"bold\" className=\"opacity-80 font-mono\">N</text>\n        <text x=\"85\" y=\"2.5\" textAnchor=\"middle\" fill=\"currentColor\" fontSize=\"6.5\" fontWeight=\"bold\" className=\"opacity-80 font-mono\">E</text>\n        <text x=\"0\" y=\"89\" textAnchor=\"middle\" fill=\"currentColor\" fontSize=\"6.5\" fontWeight=\"bold\" className=\"opacity-80 font-mono\">S</text>\n        <text x=\"-85\" y=\"2.5\" textAnchor=\"middle\" fill=\"currentColor\" fontSize=\"6.5\" fontWeight=\"bold\" className=\"opacity-80 font-mono\">W</text>\n\n        {/* Flight Trajectory Orbit Arcs */}\n        <ellipse rx=\"74\" ry=\"28\" stroke=\"currentColor\" strokeWidth=\"1\" transform=\"rotate(-25)\" className=\"opacity-30\" />\n        <ellipse rx=\"74\" ry=\"28\" stroke=\"currentColor\" strokeWidth=\"1\" transform=\"rotate(25)\" className=\"opacity-30\" />\n\n        {/* Center Jet Airplane Silhouette */}\n        <g transform=\"translate(0, -1) scale(0.9)\">\n          <path\n            d=\"M 0 -28 L 3 -18 L 24 2 L 24 7 L 4 2 L 3 16 L 10 22 L 10 26 L 0 23 L -10 26 L -10 22 L -3 16 L -4 2 L -24 7 L -24 2 L -3 -18 Z\"\n            fill=\"currentColor\"\n            className=\"opacity-90\"\n          />\n        </g>\n\n        {/* Waypoint Markers */}\n        {[30, 60, 120, 150, 210, 240, 300, 330].map((angle, i) => (\n          <circle\n            key={i}\n            cx={70 * Math.cos((angle * Math.PI) / 180)}\n            cy={70 * Math.sin((angle * Math.PI) / 180)}\n            r={1.5}\n            fill=\"currentColor\"\n            className=\"opacity-60\"\n          />\n        ))}\n      </g>\n    </svg>\n  );\n}\n\nexport function FlightWingsLogo({ className }: { className?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 160 56\"\n      fill=\"currentColor\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      className={cn(\"select-none pointer-events-none\", className)}\n    >\n      {/* Left Wing Feathers */}\n      <path d=\"M 70 28 L 10 18 L 8 22 L 68 32 Z\" opacity=\"0.85\" />\n      <path d=\"M 70 24 L 20 12 L 18 16 L 68 28 Z\" opacity=\"0.9\" />\n      <path d=\"M 70 20 L 32 6 L 30 10 L 68 24 Z\" opacity=\"0.95\" />\n      <path d=\"M 70 16 L 46 2 L 44 5 L 68 20 Z\" opacity=\"1\" />\n\n      {/* Right Wing Feathers */}\n      <path d=\"M 90 28 L 150 18 L 152 22 L 92 32 Z\" opacity=\"0.85\" />\n      <path d=\"M 90 24 L 140 12 L 142 16 L 92 28 Z\" opacity=\"0.9\" />\n      <path d=\"M 90 20 L 128 6 L 130 10 L 92 24 Z\" opacity=\"0.95\" />\n      <path d=\"M 90 16 L 114 2 L 116 5 L 92 20 Z\" opacity=\"1\" />\n\n      {/* Center Jet Emblem */}\n      <circle cx=\"80\" cy=\"24\" r=\"14\" className=\"fill-current\" />\n      <circle cx=\"80\" cy=\"24\" r=\"11\" className=\"fill-background\" />\n      <path\n        d=\"M 80 16 L 82 21 L 89 25 L 89 27 L 82 25 L 81 30 L 84 32 L 84 34 L 80 33 L 76 34 L 76 32 L 79 30 L 78 25 L 71 27 L 71 25 L 78 21 Z\"\n        className=\"fill-current\"\n      />\n      {/* Stars on bottom */}\n      <circle cx=\"73\" cy=\"44\" r=\"1.5\" opacity=\"0.75\" />\n      <circle cx=\"80\" cy=\"46\" r=\"2\" opacity=\"0.95\" />\n      <circle cx=\"87\" cy=\"44\" r=\"1.5\" opacity=\"0.75\" />\n    </svg>\n  );\n}\n\nexport function AirplaneWatermark({ className }: { className?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 160 56\"\n      fill=\"currentColor\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      className={cn(\"pointer-events-none select-none\", className)}\n    >\n      <g transform=\"translate(80, 28) scale(1.15)\">\n        <path\n          d=\"M 0 -24 L 3 -14 L 28 2 L 28 6 L 4 2 L 3 14 L 10 19 L 10 22 L 0 20 L -10 22 L -10 19 L -3 14 L -4 2 L -28 6 L -28 2 L -3 -14 Z\"\n          opacity=\"0.9\"\n        />\n      </g>\n    </svg>\n  );\n}\n\nexport function VerticalBarcode({\n  code = \"0 734664 235788\",\n  className,\n}: {\n  code?: string;\n  className?: string;\n}) {\n  const bars = [2, 1, 3, 1, 2, 4, 1, 2, 3, 1, 4, 2, 1, 3, 2, 1, 4, 2, 3, 1, 2, 4, 1, 3, 2, 1, 2, 3];\n  return (\n    <div className={cn(\"flex items-center gap-0.5 select-none\", className)}>\n      <div className=\"flex flex-col gap-[1.2px] min-[400px]:gap-[1.5px] sm:gap-[2.2px] h-16 min-[400px]:h-20 sm:h-32 justify-between\">\n        {bars.map((w, i) => (\n          <div\n            key={i}\n            className=\"w-full bg-foreground rounded-full transition-colors duration-300\"\n            style={{ height: `${w * 0.75}px` }}\n          />\n        ))}\n      </div>\n      <span className=\"[writing-mode:vertical-lr] rotate-180 font-mono text-[4.5px] min-[400px]:text-[5.5px] sm:text-[8px] font-semibold text-foreground/80 tracking-wider transition-colors duration-300\">\n        {code}\n      </span>\n    </div>\n  );\n}\n\n// ============================================================================\n// TYPES & PROPS\n// ============================================================================\nexport type ConfidentialFolderInteractionMode = \"auto-flip\" | \"step-flip\";\nexport type ConfidentialFolderCardDesign =\n  | \"classified\"\n  | \"train-ticket\"\n  | \"smart-card\"\n  | \"keycard\"\n  | \"cyber-card\"\n  | \"boarding-pass\"\n  | \"vip-card\"\n  | \"black-card\";\n\nexport interface CouponMetric {\n  label: string;\n  value: string;\n}\n\nexport interface CouponCardData {\n  // Sleeve info\n  sleeveTitle?: string;\n  sleeveSubtitle?: string;\n\n  // Keycard / VIP Black Metal Card Specific Fields\n  holderName?: string;\n  cardNumber?: string;\n  memberSince?: string;\n  tierName?: string;\n  conciergePhone?: string;\n  cvv?: string;\n  accessId?: string;\n  roleTitle?: string;\n  department?: string;\n  authLevel?: string;\n  expiryDate?: string;\n  chipSerial?: string;\n  securityKey?: string;\n  hashSignature?: string;\n\n  // Train / Boarding Pass Specific Fields\n  ticketTitle?: string;\n  passengerName?: string;\n  routeText?: string;\n  flightRoute?: string;\n  origin?: string;\n  destination?: string;\n  date?: string;\n  departureTime?: string;\n  boardingTime?: string;\n  seatNumber?: string;\n  trainNumber?: string;\n  flightNumber?: string;\n  gate?: string;\n  cabinClass?: string;\n  trainCompany?: string;\n  airlineCompany?: string;\n  slogan?: string;\n  barcodeNumber?: string;\n  websiteUrl?: string;\n  eticketNumber?: string;\n\n  // Face 1: Front Cover / Voucher Pass (General & Classified)\n  frontBadge?: string;\n  frontSerial?: string;\n  frontTitle?: string;\n  frontSubtitle?: string;\n  frontStamp?: string;\n  stampSuffix?: string;\n  barcodeText?: string;\n  clearanceLevel?: string;\n\n  // Face 2: Back Details / Manifesto (General & Classified)\n  cardCategory?: string;\n  cardDate?: string;\n  cardTitle?: string;\n  cardSubtitle?: string;\n  statement?: string;\n  highlightQuote?: string;\n  authorText?: string;\n\n  // Metrics (array or individual fields)\n  metrics?: CouponMetric[];\n  metric1Label?: string;\n  metric1Value?: string;\n  metric2Label?: string;\n  metric2Value?: string;\n  metric3Label?: string;\n  metric3Value?: string;\n\n  // Positioning\n  initialPeek?: number;\n  hoverPeek?: number;\n\n  // Fallbacks\n  cardBadge?: string;\n  cardVersion?: string;\n  pillar1Title?: string;\n  pillar1Desc?: string;\n  pillar2Title?: string;\n  pillar2Desc?: string;\n  quote?: string;\n  quoteAuthor?: string;\n  statusText?: string;\n  sessionLabel?: string;\n  sessionNumber?: string;\n  subquote?: string;\n}\n\nexport type ConfidentialFolderData = CouponCardData;\n\nexport interface ConfidentialFolderProps\n  extends React.HTMLAttributes<HTMLDivElement> {\n  /** Structured data object or array for all ticket, voucher, and card fields. */\n  data?: CouponCardData | CouponCardData[];\n  folderColor?: string;\n  interactionMode?: ConfidentialFolderInteractionMode;\n  mode?: ConfidentialFolderInteractionMode;\n  variant?: ConfidentialFolderInteractionMode;\n  cardDesign?: ConfidentialFolderCardDesign;\n  cardType?: ConfidentialFolderCardDesign;\n  designVariant?: ConfidentialFolderCardDesign;\n  sleeveTitle?: string;\n  sleeveSubtitle?: string;\n  // Train Ticket Specific Props (Matching Exact User Reference)\n  passengerName?: string;\n  routeText?: string;\n  date?: string;\n  departureTime?: string;\n  seatNumber?: string;\n  trainNumber?: string;\n  trainCompany?: string;\n  slogan?: string;\n  barcodeNumber?: string;\n  websiteUrl?: string;\n  ticketTitle?: string;\n  // Boarding Pass Specific Props\n  flightNumber?: string;\n  gate?: string;\n  boardingTime?: string;\n  cabinClass?: string;\n  origin?: string;\n  destination?: string;\n  flightRoute?: string;\n  eticketNumber?: string;\n  airlineCompany?: string;\n  // Keycard Specific Props\n  holderName?: string;\n  accessId?: string;\n  roleTitle?: string;\n  department?: string;\n  authLevel?: string;\n  expiryDate?: string;\n  chipSerial?: string;\n  securityKey?: string;\n  hashSignature?: string;\n  // Face 1: Front Cover / Voucher Pass (General & Classified)\n  frontBadge?: string;\n  frontSerial?: string;\n  frontTitle?: string;\n  frontSubtitle?: string;\n  frontStamp?: string;\n  stampSuffix?: string;\n  barcodeText?: string;\n  clearanceLevel?: string;\n  // Face 2: Back Details / Manifesto (General & Classified)\n  cardCategory?: string;\n  cardDate?: string;\n  cardTitle?: string;\n  cardSubtitle?: string;\n  statement?: string;\n  highlightQuote?: string;\n  authorText?: string;\n  metrics?: CouponMetric[];\n  metric1Label?: string;\n  metric1Value?: string;\n  metric2Label?: string;\n  metric2Value?: string;\n  metric3Label?: string;\n  metric3Value?: string;\n  // Positioning & Motion\n  initialPeek?: number;\n  hoverPeek?: number;\n  // Fallbacks\n  cardBadge?: string;\n  cardVersion?: string;\n  pillar1Title?: string;\n  pillar1Desc?: string;\n  pillar2Title?: string;\n  pillar2Desc?: string;\n  quote?: string;\n  quoteAuthor?: string;\n  statusText?: string;\n  sessionLabel?: string;\n  sessionNumber?: string;\n  subquote?: string;\n  // Visual Options\n  centerIcon?: React.ReactNode;\n  cardVariant?: \"adaptive\" | \"ivory\";\n  defaultOpen?: boolean;\n  onOpenChange?: (open: boolean) => void;\n  sleeveClassName?: string;\n  cardClassName?: string;\n}\n\nexport function ConfidentialFolder({\n  data,\n  folderColor,\n  interactionMode = \"step-flip\",\n  mode,\n  variant,\n  cardDesign = \"classified\",\n  cardType,\n  designVariant,\n  centerIcon,\n  sleeveTitle,\n  sleeveSubtitle,\n  // Keycard Specific Defaults\n  holderName = \"Kaelen Vance\",\n  accessId = \"SEC-8940-QUANTUM\",\n  roleTitle = \"SECURITY ARCHITECT\",\n  department = \"QUANTUM PROTOCOL CORE\",\n  authLevel = \"LEVEL 09\",\n  expiryDate = \"10/2030\",\n  chipSerial = \"RFID // 13.56 MHz\",\n  securityKey = \"KEY // 892-ALPHA\",\n  hashSignature = \"SHA-512 : 9f8a42e7b9104c8f2a6e...c27e80\",\n  // Train Ticket Reference Defaults (1:1 with Reference Image)\n  passengerName = \"Barbara M. Sandoval\",\n  routeText = \"ZÜRICH HB - PARIS-EST\",\n  date = \"25/11/2024\",\n  departureTime = \"06.30\",\n  seatNumber = \"18A\",\n  trainNumber = \"6\",\n  trainCompany = \"HYPERBOLT EXPRESS\",\n  slogan = \"UNLEASH THE POWER OF SPEED WITH HYPERBOLT EXPRESS\",\n  barcodeNumber = \"0 734664 235788\",\n  websiteUrl = \"HYPERBOLTEXPRESS.COM\",\n  ticketTitle = \"TRAIN ONLINE TICKET\",\n  // Boarding Pass Specific Defaults\n  flightNumber,\n  gate,\n  boardingTime,\n  cabinClass,\n  origin,\n  destination,\n  flightRoute,\n  eticketNumber,\n  airlineCompany,\n  // Classified Defaults\n  frontBadge,\n  frontSerial,\n  frontTitle,\n  frontSubtitle,\n  frontStamp,\n  stampSuffix,\n  barcodeText,\n  clearanceLevel,\n  cardCategory,\n  cardDate,\n  cardTitle,\n  cardSubtitle,\n  statement,\n  highlightQuote,\n  authorText,\n  metrics,\n  metric1Label,\n  metric1Value,\n  metric2Label,\n  metric2Value,\n  metric3Label,\n  metric3Value,\n  initialPeek = 38,\n  hoverPeek = 88,\n  cardBadge,\n  cardVersion,\n  pillar1Title,\n  pillar1Desc,\n  pillar2Title,\n  pillar2Desc,\n  quote,\n  quoteAuthor,\n  statusText,\n  sessionLabel,\n  sessionNumber,\n  subquote,\n  cardVariant = \"adaptive\",\n  defaultOpen = false,\n  onOpenChange,\n  className,\n  sleeveClassName,\n  cardClassName,\n  ...props\n}: ConfidentialFolderProps) {\n  const activeMode: ConfidentialFolderInteractionMode =\n    mode ?? variant ?? interactionMode ?? \"auto-flip\";\n\n  const activeDesign: ConfidentialFolderCardDesign =\n    cardType ?? designVariant ?? cardDesign ?? \"classified\";\n\n  const isTrainTicket = activeDesign === \"train-ticket\";\n  const isBoardingPass = activeDesign === \"boarding-pass\";\n  const isKeycard =\n    activeDesign === \"smart-card\" ||\n    activeDesign === \"keycard\" ||\n    activeDesign === \"cyber-card\" ||\n    activeDesign === \"vip-card\" ||\n    activeDesign === \"black-card\";\n\n  const [isOpen, setIsOpen] = useState(defaultOpen);\n  const [isHovered, setIsHovered] = useState(false);\n\n  const [animStage, setAnimStage] = useState<\n    | \"inside\"\n    | \"sliding-out\"\n    | \"sliding-in-top\"\n    | \"resting-top-front\"\n    | \"flipping-open\"\n    | \"resting-top\"\n    | \"flipping-close\"\n    | \"sliding-out-top\"\n    | \"sliding-in-back\"\n  >(\n    defaultOpen\n      ? activeMode === \"step-flip\"\n        ? \"resting-top-front\"\n        : \"resting-top\"\n      : \"inside\"\n  );\n\n  const [cardZIndex, setCardZIndex] = useState(defaultOpen ? 30 : 10);\n  const isTransitioningRef = useRef(false);\n\n  const handleToggle = () => {\n    if (isTransitioningRef.current) return;\n    isTransitioningRef.current = true;\n\n    if (activeMode === \"step-flip\") {\n      if (animStage === \"inside\") {\n        setAnimStage(\"sliding-out\");\n        setTimeout(() => {\n          setCardZIndex(30);\n          setTimeout(() => {\n            setAnimStage(\"sliding-in-top\");\n            setTimeout(() => {\n              setAnimStage(\"resting-top-front\");\n              setIsOpen(true);\n              onOpenChange?.(true);\n              isTransitioningRef.current = false;\n            }, 500);\n          }, 40);\n        }, 380);\n      } else if (animStage === \"resting-top-front\") {\n        setAnimStage(\"flipping-open\");\n        setTimeout(() => {\n          setAnimStage(\"resting-top\");\n          isTransitioningRef.current = false;\n        }, 580);\n      } else if (animStage === \"resting-top\") {\n        setAnimStage(\"flipping-close\");\n        setTimeout(() => {\n          setAnimStage(\"sliding-out-top\");\n          setTimeout(() => {\n            setCardZIndex(10);\n            setTimeout(() => {\n              setAnimStage(\"sliding-in-back\");\n              setTimeout(() => {\n                setAnimStage(\"inside\");\n                setIsOpen(false);\n                onOpenChange?.(false);\n                isTransitioningRef.current = false;\n              }, 450);\n            }, 40);\n          }, 380);\n        }, 540);\n      } else {\n        isTransitioningRef.current = false;\n      }\n    } else {\n      if (!isOpen || animStage === \"inside\") {\n        setAnimStage(\"sliding-out\");\n        setTimeout(() => {\n          setCardZIndex(30);\n          setTimeout(() => {\n            setAnimStage(\"sliding-in-top\");\n            setTimeout(() => {\n              setAnimStage(\"flipping-open\");\n              setTimeout(() => {\n                setAnimStage(\"resting-top\");\n                setIsOpen(true);\n                onOpenChange?.(true);\n                isTransitioningRef.current = false;\n              }, 580);\n            }, 500);\n          }, 40);\n        }, 380);\n      } else {\n        setAnimStage(\"flipping-close\");\n        setTimeout(() => {\n          setAnimStage(\"sliding-out-top\");\n          setTimeout(() => {\n            setCardZIndex(10);\n            setTimeout(() => {\n              setAnimStage(\"sliding-in-back\");\n              setTimeout(() => {\n                setAnimStage(\"inside\");\n                setIsOpen(false);\n                onOpenChange?.(false);\n                isTransitioningRef.current = false;\n              }, 450);\n            }, 40);\n          }, 380);\n        }, 540);\n      }\n    }\n  };\n\n  const handleKeyDown = (e: React.KeyboardEvent) => {\n    if (e.key === \"Enter\" || e.key === \" \") {\n      e.preventDefault();\n      handleToggle();\n    } else if (e.key === \"Escape\" && isOpen) {\n      e.preventDefault();\n      handleToggle();\n    }\n  };\n\n  const isSleeveShifted = animStage === \"sliding-out\" || animStage === \"sliding-out-top\";\n\n  let cardTransform = \"translate3d(var(--cf-initial-peek, 14px), 0px, 0px) rotateY(0deg)\";\n  let cardTransition = \"transform 0.4s cubic-bezier(0.22, 1, 0.36, 1)\";\n\n  if (animStage === \"inside\") {\n    cardTransform = isHovered\n      ? \"translate3d(var(--cf-hover-peek, 30px), 0px, 0px) rotateY(0deg)\"\n      : \"translate3d(var(--cf-initial-peek, 14px), 0px, 0px) rotateY(0deg)\";\n    cardTransition = \"transform 0.3s cubic-bezier(0.16, 1, 0.3, 1)\";\n  } else if (animStage === \"sliding-out\") {\n    cardTransform = \"translate3d(calc(100% + 12px), 0px, 0px) rotateY(0deg)\";\n    cardTransition = \"transform 0.38s cubic-bezier(0.25, 1, 0.5, 1)\";\n  } else if (animStage === \"sliding-in-top\" || animStage === \"resting-top-front\") {\n    cardTransform = \"translate3d(0px, 0px, 0px) rotate(-2.5deg) rotateY(0deg)\";\n    cardTransition =\n      animStage === \"sliding-in-top\"\n        ? \"transform 0.48s cubic-bezier(0.16, 1, 0.3, 1)\"\n        : \"transform 0.25s ease-out\";\n  } else if (animStage === \"flipping-open\" || animStage === \"resting-top\") {\n    cardTransform = \"translate3d(0px, 0px, 0px) rotate(-2.5deg) rotateY(180deg)\";\n    cardTransition =\n      animStage === \"flipping-open\"\n        ? \"transform 0.58s cubic-bezier(0.4, 0, 0.2, 1)\"\n        : \"transform 0.25s ease-out\";\n  } else if (animStage === \"flipping-close\") {\n    cardTransform = \"translate3d(0px, 0px, 0px) rotate(-2.5deg) rotateY(0deg)\";\n    cardTransition = \"transform 0.52s cubic-bezier(0.4, 0, 0.2, 1)\";\n  } else if (animStage === \"sliding-out-top\") {\n    cardTransform = \"translate3d(calc(100% + 12px), 0px, 0px) rotateY(0deg)\";\n    cardTransition = \"transform 0.38s cubic-bezier(0.25, 1, 0.5, 1)\";\n  } else if (animStage === \"sliding-in-back\") {\n    cardTransform = isHovered\n      ? \"translate3d(var(--cf-hover-peek, 30px), 0px, 0px) rotateY(0deg)\"\n      : \"translate3d(var(--cf-initial-peek, 14px), 0px, 0px) rotateY(0deg)\";\n    cardTransition = \"transform 0.44s cubic-bezier(0.16, 1, 0.3, 1)\";\n  }\n\n  const isAdaptive = cardVariant === \"adaptive\";\n\n  const activeData = Array.isArray(data) ? data[0] : data;\n\n  // Smart Card / Biometric Access Card Specific Resolved Variables\n  const resolvedHolderName =\n    activeData?.holderName ??\n    holderName ??\n    \"Dr. Kaelen Vance\";\n  const resolvedRoleTitle =\n    activeData?.roleTitle ??\n    roleTitle ??\n    \"CHIEF ARCHITECT\";\n  const resolvedDepartment =\n    activeData?.department ??\n    department ??\n    \"QUANTUM PROTOCOL LABS\";\n  const resolvedAuthLevel =\n    activeData?.authLevel ??\n    authLevel ??\n    \"LEVEL 09 // OMNI\";\n  const resolvedAccessId =\n    activeData?.accessId ??\n    accessId ??\n    \"SEC-8940-QUANTUM\";\n  const resolvedExpiryDate =\n    activeData?.expiryDate ??\n    expiryDate ??\n    \"10/2030\";\n  const resolvedChipSerial =\n    activeData?.chipSerial ??\n    chipSerial ??\n    \"RFID // 13.56 MHz\";\n  const resolvedSecurityKey =\n    activeData?.securityKey ??\n    securityKey ??\n    \"KEY-892-ALPHA\";\n  const resolvedHashSignature =\n    activeData?.hashSignature ??\n    hashSignature ??\n    \"SHA-512 : 9f8a42e7b9104c8f2a6e...c27e80\";\n\n  const resolvedPassengerName =\n    activeData?.passengerName ??\n    passengerName ??\n    (isBoardingPass ? \"Alexander V. Wright\" : \"Barbara M. Sandoval\");\n  const resolvedRouteText = activeData?.routeText ?? routeText;\n  const resolvedFlightRoute =\n    activeData?.flightRoute ??\n    activeData?.routeText ??\n    (isBoardingPass ? \"JFK ➔ LHR\" : routeText);\n  const resolvedDate = activeData?.date ?? date;\n  const resolvedDepartureTime = activeData?.departureTime ?? departureTime;\n  const resolvedBoardingTime =\n    activeData?.boardingTime ?? activeData?.departureTime ?? (isBoardingPass ? \"10:45 AM\" : departureTime);\n  const resolvedSeatNumber =\n    activeData?.seatNumber ?? seatNumber ?? (isBoardingPass ? \"02K\" : \"18A\");\n  const resolvedTrainNumber = activeData?.trainNumber ?? trainNumber;\n  const resolvedFlightNumber =\n    activeData?.flightNumber ?? activeData?.trainNumber ?? (isBoardingPass ? \"SA-892\" : \"6\");\n  const resolvedGate = activeData?.gate ?? (isBoardingPass ? \"G-14\" : \"1\");\n  const resolvedCabinClass = activeData?.cabinClass ?? \"FIRST CLASS\";\n  const resolvedTrainCompany = activeData?.trainCompany ?? trainCompany;\n  const resolvedAirlineCompany =\n    activeData?.airlineCompany ?? activeData?.trainCompany ?? \"SKYLINE AIRWAYS\";\n  const resolvedSlogan =\n    activeData?.slogan ??\n    slogan ??\n    (isBoardingPass\n      ? \"THE ART OF LUXURY SKY TRAVEL • WORLDWIDE ALLIANCE\"\n      : \"UNLEASH THE POWER OF SPEED WITH HYPERBOLT EXPRESS\");\n  const resolvedBarcodeNumber =\n    activeData?.barcodeNumber ?? barcodeNumber ?? \"0 734664 235788\";\n  const resolvedWebsiteUrl =\n    activeData?.websiteUrl ?? websiteUrl ?? (isBoardingPass ? \"SKYLINEAIRWAYS.COM\" : \"HYPERBOLTEXPRESS.COM\");\n  const resolvedTicketTitle =\n    activeData?.ticketTitle ??\n    ticketTitle ??\n    (isBoardingPass ? \"AIRLINE BOARDING PASS\" : \"TRAIN ONLINE TICKET\");\n\n  const resolvedInitialPeek = activeData?.initialPeek ?? initialPeek;\n  const resolvedHoverPeek = activeData?.hoverPeek ?? hoverPeek;\n\n  // Resolved Sleeve Text\n  const resolvedSleeveTitle =\n    activeData?.sleeveTitle ??\n    sleeveTitle ??\n    (isKeycard\n      ? \"Quantum Key Vault\"\n      : isBoardingPass\n      ? \"Boarding Pass Wallet\"\n      : isTrainTicket\n      ? \"Hyperbolt Express\"\n      : \"Designed to endure\");\n  const resolvedSleeveSubtitle =\n    activeData?.sleeveSubtitle ??\n    sleeveSubtitle ??\n    (isKeycard\n      ? \"Biometric Smartcard & Encrypted NFC Protocol\"\n      : isBoardingPass\n      ? \"First Class Priority Boarding • Gate G-14\"\n      : isTrainTicket\n      ? \"High-speed European rail transit pass.\"\n      : \"Crafted for those who value timeless clarity.\");\n\n  // Classified Mode Labels\n  const fBadge =\n    activeData?.frontBadge ??\n    frontBadge ??\n    activeData?.cardBadge ??\n    cardBadge ??\n    activeData?.sessionLabel ??\n    sessionLabel ??\n    \"SPECIAL OFFER\";\n  const fSerial =\n    activeData?.frontSerial ??\n    frontSerial ??\n    activeData?.cardVersion ??\n    cardVersion ??\n    activeData?.sessionNumber ??\n    sessionNumber ??\n    \"VOUCHER // 2026-X\";\n  const fTitle =\n    activeData?.frontTitle ??\n    frontTitle ??\n    activeData?.cardTitle ??\n    cardTitle ??\n    \"Exclusive Access\";\n  const fSubtitle =\n    activeData?.frontSubtitle ??\n    frontSubtitle ??\n    activeData?.cardSubtitle ??\n    cardSubtitle ??\n    \"Limited edition membership and premium reward voucher.\";\n  const fStamp = activeData?.frontStamp ?? frontStamp ?? \"VERIFIED\";\n  const fStampSuffix = activeData?.stampSuffix ?? stampSuffix ?? \"// VIP PASS\";\n  const fBarcode =\n    activeData?.barcodeText ?? barcodeText ?? \"COUPON // APEX-07-CORE\";\n  const fStatus =\n    activeData?.clearanceLevel ??\n    clearanceLevel ??\n    activeData?.statusText ??\n    statusText ??\n    \"REWARD STATUS: ACTIVE\";\n\n  const bCategory =\n    activeData?.cardCategory ??\n    cardCategory ??\n    activeData?.cardBadge ??\n    cardBadge ??\n    activeData?.sessionLabel ??\n    sessionLabel ??\n    \"COUPON VOUCHER\";\n  const bDate =\n    activeData?.cardDate ??\n    cardDate ??\n    activeData?.cardVersion ??\n    cardVersion ??\n    activeData?.sessionNumber ??\n    sessionNumber ??\n    \"VALID // 2026\";\n  const bTitle =\n    activeData?.cardTitle ??\n    cardTitle ??\n    activeData?.frontTitle ??\n    frontTitle ??\n    \"The Art of Craft\";\n  const bSubtitle =\n    activeData?.cardSubtitle ??\n    cardSubtitle ??\n    activeData?.frontSubtitle ??\n    frontSubtitle ??\n    \"Foundational reward tier for premium members.\";\n  const bStatement =\n    activeData?.statement ??\n    statement ??\n    activeData?.quote ??\n    quote ??\n    \"Redeem this exclusive voucher across any tier. Every detail is crafted with perfection to bring maximum value to your workflow.\";\n  const bHighlight =\n    activeData?.highlightQuote ??\n    highlightQuote ??\n    activeData?.subquote ??\n    subquote ??\n    \"Unlock 50% off on all annual pro plans.\";\n  const bAuthor =\n    activeData?.authorText ??\n    authorText ??\n    activeData?.quoteAuthor ??\n    quoteAuthor ??\n    \"PRO MEMBERSHIP\";\n  const m1L =\n    activeData?.metrics?.[0]?.label ??\n    activeData?.metric1Label ??\n    metric1Label ??\n    pillar1Title ??\n    \"DISCOUNT\";\n  const m1V =\n    activeData?.metrics?.[0]?.value ??\n    activeData?.metric1Value ??\n    metric1Value ??\n    pillar1Desc ??\n    \"50% OFF\";\n  const m2L =\n    activeData?.metrics?.[1]?.label ??\n    activeData?.metric2Label ??\n    metric2Label ??\n    pillar2Title ??\n    \"TIER\";\n  const m2V =\n    activeData?.metrics?.[1]?.value ??\n    activeData?.metric2Value ??\n    metric2Value ??\n    pillar2Desc ??\n    \"VIP Elite\";\n  const m3L =\n    activeData?.metrics?.[2]?.label ??\n    activeData?.metric3Label ??\n    metric3Label ??\n    \"STATUS\";\n  const m3V =\n    activeData?.metrics?.[2]?.value ??\n    activeData?.metric3Value ??\n    metric3Value ??\n    \"Active\";\n\n  return (\n    <div\n      className={cn(\n        \"relative flex items-center justify-center p-2 sm:p-8 select-none cf-theme-scope overflow-visible\",\n        className\n      )}\n      style={{\n        ...(folderColor ? ({ \"--cf-override\": folderColor } as React.CSSProperties) : {}),\n        ...props.style,\n      }}\n      {...props}\n    >\n      <style>{`\n        .cf-theme-scope {\n          --cf-sleeve-shift: -42%;\n          --cf-initial-peek: ${Math.round(resolvedInitialPeek * 0.35)}px;\n          --cf-hover-peek: ${Math.round(resolvedHoverPeek * 0.35)}px;\n          --cf-base: var(--cf-override, var(--primary, #0284c7));\n          --cf-flap: ${isBoardingPass || isTrainTicket ? \"oklch(from var(--cf-base) 0.93 calc(c * 0.25) h)\" : \"oklch(from var(--cf-base) 0.88 calc(c * 0.4) h)\"};\n          --cf-plate: ${isBoardingPass || isTrainTicket ? \"oklch(from var(--cf-base) 0.82 calc(c * 0.35) h)\" : \"oklch(from var(--cf-base) 0.80 calc(c * 0.5) h)\"};\n          --cf-ink: ${isBoardingPass || isTrainTicket ? \"oklch(from var(--cf-base) 0.15 calc(c * 0.6) h)\" : \"oklch(from var(--cf-base) 0.22 calc(c * 0.5) h)\"};\n          --cf-ink-muted: ${isBoardingPass || isTrainTicket ? \"oklch(from var(--cf-base) 0.35 calc(c * 0.35) h)\" : \"oklch(from var(--cf-base) 0.45 calc(c * 0.35) h)\"};\n          --cf-spiro: \"oklch(from var(--cf-base) 0.38 calc(c * 0.5) h / 0.75)\";\n          --cf-stroke-flap: ${isBoardingPass || isTrainTicket ? \"oklch(from var(--cf-base) 0.68 calc(c * 0.3) h / 0.5)\" : \"oklch(from var(--cf-base) 0.68 calc(c * 0.3) h / 0.5)\"};\n          --cf-stroke-plate: ${isBoardingPass || isTrainTicket ? \"oklch(from var(--cf-base) 0.60 calc(c * 0.3) h / 0.4)\" : \"oklch(from var(--cf-base) 0.60 calc(c * 0.3) h / 0.4)\"};\n          --cf-card-bg: var(--card, #ffffff);\n          --cf-card-border: var(--border, rgba(0, 0, 0, 0.12));\n          --cf-card-text: var(--foreground, #0f172a);\n          --cf-card-subtext: var(--muted-foreground, #64748b);\n          --cf-divider: var(--border, rgba(0, 0, 0, 0.12));\n        }\n        @media (min-width: 640px) {\n          .cf-theme-scope {\n            --cf-sleeve-shift: 0px;\n            --cf-initial-peek: ${resolvedInitialPeek}px;\n            --cf-hover-peek: ${resolvedHoverPeek}px;\n          }\n        }\n        :is(.dark, .dark *) .cf-theme-scope,\n        .cf-theme-scope:is(.dark, .dark *) {\n          --cf-flap: ${isBoardingPass || isTrainTicket ? \"oklch(from var(--cf-base) 0.22 calc(c * 0.35) h)\" : \"oklch(from var(--cf-base) 0.22 calc(c * 0.35) h)\"};\n          --cf-plate: ${isBoardingPass || isTrainTicket ? \"oklch(from var(--cf-base) 0.15 calc(c * 0.25) h)\" : \"oklch(from var(--cf-base) 0.15 calc(c * 0.25) h)\"};\n          --cf-ink: \"#ffffff\";\n          --cf-ink-muted: \"oklch(from var(--cf-base) 0.82 calc(c * 0.12) h)\";\n          --cf-spiro: \"oklch(from var(--cf-base) 0.85 calc(c * 0.35) h / 0.85)\";\n          --cf-stroke-flap: \"rgba(255, 255, 255, 0.16)\";\n          --cf-stroke-plate: \"rgba(255, 255, 255, 0.08)\";\n          --cf-card-bg: var(--card, oklch(from var(--cf-base) 0.16 calc(c * 0.15) h));\n          --cf-card-border: var(--border, rgba(255, 255, 255, 0.12));\n          --cf-card-text: #ffffff;\n          --cf-card-subtext: oklch(from var(--cf-base) 0.80 calc(c * 0.08) h);\n          --cf-divider: rgba(255, 255, 255, 0.12);\n        }\n      `}</style>\n\n      {/* Interactive Sleeve Wrapper with Global Border Radius */}\n      <div\n        role=\"button\"\n        tabIndex={0}\n        aria-expanded={isOpen}\n        aria-label={`${resolvedSleeveTitle} coupon card. Click to ${isOpen ? \"close\" : \"open\"}`}\n        onKeyDown={handleKeyDown}\n        onClick={handleToggle}\n        onMouseEnter={() => setIsHovered(true)}\n        onMouseLeave={() => setIsHovered(false)}\n        style={{\n          perspective: 1200,\n          transform: isSleeveShifted ? \"translateX(var(--cf-sleeve-shift, 0px))\" : \"translateX(0px)\",\n          transition: \"transform 0.4s cubic-bezier(0.16, 1, 0.3, 1)\",\n          borderRadius: \"var(--radius, 1.25rem)\",\n        }}\n        className={cn(\n          \"relative w-[160px] min-[400px]:w-[185px] sm:w-[360px] h-[215px] min-[400px]:h-[247px] sm:h-[480px] cursor-pointer outline-none select-none shadow-[0_0_15px_rgba(0,0,0,0.05)] dark:shadow-[0_0_20px_rgba(0,0,0,0.35)]\",\n          \"focus-visible:ring-2 focus-visible:ring-primary/60 focus-visible:ring-offset-4 focus-visible:ring-offset-background\",\n          sleeveClassName\n        )}\n      >\n        {/* ============================================================== */}\n        {/* LAYER 1: BACK PLATE (Folder Sleeve Backing)                     */}\n        {/* ============================================================== */}\n        <div\n          className=\"absolute inset-0 pointer-events-none border transition-colors duration-300\"\n          style={{\n            borderRadius: \"var(--radius, 1.25rem)\",\n            backgroundColor: \"var(--cf-plate)\",\n            borderColor: \"var(--cf-stroke-plate)\",\n          }}\n        />\n\n        {/* ============================================================== */}\n        {/* LAYER 2: THE CARD (Dual-Sided 3D Flipping Ticket)              */}\n        {/* ============================================================== */}\n        <div\n          style={{\n            zIndex: cardZIndex,\n            transform: cardTransform,\n            transition: cardTransition,\n            transformStyle: \"preserve-3d\",\n            borderRadius: \"calc(var(--radius, 1.25rem) - 2px)\",\n          }}\n          className={cn(\n            \"absolute inset-x-1.5 min-[400px]:inset-x-2 sm:inset-x-3.5 top-1 min-[400px]:top-1.5 sm:top-5 bottom-1 min-[400px]:bottom-1.5 sm:bottom-5\",\n            \"pointer-events-auto\",\n            cardClassName\n          )}\n        >\n          {/* ============================================================ */}\n          {/* FACE 1: FRONT FACE OF TICKET (Left side in user's image)     */}\n          {/* ============================================================ */}\n          <div\n            style={{\n              backfaceVisibility: \"hidden\",\n              WebkitBackfaceVisibility: \"hidden\",\n              borderRadius: \"calc(var(--radius, 1.25rem) - 2px)\",\n              color: isAdaptive ? \"var(--cf-card-text)\" : \"#0f172a\",\n            }}\n            className={cn(\n              \"absolute inset-0 shadow-[0_0_14px_rgba(0,0,0,0.07)] dark:shadow-[0_0_16px_rgba(0,0,0,0.35)] flex flex-col justify-between select-none transition-colors duration-300\",\n              isTrainTicket || isBoardingPass ? \"p-0 bg-transparent border-0\" : isKeycard ? \"p-0 bg-card border border-border\" : \"p-2 min-[400px]:p-2.5 sm:p-5 border bg-card border-border\"\n            )}\n          >\n            {isKeycard ? (\n              /* -------------------------------------------------------- */\n              /* MODERN BIOMETRIC NFC SMARTCARD (FRONT FACE)              */\n              /* -------------------------------------------------------- */\n              <div className=\"relative w-full h-full flex flex-col justify-between text-foreground select-none overflow-hidden rounded-[calc(var(--radius,1.25rem)-2px)] bg-card border border-border p-3 min-[400px]:p-4 sm:p-6 shadow-md transition-colors duration-300\">\n                {/* Corner Tech Brackets */}\n                <div className=\"absolute top-2 left-2 w-2.5 h-2.5 border-t-2 border-l-2 border-primary/60 pointer-events-none\" />\n                <div className=\"absolute top-2 right-2 w-2.5 h-2.5 border-t-2 border-r-2 border-primary/60 pointer-events-none\" />\n                <div className=\"absolute bottom-2 left-2 w-2.5 h-2.5 border-b-2 border-l-2 border-primary/60 pointer-events-none\" />\n                <div className=\"absolute bottom-2 right-2 w-2.5 h-2.5 border-b-2 border-r-2 border-primary/60 pointer-events-none\" />\n\n                {/* Subtle Cyber Circuit Background */}\n                <CyberCircuitWatermark className=\"absolute inset-0 w-full h-full object-cover opacity-15 text-primary pointer-events-none\" />\n\n                {/* Top Header: Contactless & Active Level */}\n                <div className=\"relative z-10 flex items-center justify-between\">\n                  <div className=\"flex items-center gap-1.5 sm:gap-2\">\n                    <NfcContactlessGlyph className=\"w-3.5 h-3.5 sm:w-5 sm:h-5 text-primary\" />\n                    <span className=\"font-mono font-bold text-[5.5px] min-[400px]:text-[7px] sm:text-[11px] tracking-[0.18em] uppercase text-foreground\">\n                      NFC SMART ID\n                    </span>\n                  </div>\n                  <div className=\"flex items-center gap-1 px-1.5 sm:px-2.5 py-0.5 rounded-full bg-emerald-500/10 dark:bg-emerald-500/20 border border-emerald-500/30 text-emerald-600 dark:text-emerald-400 font-mono font-bold text-[4.5px] min-[400px]:text-[5.5px] sm:text-[8.5px] uppercase tracking-wider\">\n                    <span className=\"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse\" />\n                    <span>{resolvedAuthLevel}</span>\n                  </div>\n                </div>\n\n                {/* Mid Section: EMV Microchip & Access ID */}\n                <div className=\"relative z-10 flex items-center justify-between my-auto py-1 sm:py-2\">\n                  <SmartChipGlyph className=\"w-9 h-7 min-[400px]:w-11 min-[400px]:h-8 sm:w-16 sm:h-12 shadow-sm\" />\n                  <div className=\"flex flex-col items-end text-right\">\n                    <span className=\"font-mono text-[4px] min-[400px]:text-[5px] sm:text-[7.5px] text-muted-foreground uppercase tracking-widest\">\n                      SEC PROTOCOL\n                    </span>\n                    <span className=\"font-mono font-bold text-[6.5px] min-[400px]:text-[8px] sm:text-[13px] text-primary tracking-wider\">\n                      {resolvedAccessId}\n                    </span>\n                  </div>\n                </div>\n\n                {/* Authorized Identity & Role */}\n                <div className=\"relative z-10 my-0.5 sm:my-1 flex flex-col space-y-0.5 sm:space-y-1\">\n                  <span className=\"font-mono text-[4px] min-[400px]:text-[5px] sm:text-[7.5px] font-bold text-muted-foreground uppercase tracking-wider\">\n                    AUTHORIZED IDENTITY\n                  </span>\n                  <h3 className=\"font-sans font-black text-[9px] min-[400px]:text-[11px] sm:text-[18px] text-foreground tracking-tight uppercase leading-none\">\n                    {resolvedHolderName}\n                  </h3>\n                  <p className=\"font-mono text-[5px] min-[400px]:text-[6.5px] sm:text-[10px] font-semibold text-primary uppercase\">\n                    {resolvedRoleTitle} • {resolvedDepartment}\n                  </p>\n                </div>\n\n                {/* Bottom Row: Chip Serial, Expiry & ISO Standard */}\n                <div className=\"relative z-10 flex items-end justify-between pt-1 sm:pt-2 border-t border-border\">\n                  <div className=\"flex flex-col\">\n                    <span className=\"font-mono text-[3.5px] min-[400px]:text-[4.5px] sm:text-[7px] font-bold text-muted-foreground uppercase\">\n                      SECURITY CHIP\n                    </span>\n                    <span className=\"font-mono text-[4.5px] min-[400px]:text-[6px] sm:text-[9.5px] font-bold text-foreground\">\n                      {resolvedChipSerial}\n                    </span>\n                  </div>\n                  <div className=\"flex items-center gap-2 sm:gap-4 text-right\">\n                    <div>\n                      <span className=\"block font-mono text-[3.5px] min-[400px]:text-[4.5px] sm:text-[7px] font-bold text-muted-foreground uppercase\">\n                        VALID THRU\n                      </span>\n                      <span className=\"font-mono text-[5px] min-[400px]:text-[6.5px] sm:text-[10px] font-bold text-foreground\">\n                        {resolvedExpiryDate}\n                      </span>\n                    </div>\n                    <div>\n                      <span className=\"block font-mono text-[3.5px] min-[400px]:text-[4.5px] sm:text-[7px] font-bold text-muted-foreground uppercase\">\n                        STANDARD\n                      </span>\n                      <span className=\"font-mono text-[5px] min-[400px]:text-[6.5px] sm:text-[10px] font-bold text-primary\">\n                        ISO-7816\n                      </span>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            ) : isBoardingPass ? (\n              /* -------------------------------------------------------- */\n              /* AIRLINE BOARDING PASS (FRONT FACE)                       */\n              /* -------------------------------------------------------- */\n              <div className=\"relative w-full h-full flex flex-col justify-between text-foreground select-none\">\n                {/* Vector Card Shell with Inward Curved Notch Cutouts */}\n                <svg\n                  viewBox=\"0 0 340 440\"\n                  preserveAspectRatio=\"none\"\n                  className=\"absolute inset-0 w-full h-full pointer-events-none z-0 overflow-visible text-border/80\"\n                  xmlns=\"http://www.w3.org/2000/svg\"\n                >\n                  <path\n                    d=\"M 16 0 L 324 0 A 16 16 0 0 1 340 16 L 340 266 A 14 14 0 0 0 340 294 L 340 424 A 16 16 0 0 1 324 440 L 16 440 A 16 16 0 0 1 0 424 L 0 294 A 14 14 0 0 0 0 266 L 0 16 A 16 16 0 0 1 16 0 Z\"\n                    className=\"fill-card transition-colors duration-300\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"1.2\"\n                    vectorEffect=\"non-scaling-stroke\"\n                  />\n                </svg>\n\n                {/* Card Content */}\n                <div className=\"relative z-10 w-full h-full flex flex-col justify-between\">\n                  {/* Upper Section */}\n                  <div>\n                    {/* 1. Top Aviation Blue/Primary Pill Banner Tab */}\n                    <div className=\"w-full flex justify-center px-3 pt-1.5 sm:pt-3\">\n                      <div className=\"w-full sm:w-[94%] py-1 sm:py-2 px-2 rounded-b-xl sm:rounded-b-2xl bg-primary text-primary-foreground text-center font-sans font-black tracking-widest text-[7px] min-[400px]:text-[8.5px] sm:text-[14px] uppercase shadow-xs transition-colors duration-300\">\n                        ✈ {resolvedTicketTitle}\n                      </div>\n                    </div>\n\n                    {/* 2. Upper Passenger & Flight Details Grid */}\n                    <div className=\"px-3 min-[400px]:px-4 sm:px-6 py-1 sm:py-2 flex items-center justify-between\">\n                      <div className=\"flex flex-col text-left space-y-1 sm:space-y-2\">\n                        {/* Passenger Name & Class */}\n                        <div>\n                          <div className=\"flex items-center gap-1 sm:gap-2\">\n                            <span className=\"block font-sans text-[4.5px] min-[400px]:text-[5.5px] sm:text-[9px] font-bold text-muted-foreground uppercase tracking-wide\">\n                              PASSENGER NAME\n                            </span>\n                            <span className=\"font-mono text-[4px] min-[400px]:text-[5px] sm:text-[8px] font-bold text-primary uppercase px-1 rounded-xs bg-primary/10\">\n                              {resolvedCabinClass}\n                            </span>\n                          </div>\n                          <span className=\"block font-sans text-[6px] min-[400px]:text-[7.5px] sm:text-[13px] font-semibold text-foreground leading-tight\">\n                            {resolvedPassengerName}\n                          </span>\n                        </div>\n\n                        {/* Flight, Gate & Boarding Time */}\n                        <div className=\"flex items-center gap-2 sm:gap-6\">\n                          <div>\n                            <span className=\"block font-sans text-[4.5px] min-[400px]:text-[5.5px] sm:text-[8.5px] font-bold text-muted-foreground uppercase\">\n                              FLIGHT\n                            </span>\n                            <span className=\"block font-sans text-[5.5px] min-[400px]:text-[7px] sm:text-[11.5px] font-bold text-foreground\">\n                              {resolvedFlightNumber}\n                            </span>\n                          </div>\n                          <div>\n                            <span className=\"block font-sans text-[4.5px] min-[400px]:text-[5.5px] sm:text-[8.5px] font-bold text-muted-foreground uppercase\">\n                              GATE\n                            </span>\n                            <span className=\"block font-sans text-[5.5px] min-[400px]:text-[7px] sm:text-[11.5px] font-bold text-primary\">\n                              {resolvedGate}\n                            </span>\n                          </div>\n                          <div>\n                            <span className=\"block font-sans text-[4.5px] min-[400px]:text-[5.5px] sm:text-[8.5px] font-bold text-muted-foreground uppercase\">\n                              BOARDING\n                            </span>\n                            <span className=\"block font-sans text-[5.5px] min-[400px]:text-[7px] sm:text-[11.5px] font-medium text-foreground\">\n                              {resolvedBoardingTime}\n                            </span>\n                          </div>\n                        </div>\n\n                        {/* Seat & Date */}\n                        <div className=\"flex items-center gap-3 sm:gap-8\">\n                          <div>\n                            <span className=\"block font-sans text-[4.5px] min-[400px]:text-[5.5px] sm:text-[8.5px] font-bold text-muted-foreground uppercase\">\n                              SEAT\n                            </span>\n                            <span className=\"block font-sans text-[8px] min-[400px]:text-[10px] sm:text-[17px] font-black text-foreground leading-none mt-0.5\">\n                              {resolvedSeatNumber}\n                            </span>\n                          </div>\n                          <div>\n                            <span className=\"block font-sans text-[4.5px] min-[400px]:text-[5.5px] sm:text-[8.5px] font-bold text-muted-foreground uppercase\">\n                              DATE\n                            </span>\n                            <span className=\"block font-sans text-[5.5px] min-[400px]:text-[7px] sm:text-[11.5px] font-medium text-foreground mt-0.5\">\n                              {resolvedDate}\n                            </span>\n                          </div>\n                        </div>\n                      </div>\n\n                      {/* Vertical Barcode on Right */}\n                      <div className=\"shrink-0 pl-1\">\n                        <VerticalBarcode code={resolvedBarcodeNumber} />\n                      </div>\n                    </div>\n\n                    {/* 3. Middle Primary Route Banner with Airplane Watermark */}\n                    <div className=\"relative w-full bg-primary py-1 sm:py-2.5 px-3 flex items-center justify-center overflow-hidden transition-colors duration-300\">\n                      <AirplaneWatermark className=\"absolute inset-0 w-full h-full object-cover text-primary-foreground opacity-30\" />\n                      <span className=\"relative z-10 text-primary-foreground font-sans font-black tracking-wider text-[8px] min-[400px]:text-[10px] sm:text-[16px] uppercase truncate drop-shadow-xs\">\n                        {resolvedFlightRoute}\n                      </span>\n                    </div>\n                  </div>\n\n                  {/* Dotted Perforation Line */}\n                  <div className=\"relative w-full flex items-center justify-between px-3 sm:px-4 my-auto select-none\">\n                    <div className=\"w-full border-t-2 border-dotted border-border/80\" />\n                  </div>\n\n                  {/* 4. Bottom Tear-Off Stub (Lower Section) */}\n                  <div className=\"px-3 min-[400px]:px-4 sm:px-6 pb-2 pt-0.5 sm:pb-3.5 flex flex-col justify-between\">\n                    {/* Mini Primary banner */}\n                    <div className=\"w-full bg-primary text-primary-foreground text-center font-sans font-bold tracking-wider text-[5px] min-[400px]:text-[6.5px] sm:text-[10.5px] py-0.5 sm:py-1 rounded-sm uppercase mb-1 transition-colors duration-300\">\n                      ✦ {resolvedAirlineCompany} {\"//\"} PASSENGER STUB\n                    </div>\n\n                    <div className=\"flex items-center justify-between\">\n                      <div className=\"flex flex-col space-y-0.5 sm:space-y-1\">\n                        <div>\n                          <span className=\"block font-sans text-[4px] min-[400px]:text-[5px] sm:text-[7.5px] font-bold text-muted-foreground uppercase\">\n                            PASSENGER NAME\n                          </span>\n                          <span className=\"block font-sans text-[5px] min-[400px]:text-[6.5px] sm:text-[10.5px] font-semibold text-foreground\">\n                            {resolvedPassengerName}\n                          </span>\n                        </div>\n\n                        <div className=\"flex items-center gap-1.5 sm:gap-3 text-[4px] min-[400px]:text-[5px] sm:text-[8px] text-muted-foreground\">\n                          <div>\n                            <span className=\"font-bold text-foreground\">SEAT:</span> {resolvedSeatNumber}\n                          </div>\n                          <div>\n                            <span className=\"font-bold text-foreground\">GATE:</span> {resolvedGate}\n                          </div>\n                          <div>\n                            <span className=\"font-bold text-foreground\">FLIGHT:</span> {resolvedFlightNumber}\n                          </div>\n                        </div>\n\n                        {/* Solid Route Badge */}\n                        <div className=\"mt-0.5 sm:mt-1 bg-zinc-950 dark:bg-black text-white px-1 sm:px-2 py-0.5 rounded-sm font-sans font-bold text-[5px] min-[400px]:text-[6px] sm:text-[9.5px] tracking-wider uppercase inline-block\">\n                          {resolvedFlightRoute}\n                        </div>\n                      </div>\n\n                      {/* Mini Vertical Barcode */}\n                      <div className=\"shrink-0 pl-1\">\n                        <VerticalBarcode code={resolvedBarcodeNumber} className=\"scale-75 sm:scale-90 origin-right\" />\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            ) : isTrainTicket ? (\n              /* -------------------------------------------------------- */\n              /* EXACT 1:1 REPLICA OF LEFT TICKET (FRONT FACE)            */\n              /* -------------------------------------------------------- */\n              <div className=\"relative w-full h-full flex flex-col justify-between text-foreground select-none\">\n                {/* 100% Vector Card Shell with Inward Curved Notch Borders (All-Time Transparent Cutouts) */}\n                <svg\n                  viewBox=\"0 0 340 440\"\n                  preserveAspectRatio=\"none\"\n                  className=\"absolute inset-0 w-full h-full pointer-events-none z-0 overflow-visible text-border/80\"\n                  xmlns=\"http://www.w3.org/2000/svg\"\n                >\n                  <path\n                    d=\"M 16 0 L 324 0 A 16 16 0 0 1 340 16 L 340 266 A 14 14 0 0 0 340 294 L 340 424 A 16 16 0 0 1 324 440 L 16 440 A 16 16 0 0 1 0 424 L 0 294 A 14 14 0 0 0 0 266 L 0 16 A 16 16 0 0 1 16 0 Z\"\n                    className=\"fill-card transition-colors duration-300\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"1.2\"\n                    vectorEffect=\"non-scaling-stroke\"\n                  />\n                </svg>\n\n                {/* Card Content (Layered over the SVG Shell) */}\n                <div className=\"relative z-10 w-full h-full flex flex-col justify-between\">\n                  {/* Upper Section */}\n                  <div>\n                    {/* 1. Top Blue/Primary Pill Banner Tab */}\n                    <div className=\"w-full flex justify-center px-3 pt-1.5 sm:pt-3\">\n                      <div className=\"w-full sm:w-[94%] py-1 sm:py-2 px-2 rounded-b-xl sm:rounded-b-2xl bg-primary text-primary-foreground text-center font-sans font-black tracking-wider text-[7px] min-[400px]:text-[8.5px] sm:text-[14px] uppercase shadow-xs transition-colors duration-300\">\n                        {resolvedTicketTitle}\n                      </div>\n                    </div>\n\n                    {/* 2. Upper Passenger & Trip Info Grid */}\n                    <div className=\"px-3 min-[400px]:px-4 sm:px-6 py-1 sm:py-2 flex items-center justify-between\">\n                      <div className=\"flex flex-col text-left space-y-1 sm:space-y-2\">\n                        {/* Passenger Name */}\n                        <div>\n                          <span className=\"block font-sans text-[4.5px] min-[400px]:text-[5.5px] sm:text-[9px] font-bold text-muted-foreground uppercase tracking-wide\">\n                            PASSENGER NAME\n                          </span>\n                          <span className=\"block font-sans text-[6px] min-[400px]:text-[7.5px] sm:text-[13px] font-semibold text-foreground leading-tight\">\n                            {resolvedPassengerName}\n                          </span>\n                        </div>\n\n                        {/* Date & Departure */}\n                        <div className=\"flex items-center gap-2 sm:gap-6\">\n                          <div>\n                            <span className=\"block font-sans text-[4.5px] min-[400px]:text-[5.5px] sm:text-[8.5px] font-bold text-muted-foreground uppercase\">\n                              DATE\n                            </span>\n                            <span className=\"block font-sans text-[5.5px] min-[400px]:text-[7px] sm:text-[11.5px] font-medium text-foreground\">\n                              {resolvedDate}\n                            </span>\n                          </div>\n                          <div>\n                            <span className=\"block font-sans text-[4.5px] min-[400px]:text-[5.5px] sm:text-[8.5px] font-bold text-muted-foreground uppercase\">\n                              DEPARTURE\n                            </span>\n                            <span className=\"block font-sans text-[5.5px] min-[400px]:text-[7px] sm:text-[11.5px] font-medium text-foreground\">\n                              {resolvedDepartureTime}\n                            </span>\n                          </div>\n                        </div>\n\n                        {/* Seat & Train */}\n                        <div className=\"flex items-center gap-3 sm:gap-8\">\n                          <div>\n                            <span className=\"block font-sans text-[4.5px] min-[400px]:text-[5.5px] sm:text-[8.5px] font-bold text-muted-foreground uppercase\">\n                              SEAT\n                            </span>\n                            <span className=\"block font-sans text-[8px] min-[400px]:text-[10px] sm:text-[17px] font-black text-foreground leading-none mt-0.5\">\n                              {resolvedSeatNumber}\n                            </span>\n                          </div>\n                          <div>\n                            <span className=\"block font-sans text-[4.5px] min-[400px]:text-[5.5px] sm:text-[8.5px] font-bold text-muted-foreground uppercase\">\n                              TRAIN\n                            </span>\n                            <span className=\"block font-sans text-[8px] min-[400px]:text-[10px] sm:text-[17px] font-black text-foreground leading-none mt-0.5\">\n                              {resolvedTrainNumber}\n                            </span>\n                          </div>\n                        </div>\n                      </div>\n\n                      {/* Vertical Barcode on Right */}\n                      <div className=\"shrink-0 pl-1\">\n                        <VerticalBarcode code={resolvedBarcodeNumber} />\n                      </div>\n                    </div>\n\n                    {/* 3. Middle Primary Station Banner with Watermark */}\n                    <div className=\"relative w-full bg-primary py-1 sm:py-2.5 px-3 flex items-center justify-center overflow-hidden transition-colors duration-300\">\n                      <TrainWatermark className=\"absolute inset-0 w-full h-full object-cover text-primary-foreground opacity-30\" />\n                      <span className=\"relative z-10 text-primary-foreground font-sans font-black tracking-wider text-[8px] min-[400px]:text-[10px] sm:text-[16px] uppercase truncate drop-shadow-xs\">\n                        {resolvedRouteText}\n                      </span>\n                    </div>\n                  </div>\n\n                  {/* Dotted Perforation Line (Extends seamlessly from Left Notch to Right Notch) */}\n                  <div className=\"relative w-full flex items-center justify-between px-3 sm:px-4 my-auto select-none\">\n                    <div className=\"w-full border-t-2 border-dotted border-border/80\" />\n                  </div>\n\n                  {/* 4. Bottom Tear-Off Stub (Lower Section) */}\n                  <div className=\"px-3 min-[400px]:px-4 sm:px-6 pb-2 pt-0.5 sm:pb-3.5 flex flex-col justify-between\">\n                    {/* Mini Primary banner */}\n                    <div className=\"w-full bg-primary text-primary-foreground text-center font-sans font-bold tracking-wider text-[5px] min-[400px]:text-[6.5px] sm:text-[10.5px] py-0.5 sm:py-1 rounded-sm uppercase mb-1 transition-colors duration-300\">\n                      {resolvedTicketTitle}\n                    </div>\n\n                    <div className=\"flex items-center justify-between\">\n                      <div className=\"flex flex-col space-y-0.5 sm:space-y-1\">\n                        <div>\n                          <span className=\"block font-sans text-[4px] min-[400px]:text-[5px] sm:text-[7.5px] font-bold text-muted-foreground uppercase\">\n                            PASSENGER NAME\n                          </span>\n                          <span className=\"block font-sans text-[5px] min-[400px]:text-[6.5px] sm:text-[10.5px] font-semibold text-foreground\">\n                            {resolvedPassengerName}\n                          </span>\n                        </div>\n\n                        <div className=\"flex items-center gap-1.5 sm:gap-3 text-[4px] min-[400px]:text-[5px] sm:text-[8px] text-muted-foreground\">\n                          <div>\n                            <span className=\"font-bold text-foreground\">SEAT:</span> {resolvedSeatNumber}\n                          </div>\n                          <div>\n                            <span className=\"font-bold text-foreground\">TRAIN:</span> {resolvedTrainNumber}\n                          </div>\n                          <div>\n                            <span className=\"font-bold text-foreground\">DATE:</span> {resolvedDate}\n                          </div>\n                        </div>\n\n                        {/* Solid Station Badge */}\n                        <div className=\"mt-0.5 sm:mt-1 bg-zinc-950 dark:bg-black text-white px-1 sm:px-2 py-0.5 rounded-sm font-sans font-bold text-[5px] min-[400px]:text-[6px] sm:text-[9.5px] tracking-wider uppercase inline-block\">\n                          {resolvedRouteText}\n                        </div>\n                      </div>\n\n                      {/* Mini Vertical Barcode */}\n                      <div className=\"shrink-0 pl-1\">\n                        <VerticalBarcode code={resolvedBarcodeNumber} className=\"scale-75 sm:scale-90 origin-right\" />\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            ) : (\n              /* -------------------------------------------------------- */\n              /* CLASSIFIED DOSSIER FACE 1 (Voucher Pass & Clearance)     */\n              /* -------------------------------------------------------- */\n              <>\n                <div>\n                  <div className=\"flex items-center justify-between font-mono text-[6px] min-[400px]:text-[7.5px] sm:text-[11px] font-semibold tracking-wider\">\n                    <div className=\"flex items-center gap-1 sm:gap-1.5 text-primary\">\n                      <span className=\"w-1 h-1 min-[400px]:w-1.5 min-[400px]:h-1.5 rounded-full bg-primary animate-pulse\" />\n                      <span>{fBadge}</span>\n                    </div>\n                    <span className=\"opacity-75 font-mono\">{fSerial}</span>\n                  </div>\n                  <div\n                    className=\"w-full h-px my-0.5 min-[400px]:my-1 sm:my-3 transition-colors duration-300\"\n                    style={{ backgroundColor: isAdaptive ? \"var(--cf-divider)\" : \"#e5dfd4\" }}\n                  />\n                  <h3\n                    className=\"text-[10.5px] min-[400px]:text-[13px] sm:text-[22px] font-semibold tracking-tight font-sans leading-tight transition-colors duration-300\"\n                    style={{ color: isAdaptive ? \"var(--cf-card-text)\" : \"#1a1917\" }}\n                  >\n                    {fTitle}\n                  </h3>\n                  <p\n                    className=\"text-[7px] min-[400px]:text-[8.5px] sm:text-[13px] leading-tight sm:leading-relaxed mt-0.5 sm:mt-1 transition-colors duration-300 line-clamp-2 sm:line-clamp-none\"\n                    style={{ color: isAdaptive ? \"var(--cf-card-subtext)\" : \"#475569\" }}\n                  >\n                    {fSubtitle}\n                  </p>\n                </div>\n\n                <div className=\"my-auto py-0.5 min-[400px]:py-1 sm:py-2 flex flex-col items-center justify-center\">\n                  <div\n                    className={cn(\n                      \"px-1.5 min-[400px]:px-2 sm:px-3.5 py-0.5 min-[400px]:py-1 sm:py-1.5 rounded-md border-2 border-dashed font-mono font-bold text-[6.5px] min-[400px]:text-[8px] sm:text-[12px] tracking-[0.1em] sm:tracking-[0.2em] uppercase select-none transform -rotate-2 shadow-[0_0_6px_rgba(244,63,94,0.12)]\",\n                      \"border-rose-500/80 text-rose-600 dark:border-rose-400/80 dark:text-rose-400 bg-rose-500/5\"\n                    )}\n                  >\n                    {fStamp} {fStampSuffix}\n                  </div>\n                  <div className=\"mt-1 min-[400px]:mt-1.5 sm:mt-4 flex flex-col items-center gap-1 opacity-70\">\n                    <div className=\"h-2.5 min-[400px]:h-3.5 sm:h-6 flex items-center gap-[1.5px] sm:gap-[3px]\">\n                      {[2, 4, 1, 3, 2, 5, 2, 1, 4, 3, 1, 5, 2, 3, 4, 2, 1, 3, 5, 2, 4, 1, 3].map((w, i) => (\n                        <div\n                          key={i}\n                          className=\"h-full bg-current rounded-full\"\n                          style={{ width: `${w}px` }}\n                        />\n                      ))}\n                    </div>\n                    <span className=\"font-mono text-[5px] min-[400px]:text-[6.5px] sm:text-[9px] tracking-wider uppercase opacity-75\">\n                      {fBarcode}\n                    </span>\n                  </div>\n                </div>\n\n                <div className=\"mt-auto pt-0.5 min-[400px]:pt-1 sm:pt-2\">\n                  <div\n                    className=\"w-full h-px mb-0.5 min-[400px]:mb-1 sm:mb-3 transition-colors duration-300\"\n                    style={{ backgroundColor: isAdaptive ? \"var(--cf-divider)\" : \"#e5dfd4\" }}\n                  />\n                  <div className=\"flex items-center justify-between font-mono text-[5.5px] min-[400px]:text-[7px] sm:text-[9.5px] tracking-wider uppercase opacity-75\">\n                    <span>{fStatus}</span>\n                    <ClassifiedSeal\n                      size={16}\n                      strokeWidth={1.2}\n                      className=\"w-[11px] h-[11px] min-[400px]:w-[14px] min-[400px]:h-[14px] sm:w-[22px] sm:h-[22px] opacity-80 text-primary\"\n                    />\n                  </div>\n                </div>\n              </>\n            )}\n          </div>\n\n          {/* ============================================================ */}\n          {/* FACE 2: BACK FACE OF TICKET / PASS                           */}\n          {/* ============================================================ */}\n          <div\n            style={{\n              backfaceVisibility: \"hidden\",\n              WebkitBackfaceVisibility: \"hidden\",\n              transform: \"rotateY(180deg)\",\n              borderRadius: \"calc(var(--radius, 1.25rem) - 2px)\",\n              color: isAdaptive ? \"var(--cf-card-text)\" : \"#0f172a\",\n            }}\n            className={cn(\n              \"absolute inset-0 shadow-[0_0_14px_rgba(0,0,0,0.07)] dark:shadow-[0_0_16px_rgba(0,0,0,0.35)] flex flex-col justify-between select-none transition-colors duration-300\",\n              isTrainTicket || isBoardingPass ? \"p-0 bg-transparent border-0\" : isKeycard ? \"p-0 bg-card border border-border\" : \"p-2 min-[400px]:p-2.5 sm:p-5 border bg-card border-border\"\n            )}\n          >\n            {isKeycard ? (\n              /* -------------------------------------------------------- */\n              /* MODERN BIOMETRIC SMARTCARD REVERSE (MAGNETIC & TELEMETRY)*/\n              /* -------------------------------------------------------- */\n              <div className=\"relative w-full h-full flex flex-col justify-between text-foreground select-none overflow-hidden rounded-[calc(var(--radius,1.25rem)-2px)] bg-card border border-border p-0 shadow-md transition-colors duration-300\">\n                {/* 1. Encrypted Magnetic Stripe */}\n                <div className=\"w-full bg-foreground py-2 sm:py-3.5 px-3 flex items-center justify-between text-background shadow-xs\">\n                  <span className=\"font-mono text-[4px] min-[400px]:text-[5px] sm:text-[7.5px] font-black tracking-widest uppercase\">\n                    ENCRYPTED NFC // FIDO2 MAGNETIC TRACK\n                  </span>\n                  <span className=\"font-mono text-[4px] min-[400px]:text-[5px] sm:text-[7.5px] font-black tracking-wider\">\n                    CRC: 8940-X\n                  </span>\n                </div>\n\n                {/* 2. Signature Panel & Security Code */}\n                <div className=\"px-3 min-[400px]:px-4 sm:px-6 py-1 sm:py-2\">\n                  <div className=\"flex items-center justify-between mb-0.5 sm:mb-1\">\n                    <span className=\"font-mono text-[4px] min-[400px]:text-[5px] sm:text-[7.5px] font-bold text-muted-foreground uppercase tracking-wider\">\n                      DIGITAL SIGNATURE\n                    </span>\n                    <span className=\"font-mono text-[4px] min-[400px]:text-[5px] sm:text-[7.5px] font-bold text-primary uppercase\">\n                      SEC KEY: <strong className=\"text-foreground bg-muted px-1 py-0.5 rounded-xs\">{resolvedSecurityKey}</strong>\n                    </span>\n                  </div>\n\n                  {/* Signature Box */}\n                  <div className=\"w-full bg-muted/60 border border-border px-2 sm:px-3 py-1 sm:py-2 rounded-xs flex items-center justify-between font-mono text-[6px] min-[400px]:text-[7.5px] sm:text-[11px] text-foreground\">\n                    <span className=\"italic font-sans font-semibold\">{resolvedHolderName}</span>\n                    <span className=\"text-[4px] min-[400px]:text-[5px] sm:text-[7.5px] text-primary uppercase font-bold\">CRYPTO SIGNED</span>\n                  </div>\n\n                  {/* SHA-512 Telemetry Hash */}\n                  <p className=\"font-mono text-[3.5px] min-[400px]:text-[4.5px] sm:text-[7.5px] text-muted-foreground truncate mt-1\">\n                    ✦ HASH: {resolvedHashSignature}\n                  </p>\n                </div>\n\n                {/* 3. Three Security Telemetry Pillars */}\n                <div className=\"px-3 min-[400px]:px-4 sm:px-6\">\n                  <div className=\"grid grid-cols-3 gap-1 sm:gap-2 text-center\">\n                    <div className=\"bg-muted/40 border border-border p-1 sm:p-1.5 rounded-sm\">\n                      <span className=\"block font-mono text-[3.5px] min-[400px]:text-[4.5px] sm:text-[7px] text-muted-foreground uppercase\">ENCRYPTION</span>\n                      <span className=\"block font-mono font-bold text-[5px] min-[400px]:text-[6px] sm:text-[9.5px] text-primary\">AES-256</span>\n                    </div>\n                    <div className=\"bg-muted/40 border border-border p-1 sm:p-1.5 rounded-sm\">\n                      <span className=\"block font-mono text-[3.5px] min-[400px]:text-[4.5px] sm:text-[7px] text-muted-foreground uppercase\">PROTOCOL</span>\n                      <span className=\"block font-mono font-bold text-[5px] min-[400px]:text-[6px] sm:text-[9.5px] text-foreground\">FIDO2 / NFC</span>\n                    </div>\n                    <div className=\"bg-muted/40 border border-border p-1 sm:p-1.5 rounded-sm\">\n                      <span className=\"block font-mono text-[3.5px] min-[400px]:text-[4.5px] sm:text-[7px] text-muted-foreground uppercase\">ACCESS</span>\n                      <span className=\"block font-mono font-bold text-[5px] min-[400px]:text-[6px] sm:text-[9.5px] text-emerald-500\">GLOBAL</span>\n                    </div>\n                  </div>\n                </div>\n\n                {/* 4. Bottom Footer */}\n                <div className=\"px-3 min-[400px]:px-4 sm:px-6 pb-2 sm:pb-3.5 pt-1 border-t border-border flex items-center justify-between text-[4.5px] min-[400px]:text-[5.5px] sm:text-[8.5px] text-muted-foreground font-mono\">\n                  <span>QUANTUM VAULT CORE</span>\n                  <span className=\"font-bold text-primary\">AUTH.QUANTUMVAULT.IO</span>\n                </div>\n              </div>\n            ) : isBoardingPass ? (\n              /* -------------------------------------------------------- */\n              /* AIRLINE VIP LOUNGE & PASS PRIVILEGES (BACK FACE)         */\n              /* -------------------------------------------------------- */\n              <div className=\"relative w-full h-full flex flex-col justify-between text-foreground select-none\">\n                {/* Vector Card Shell */}\n                <svg\n                  viewBox=\"0 0 340 440\"\n                  preserveAspectRatio=\"none\"\n                  className=\"absolute inset-0 w-full h-full pointer-events-none z-0 overflow-visible text-border/80\"\n                  xmlns=\"http://www.w3.org/2000/svg\"\n                >\n                  {/* Top Half: Card background */}\n                  <path\n                    d=\"M 16 0 L 324 0 A 16 16 0 0 1 340 16 L 340 216 A 14 14 0 0 0 340 244 L 340 244 L 0 244 L 0 244 A 14 14 0 0 0 0 216 L 0 16 A 16 16 0 0 1 16 0 Z\"\n                    className=\"fill-card transition-colors duration-300\"\n                  />\n                  {/* Bottom Half: Primary Blue background */}\n                  <path\n                    d=\"M 0 244 L 340 244 L 340 424 A 16 16 0 0 1 324 440 L 16 440 A 16 16 0 0 1 0 424 Z\"\n                    className=\"fill-primary transition-colors duration-300\"\n                  />\n                  {/* Full Outer Perimeter Stroke */}\n                  <path\n                    d=\"M 16 0 L 324 0 A 16 16 0 0 1 340 16 L 340 216 A 14 14 0 0 0 340 244 L 340 424 A 16 16 0 0 1 324 440 L 16 440 A 16 16 0 0 1 0 424 L 0 244 A 14 14 0 0 0 0 216 L 0 16 A 16 16 0 0 1 16 0 Z\"\n                    fill=\"none\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"1.2\"\n                    vectorEffect=\"non-scaling-stroke\"\n                  />\n                </svg>\n\n                {/* Card Content */}\n                <div className=\"relative z-10 w-full h-full flex flex-col justify-between\">\n                  {/* Upper Section: Flight Wings & Slogan */}\n                  <div className=\"p-3 min-[400px]:p-4 sm:p-7 flex flex-col items-center justify-center text-center my-auto\">\n                    <FlightWingsLogo className=\"w-16 min-[400px]:w-20 sm:w-36 text-foreground transition-colors duration-300\" />\n                    <h3 className=\"font-sans font-black text-[8px] min-[400px]:text-[10px] sm:text-[16px] tracking-wider text-foreground uppercase mt-1 sm:mt-2 transition-colors duration-300\">\n                      {resolvedAirlineCompany}\n                    </h3>\n                    <p className=\"font-sans font-semibold text-[5px] min-[400px]:text-[6.5px] sm:text-[10.5px] tracking-wide text-muted-foreground uppercase max-w-[130px] min-[400px]:max-w-[160px] sm:max-w-[260px] mt-1 sm:mt-2 leading-tight transition-colors duration-300\">\n                      {resolvedSlogan}\n                    </p>\n                  </div>\n\n                  {/* Dotted Perforation Line */}\n                  <div className=\"relative w-full flex items-center justify-between px-3 sm:px-4 my-0 select-none z-20\">\n                    <div className=\"w-full border-t-2 border-dotted border-border/80\" />\n                  </div>\n\n                  {/* Lower Section: VIP Lounge Perks & Metrics */}\n                  <div className=\"relative w-full p-2.5 min-[400px]:p-3 sm:p-6 flex flex-col items-center justify-center overflow-hidden\">\n                    <AirplaneWatermark className=\"absolute inset-0 w-full h-full object-cover text-primary-foreground opacity-30\" />\n\n                    {/* Black Lounge Banner */}\n                    <div className=\"relative z-10 w-full bg-zinc-950 dark:bg-black text-white py-1 sm:py-2 px-2 text-center rounded-sm shadow-md\">\n                      <span className=\"font-sans font-bold text-[7px] min-[400px]:text-[8.5px] sm:text-[13px] uppercase tracking-wider\">\n                        ✦ SKYCLUB VIP LOUNGE ACCESS ✦\n                      </span>\n                    </div>\n\n                    {/* 3 VIP Badges Grid */}\n                    <div className=\"relative z-10 grid grid-cols-3 gap-1 sm:gap-2 w-full mt-1.5 sm:mt-3 text-center\">\n                      <div className=\"bg-black/25 backdrop-blur-xs py-0.5 sm:py-1 px-1 rounded-sm border border-primary-foreground/20\">\n                        <span className=\"block font-mono text-[3.5px] min-[400px]:text-[4.5px] sm:text-[7.5px] font-bold text-primary-foreground/75 uppercase\">LOUNGE</span>\n                        <span className=\"block font-sans text-[4.5px] min-[400px]:text-[6px] sm:text-[9.5px] font-black text-primary-foreground\">T4 ACCESS</span>\n                      </div>\n                      <div className=\"bg-black/25 backdrop-blur-xs py-0.5 sm:py-1 px-1 rounded-sm border border-primary-foreground/20\">\n                        <span className=\"block font-mono text-[3.5px] min-[400px]:text-[4.5px] sm:text-[7.5px] font-bold text-primary-foreground/75 uppercase\">TIER</span>\n                        <span className=\"block font-sans text-[4.5px] min-[400px]:text-[6px] sm:text-[9.5px] font-black text-primary-foreground\">PLATINUM</span>\n                      </div>\n                      <div className=\"bg-black/25 backdrop-blur-xs py-0.5 sm:py-1 px-1 rounded-sm border border-primary-foreground/20\">\n                        <span className=\"block font-mono text-[3.5px] min-[400px]:text-[4.5px] sm:text-[7.5px] font-bold text-primary-foreground/75 uppercase\">BAGGAGE</span>\n                        <span className=\"block font-sans text-[4.5px] min-[400px]:text-[6px] sm:text-[9.5px] font-black text-primary-foreground\">3 × 32KG</span>\n                      </div>\n                    </div>\n\n                    {/* Website link */}\n                    <span className=\"relative z-10 font-sans text-[4px] min-[400px]:text-[5px] sm:text-[8px] text-primary-foreground/90 uppercase tracking-widest mt-1.5 sm:mt-2.5 font-semibold\">\n                      {resolvedWebsiteUrl} {\"//\"} 24/7 CONCIERGE\n                    </span>\n                  </div>\n                </div>\n              </div>\n            ) : isTrainTicket ? (\n              /* -------------------------------------------------------- */\n              /* EXACT 1:1 REPLICA OF RIGHT TICKET (BACK FACE)            */\n              /* -------------------------------------------------------- */\n              <div className=\"relative w-full h-full flex flex-col justify-between text-foreground select-none\">\n                {/* 100% Vector Card Shell with Inward Curved Notch Borders (All-Time Transparent Cutouts) */}\n                <svg\n                  viewBox=\"0 0 340 440\"\n                  preserveAspectRatio=\"none\"\n                  className=\"absolute inset-0 w-full h-full pointer-events-none z-0 overflow-visible text-border/80\"\n                  xmlns=\"http://www.w3.org/2000/svg\"\n                >\n                  {/* Top Half: Card background */}\n                  <path\n                    d=\"M 16 0 L 324 0 A 16 16 0 0 1 340 16 L 340 216 A 14 14 0 0 0 340 244 L 340 244 L 0 244 L 0 244 A 14 14 0 0 0 0 216 L 0 16 A 16 16 0 0 1 16 0 Z\"\n                    className=\"fill-card transition-colors duration-300\"\n                  />\n                  {/* Bottom Half: Primary Blue background */}\n                  <path\n                    d=\"M 0 244 L 340 244 L 340 424 A 16 16 0 0 1 324 440 L 16 440 A 16 16 0 0 1 0 424 Z\"\n                    className=\"fill-primary transition-colors duration-300\"\n                  />\n                  {/* Full Continuous Outer Perimeter Stroke with Inward Curved Notch Arcs */}\n                  <path\n                    d=\"M 16 0 L 324 0 A 16 16 0 0 1 340 16 L 340 216 A 14 14 0 0 0 340 244 L 340 424 A 16 16 0 0 1 324 440 L 16 440 A 16 16 0 0 1 0 424 L 0 244 A 14 14 0 0 0 0 216 L 0 16 A 16 16 0 0 1 16 0 Z\"\n                    fill=\"none\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"1.2\"\n                    vectorEffect=\"non-scaling-stroke\"\n                  />\n                </svg>\n\n                {/* Card Content (Layered over the SVG Shell) */}\n                <div className=\"relative z-10 w-full h-full flex flex-col justify-between\">\n                  {/* Upper White/Card Section: Train Logo & Slogan */}\n                  <div className=\"p-3 min-[400px]:p-4 sm:p-8 flex flex-col items-center justify-center text-center my-auto\">\n                    <HyperboltTrainLogo className=\"w-16 min-[400px]:w-20 sm:w-36 text-foreground transition-colors duration-300\" />\n                    <h3 className=\"font-sans font-black text-[8px] min-[400px]:text-[10px] sm:text-[16px] tracking-wider text-foreground uppercase mt-1 sm:mt-2 transition-colors duration-300\">\n                      {resolvedTrainCompany}\n                    </h3>\n                    <p className=\"font-sans font-semibold text-[5px] min-[400px]:text-[6.5px] sm:text-[10.5px] tracking-wide text-muted-foreground uppercase max-w-[120px] min-[400px]:max-w-[150px] sm:max-w-[240px] mt-1 sm:mt-2 leading-tight transition-colors duration-300\">\n                      {resolvedSlogan}\n                    </p>\n                  </div>\n\n                  {/* Dotted Perforation Line (Extends seamlessly from Left Notch to Right Notch) */}\n                  <div className=\"relative w-full flex items-center justify-between px-3 sm:px-4 my-0 select-none z-20\">\n                    <div className=\"w-full border-t-2 border-dotted border-border/80\" />\n                  </div>\n\n                  {/* Lower Primary Banner Section with Station Name */}\n                  <div className=\"relative w-full p-2.5 min-[400px]:p-3 sm:p-6 flex flex-col items-center justify-center overflow-hidden\">\n                    <TrainWatermark className=\"absolute inset-0 w-full h-full object-cover text-primary-foreground opacity-30\" />\n\n                    {/* Black Station Box */}\n                    <div className=\"relative z-10 w-full bg-zinc-950 dark:bg-black text-white py-1 sm:py-2 px-2 text-center rounded-sm shadow-md\">\n                      <span className=\"font-sans font-bold text-[7px] min-[400px]:text-[8.5px] sm:text-[14px] uppercase tracking-wider\">\n                        {resolvedRouteText}\n                      </span>\n                    </div>\n\n                    {/* Website link */}\n                    <span className=\"relative z-10 font-sans text-[4px] min-[400px]:text-[5px] sm:text-[8px] text-primary-foreground/90 uppercase tracking-widest mt-1 sm:mt-2 font-semibold\">\n                      {resolvedWebsiteUrl}\n                    </span>\n                  </div>\n                </div>\n              </div>\n            ) : (\n              /* -------------------------------------------------------- */\n              /* CLASSIFIED DOSSIER FACE 2 (Editorial Manifesto & Metrics)*/\n              /* -------------------------------------------------------- */\n              <>\n                <div>\n                  <div className=\"flex items-center justify-between font-mono text-[6px] min-[400px]:text-[7.5px] sm:text-[10.5px] font-semibold tracking-wider\">\n                    <div className=\"flex items-center gap-1 sm:gap-1.5 text-primary\">\n                      <span className=\"w-1 h-1 min-[400px]:w-1.5 min-[400px]:h-1.5 rounded-full bg-primary\" />\n                      <span>{bCategory}</span>\n                    </div>\n                    <span className=\"opacity-60 font-mono text-[5.5px] min-[400px]:text-[7px] sm:text-[10px] tracking-wide\">\n                      {bDate}\n                    </span>\n                  </div>\n                  <div className=\"mt-0.5 min-[400px]:mt-1 sm:mt-3\">\n                    <h3\n                      className=\"text-[10.5px] min-[400px]:text-[13px] sm:text-[21px] font-semibold tracking-tight font-sans leading-tight transition-colors duration-300\"\n                      style={{ color: isAdaptive ? \"var(--cf-card-text)\" : \"#1a1917\" }}\n                    >\n                      {bTitle}\n                    </h3>\n                    <p\n                      className=\"text-[6.5px] min-[400px]:text-[8px] sm:text-[12.5px] leading-tight sm:leading-normal mt-0.5 sm:mt-1 transition-colors duration-300\"\n                      style={{ color: isAdaptive ? \"var(--cf-card-subtext)\" : \"#57534e\" }}\n                    >\n                      {bSubtitle}\n                    </p>\n                  </div>\n                  <div\n                    className=\"w-full h-px my-0.5 min-[400px]:my-1 sm:my-3 transition-colors duration-300\"\n                    style={{ backgroundColor: isAdaptive ? \"var(--cf-divider)\" : \"#e5dfd4\" }}\n                  />\n                  <p\n                    className=\"text-[6px] min-[400px]:text-[7.5px] sm:text-[12.5px] leading-tight sm:leading-relaxed transition-colors duration-300 line-clamp-2 sm:line-clamp-none\"\n                    style={{ color: isAdaptive ? \"var(--cf-card-subtext)\" : \"#44403c\" }}\n                  >\n                    {bStatement}\n                  </p>\n                  <div className=\"mt-0.5 min-[400px]:mt-1 sm:mt-3 px-1.5 min-[400px]:px-2 sm:px-3 py-0.5 min-[400px]:py-1 sm:py-2 rounded-lg border-l-2 border-primary bg-primary/[0.04] transition-colors duration-300\">\n                    <p\n                      className=\"italic text-[6px] min-[400px]:text-[7.5px] sm:text-[12px] font-medium leading-tight sm:leading-snug line-clamp-2 sm:line-clamp-none\"\n                      style={{ color: isAdaptive ? \"var(--cf-card-text)\" : \"#1c1917\" }}\n                    >\n                      &ldquo;{bHighlight}&rdquo;\n                    </p>\n                  </div>\n                  <div className=\"grid grid-cols-3 gap-0.5 min-[400px]:gap-1 sm:gap-2 mt-0.5 min-[400px]:mt-1 sm:mt-3.5\">\n                    <div\n                      className=\"px-0.5 py-0.5 min-[400px]:px-1 min-[400px]:py-0.5 sm:px-2 sm:py-1.5 rounded-lg border text-center transition-colors duration-300\"\n                      style={{\n                        backgroundColor: isAdaptive ? \"rgba(255, 255, 255, 0.03)\" : \"#ece6dc\",\n                        borderColor: isAdaptive ? \"var(--cf-divider)\" : \"#e2dbce\",\n                      }}\n                    >\n                      <span\n                        className=\"block font-mono text-[5px] min-[400px]:text-[6px] sm:text-[8.5px] tracking-wider uppercase opacity-60\"\n                        style={{ color: isAdaptive ? \"var(--cf-card-subtext)\" : \"#78716c\" }}\n                      >\n                        {m1L}\n                      </span>\n                      <span className=\"block font-mono text-[6px] min-[400px]:text-[7.5px] sm:text-[10.5px] font-bold text-primary mt-0.5\">\n                        {m1V}\n                      </span>\n                    </div>\n                    <div\n                      className=\"px-0.5 py-0.5 min-[400px]:px-1 min-[400px]:py-0.5 sm:px-2 sm:py-1.5 rounded-lg border text-center transition-colors duration-300\"\n                      style={{\n                        backgroundColor: isAdaptive ? \"rgba(255, 255, 255, 0.03)\" : \"#ece6dc\",\n                        borderColor: isAdaptive ? \"var(--cf-divider)\" : \"#e2dbce\",\n                      }}\n                    >\n                      <span\n                        className=\"block font-mono text-[5px] min-[400px]:text-[6px] sm:text-[8.5px] tracking-wider uppercase opacity-60\"\n                        style={{ color: isAdaptive ? \"var(--cf-card-subtext)\" : \"#78716c\" }}\n                      >\n                        {m2L}\n                      </span>\n                      <span className=\"block font-mono text-[6px] min-[400px]:text-[7.5px] sm:text-[10.5px] font-bold text-primary mt-0.5\">\n                        {m2V}\n                      </span>\n                    </div>\n                    <div\n                      className=\"px-0.5 py-0.5 min-[400px]:px-1 min-[400px]:py-0.5 sm:px-2 sm:py-1.5 rounded-lg border text-center transition-colors duration-300\"\n                      style={{\n                        backgroundColor: isAdaptive ? \"rgba(255, 255, 255, 0.03)\" : \"#ece6dc\",\n                        borderColor: isAdaptive ? \"var(--cf-divider)\" : \"#e2dbce\",\n                      }}\n                    >\n                      <span\n                        className=\"block font-mono text-[5px] min-[400px]:text-[6px] sm:text-[8.5px] tracking-wider uppercase opacity-60\"\n                        style={{ color: isAdaptive ? \"var(--cf-card-subtext)\" : \"#78716c\" }}\n                      >\n                        {m3L}\n                      </span>\n                      <span className=\"block font-mono text-[6px] min-[400px]:text-[7.5px] sm:text-[10.5px] font-bold text-emerald-500 mt-0.5\">\n                        {m3V}\n                      </span>\n                    </div>\n                  </div>\n                </div>\n\n                <div className=\"pt-0.5 min-[400px]:pt-1 sm:pt-2\">\n                  <div\n                    className=\"w-full h-px mb-0.5 min-[400px]:mb-1 sm:mb-2.5 transition-colors duration-300\"\n                    style={{ backgroundColor: isAdaptive ? \"var(--cf-divider)\" : \"#e5dfd4\" }}\n                  />\n                  <div className=\"flex items-center justify-between font-mono text-[5.5px] min-[400px]:text-[6.5px] sm:text-[9.5px] tracking-wider uppercase opacity-75\">\n                    <span style={{ color: isAdaptive ? \"var(--cf-card-subtext)\" : \"#78716c\" }}>\n                      ✦ {bAuthor}\n                    </span>\n                    <ClassifiedSeal\n                      size={16}\n                      strokeWidth={1.2}\n                      className=\"w-[11px] h-[11px] min-[400px]:w-[14px] min-[400px]:h-[14px] sm:w-[22px] sm:h-[22px] opacity-80 text-primary\"\n                    />\n                  </div>\n                </div>\n              </>\n            )}\n          </div>\n        </div>\n\n        {/* ============================================================== */}\n        {/* LAYER 3: FRONT SLEEVE FLAP (CARD BOX DESIGN)                   */}\n        {/* Custom styled envelope box matching the chosen design aesthetic*/}\n        {/* ============================================================== */}\n        {/* 3A. Flap Background Plate with Thumb Notch Scoop Mask */}\n        <div\n          className=\"absolute inset-0 pointer-events-none border transition-colors duration-300\"\n          style={{\n            zIndex: 20,\n            borderRadius: \"var(--radius, 1.25rem)\",\n            backgroundColor: \"var(--cf-flap)\",\n            borderColor: \"var(--cf-stroke-flap)\",\n            maskImage:\n              \"radial-gradient(circle 24px at 100% 50%, transparent 23px, black 24px)\",\n            WebkitMaskImage:\n              \"radial-gradient(circle 24px at 100% 50%, transparent 23px, black 24px)\",\n          }}\n        />\n\n        {/* 3B. Flap Surface Content Layer (UNMASKED -> 100% CRISP VECTOR TYPOGRAPHY, ZERO BLUR) */}\n        <div\n          className=\"absolute inset-0 pointer-events-none flex flex-col justify-between p-2 min-[400px]:p-3 sm:p-8 select-none\"\n          style={{ zIndex: 22 }}\n        >\n          {/* Top Floating Badge */}\n          <div className=\"flex items-center justify-between\">\n            {isKeycard ? (\n              <div\n                className=\"px-2.5 py-0.5 sm:py-1 rounded-full font-mono text-[5px] min-[400px]:text-[6.5px] sm:text-[10px] font-bold uppercase tracking-wider backdrop-blur-xs border transition-colors duration-300 shadow-xs flex items-center gap-1.5\"\n                style={{\n                  backgroundColor: \"var(--cf-card-bg)\",\n                  color: \"var(--cf-ink)\",\n                  borderColor: \"var(--cf-stroke-flap)\",\n                }}\n              >\n                <span className=\"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse\" />\n                <span>NFC SMART CARD // SEC-09</span>\n              </div>\n            ) : isBoardingPass ? (\n              <div\n                className=\"px-2.5 py-0.5 sm:py-1 rounded-full font-sans text-[5px] min-[400px]:text-[6.5px] sm:text-[10px] font-bold uppercase tracking-wider backdrop-blur-xs border transition-colors duration-300 shadow-xs\"\n                style={{\n                  backgroundColor: \"var(--cf-card-bg)\",\n                  color: \"var(--cf-ink)\",\n                  borderColor: \"var(--cf-stroke-flap)\",\n                }}\n              >\n                ✦ {resolvedAirlineCompany} {\"//\"} VIP LOUNGE\n              </div>\n            ) : isTrainTicket ? (\n              <div\n                className=\"px-2.5 py-0.5 sm:py-1 rounded-full font-sans text-[5px] min-[400px]:text-[6.5px] sm:text-[10px] font-bold uppercase tracking-wider backdrop-blur-xs border transition-colors duration-300 shadow-xs\"\n                style={{\n                  backgroundColor: \"var(--cf-card-bg)\",\n                  color: \"var(--cf-ink)\",\n                  borderColor: \"var(--cf-stroke-flap)\",\n                }}\n              >\n                ✦ {trainCompany}\n              </div>\n            ) : (\n              <div />\n            )}\n          </div>\n\n          {/* Center Emblem Seal */}\n          <div className=\"flex items-center justify-center my-auto py-1 sm:py-2\">\n            {centerIcon ? (\n              <div className=\"w-[80px] h-[80px] min-[400px]:w-[105px] min-[400px]:h-[105px] sm:w-[265px] sm:h-[265px] flex items-center justify-center transition-colors duration-300\">\n                {centerIcon}\n              </div>\n            ) : isKeycard ? (\n              <CyberNexusSeal\n                size={265}\n                className=\"w-[80px] h-[80px] min-[400px]:w-[105px] min-[400px]:h-[105px] sm:w-[265px] sm:h-[265px] transition-colors duration-300 drop-shadow-xs\"\n                style={{ color: \"var(--cf-spiro)\" }}\n              />\n            ) : isBoardingPass ? (\n              <AviationRadarSeal\n                size={265}\n                className=\"w-[80px] h-[80px] min-[400px]:w-[105px] min-[400px]:h-[105px] sm:w-[265px] sm:h-[265px] transition-colors duration-300 drop-shadow-xs\"\n                style={{ color: \"var(--cf-spiro)\" }}\n              />\n            ) : isTrainTicket ? (\n              <HyperboltSleeveSeal\n                size={265}\n                className=\"w-[80px] h-[80px] min-[400px]:w-[105px] min-[400px]:h-[105px] sm:w-[265px] sm:h-[265px] transition-colors duration-300 drop-shadow-xs\"\n                style={{ color: \"var(--cf-spiro)\" }}\n              />\n            ) : (\n              <ClassifiedSeal\n                size={265}\n                strokeWidth={1.3}\n                className=\"w-[80px] h-[80px] min-[400px]:w-[105px] min-[400px]:h-[105px] sm:w-[265px] sm:h-[265px] transition-colors duration-300\"\n                style={{ color: \"var(--cf-spiro)\" }}\n              />\n            )}\n          </div>\n\n          {/* Bottom Title & Subtitle with Crystal Clear High Contrast Vector Typography */}\n          <div className=\"text-left w-full pr-1 sm:pr-4 overflow-hidden\">\n            <h2\n              className=\"text-[11px] min-[400px]:text-[13.5px] sm:text-[23px] font-bold tracking-tight leading-tight transition-colors duration-300 whitespace-nowrap truncate drop-shadow-xs\"\n              style={{ color: \"var(--cf-ink)\" }}\n            >\n              {resolvedSleeveTitle}\n            </h2>\n            <p\n              className=\"text-[6px] min-[400px]:text-[7.5px] sm:text-[13.5px] font-medium leading-tight mt-0.5 sm:mt-1 transition-colors duration-300 whitespace-nowrap truncate\"\n              style={{ color: \"var(--cf-ink-muted)\" }}\n            >\n              {resolvedSleeveSubtitle}\n            </p>\n          </div>\n        </div>\n      </div>\n    </div>\n  );\n}\n\n// Aliases for modern naming\nexport const SecureEnvelope = ConfidentialFolder;\nexport type SecureEnvelopeProps = ConfidentialFolderProps;\nexport type SecureEnvelopeInteractionMode = ConfidentialFolderInteractionMode;\nexport type SecureEnvelopeCardDesign = ConfidentialFolderCardDesign;\nexport type SecureEnvelopeData = CouponCardData;\n\nexport default SecureEnvelope;\n",
      "type": "registry:component",
      "target": "components/custom/blocks/SecureEnvelopeBlock.tsx"
    }
  ],
  "docs": "Named export: SecureEnvelope (also ConfidentialFolder).",
  "categories": [
    "data-display",
    "marketing",
    "actions"
  ],
  "type": "registry:component"
}
