:root {
      --bg-main: #0a0a0f;
      --bg-card: rgba(17, 18, 23, 0.55);
      --bg-card-hover: rgba(23, 25, 32, 0.75);
      --bg-input: rgba(10, 10, 15, 0.85);
      --accent: #58a6ff;
      --accent-glow: rgba(88, 166, 255, 0.25);
      --accent-border: rgba(88, 166, 255, 0.35);
      --text-main: #f0f6fc;
      --text-muted: #8b949e;
      --text-dim: #484f58;
      --border-subtle: rgba(255, 255, 255, 0.08);
      --border-focus: #58a6ff;
      --status-active-bg: rgba(46, 160, 67, 0.15);
      --status-active-text: #3fb950;
      --status-active-border: rgba(63, 185, 80, 0.3);
      --status-inactive-bg: rgba(110, 118, 129, 0.15);
      --status-inactive-text: #8b949e;
      --status-inactive-border: rgba(139, 148, 158, 0.3);
      --danger: #f85149;
      --danger-bg: rgba(248, 81, 73, 0.12);
      --danger-hover: rgba(248, 81, 73, 0.25);
      --font-mono: 'JetBrains Mono', monospace;
      --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      --glass-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.08);
      --glass-shadow-hover: 0 32px 90px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(88, 166, 255, 0.12);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-font-smoothing: antialiased;
    }

    body {
      background-color: var(--bg-main);
      color: var(--text-main);
      font-family: var(--font-sans);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      background-image: 
        radial-gradient(circle at 15% 15%, rgba(88, 166, 255, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.04) 0%, transparent 40%);
      background-attachment: fixed;
    }

    .mono {
      font-family: var(--font-mono);
    }

    /* Layout Principal */
    .app-container {
      max-width: 1440px;
      width: 100%;
      margin: 0 auto;
      padding: 40px 32px 80px;
    }

    /* Header */
    .header-section {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 40px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .header-titles {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--text-muted);
      letter-spacing: 0.5px;
    }

    .page-title {
      font-size: 32px;
      font-weight: 800;
      color: var(--text-main);
      letter-spacing: -0.5px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .page-title-badge {
      font-size: 12px;
      padding: 3px 10px;
      border-radius: 999px;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      color: var(--accent);
    }

    .page-description {
      color: var(--text-muted);
      font-size: 14px;
    }

    /* Botão Principal */
    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--accent);
      color: #050a14;
      font-family: var(--font-sans);
      font-weight: 600;
      font-size: 14px;
      padding: 12px 22px;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      box-shadow: 0 4px 18px var(--accent-glow);
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .btn-primary:hover {
      background: #79b8ff;
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(88, 166, 255, 0.4);
    }

    .btn-primary:active {
      transform: translateY(0);
    }

    /* Grid de Planos */
    .plans-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
      width: 100%;
    }

    @media (max-width: 1180px) {
      .plans-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .plans-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Cards */
    .plan-card {
      background: var(--bg-card);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--border-subtle);
      border-radius: 16px;
      box-shadow: var(--glass-shadow);
      padding: 32px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
      animation: fadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .plan-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--glass-shadow-hover);
      border-color: var(--accent-border);
      background: var(--bg-card-hover);
    }

    .plan-card.featured {
      border-color: var(--accent-border);
      background: linear-gradient(180deg, rgba(88, 166, 255, 0.08) 0%, rgba(17, 18, 23, 0.65) 100%);
    }

    .plan-card.featured::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }

    .card-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 20px;
    }

    .card-title-wrap {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .plan-name {
      font-size: 22px;
      font-weight: 700;
      color: var(--text-main);
      letter-spacing: -0.3px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 4px 12px;
      border-radius: 999px;
      border-width: 1px;
      border-style: solid;
      white-space: nowrap;
    }

    .badge-active {
      background: var(--status-active-bg);
      color: var(--status-active-text);
      border-color: var(--status-active-border);
    }

    .badge-active::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background-color: var(--status-active-text);
      box-shadow: 0 0 8px var(--status-active-text);
    }

    .badge-inactive {
      background: var(--status-inactive-bg);
      color: var(--status-inactive-text);
      border-color: var(--status-inactive-border);
    }

    .badge-inactive::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background-color: var(--status-inactive-text);
    }

    .price-container {
      margin: 12px 0 20px;
      display: flex;
      align-items: baseline;
      gap: 6px;
    }

    .price-value {
      font-size: 36px;
      font-weight: 800;
      color: var(--text-main);
      letter-spacing: -1px;
    }

    .price-period {
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 500;
    }

    .plan-desc {
      color: var(--text-muted);
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 24px;
      min-height: 44px;
    }

    .plan-divider {
      height: 1px;
      background: var(--border-subtle);
      margin-bottom: 24px;
    }

    .plan-features {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 32px;
    }

    .plan-feature-item {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 13.5px;
      color: #c9d1d9;
    }

    .feature-icon {
      color: var(--accent);
      flex-shrink: 0;
    }

    /* Card Footer & Actions */
    .card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 20px;
      border-top: 1px solid var(--border-subtle);
      margin-top: auto;
    }

    .card-stats {
      font-size: 12px;
      color: var(--text-muted);
    }

    .card-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .action-btn {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-subtle);
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .action-btn:hover {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text-main);
      border-color: rgba(255, 255, 255, 0.2);
    }

    .action-btn.btn-edit:hover {
      color: var(--accent);
      border-color: var(--accent-border);
      background: rgba(88, 166, 255, 0.1);
    }

    .action-btn.btn-delete:hover {
      color: var(--danger);
      border-color: rgba(248, 81, 73, 0.4);
      background: var(--danger-bg);
    }

    /* Modal */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(3, 4, 7, 0.75);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 20px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .modal-container {
      background: var(--bg-card);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid var(--border-subtle);
      border-radius: 20px;
      width: 100%;
      max-width: 540px;
      box-shadow: var(--glass-shadow-hover);
      transform: translateY(12px) scale(0.98);
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      overflow: hidden;
    }

    .modal-overlay.active .modal-container {
      transform: translateY(0) scale(1);
    }

    .modal-header {
      padding: 24px 28px;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .modal-title {
      font-size: 20px;
      font-weight: 700;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .modal-close {
      background: transparent;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 6px;
      transition: all 0.2s ease;
    }

    .modal-close:hover {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text-main);
    }

    .modal-body {
      padding: 28px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 16px;
    }

    .form-label {
      font-size: 13px;
      font-weight: 600;
      color: #c9d1d9;
    }

    .form-input, .form-textarea, .form-select {
      background: var(--bg-input);
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      padding: 12px 14px;
      color: var(--text-main);
      font-size: 14px;
      font-family: var(--font-sans);
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      width: 100%;
    }

    .form-input.mono {
      font-family: var(--font-mono);
      font-size: 15px;
    }

    .form-textarea {
      resize: vertical;
      min-height: 85px;
      line-height: 1.5;
    }

    .form-select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      padding-right: 40px;
    }

    .form-select option {
      background-color: #111217;
      color: var(--text-main);
    }

    .form-input:focus, .form-textarea:focus, .form-select:focus {
      border-color: var(--border-focus);
      box-shadow: 0 0 0 3px var(--accent-glow);
    }

    .modal-footer {
      padding: 20px 28px;
      border-top: 1px solid var(--border-subtle);
      background: rgba(0, 0, 0, 0.2);
      display: flex;
      justify-content: flex-end;
      gap: 12px;
    }

    .btn-secondary {
      background: transparent;
      border: 1px solid var(--border-subtle);
      color: var(--text-muted);
      font-weight: 500;
      font-size: 14px;
      padding: 10px 18px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-main);
      border-color: rgba(255, 255, 255, 0.15);
    }

    /* Toast Notification */
    .toast {
      position: fixed;
      bottom: 32px;
      right: 32px;
      background: var(--bg-card);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--border-subtle);
      padding: 14px 20px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      gap: 12px;
      box-shadow: var(--glass-shadow-hover);
      color: var(--text-main);
      font-size: 14px;
      transform: translateY(80px);
      opacity: 0;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 2000;
    }

    .toast.show {
      transform: translateY(0);
      opacity: 1;
    }

    .toast-icon {
      color: var(--accent);
      display: flex;
    }

    /* Animations */
    @keyframes fadeIn {
      0% {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .svg-icon {
      width: 18px;
      height: 18px;
      stroke-width: 2;
      vertical-align: middle;
    }

    .svg-icon-lg {
      width: 20px;
      height: 20px;
    }