    .tg-rewriter {
      max-width: 800px;
      margin: 0 auto;
      font-family: 'Segoe UI', system-ui, sans-serif;
    }
    
    .tg-card {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.08);
      overflow: hidden;
      margin-bottom: 24px;
      border: none;
    }
    
    .tg-card-header {
      background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
      color: white;
      padding: 16px 20px;
      font-weight: 600;
      font-size: 1.1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .tg-tabs {
      display: flex;
      border-bottom: 1px solid #e9ecef;
      padding: 0 20px;
    }
    
    .tg-tab {
      padding: 12px 20px;
      cursor: pointer;
      font-weight: 500;
      color: #6c757d;
      position: relative;
      transition: all 0.3s ease;
    }
    
    .tg-tab.active {
      color: #2575fc;
      font-weight: 600;
    }
    
    .tg-tab.active::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      width: 100%;
      height: 3px;
      background: #2575fc;
      border-radius: 3px 3px 0 0;
    }
    
    .tg-textarea-container {
      position: relative;
    }
    
    .tg-textarea {
      height: 450px;
      border: none !important;
      padding: 20px !important;
      font-size: 16px;
      background: #fafbff;
      resize: none;
      width: 100%;
      display: none;
    }
    
    .tg-textarea.active {
      display: block;
    }
    
    .tg-textarea:focus {
      box-shadow: none !important;
      background: #fff;
    }
    
    .tg-actions {
      display: flex;
      gap: 12px;
      padding: 12px 20px;
      background: #f8f9ff;
      border-top: 1px solid #edf2ff;
    }
    
    .tg-btn {
      flex: 1;
      border-radius: 8px !important;
      padding: 10px 16px !important;
      font-weight: 500;
      transition: all 0.3s ease;
    }
    
    .tg-rewrite-btn {
      background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
      border: none;
      font-size: 1.05rem;
      padding: 14px !important;
      position: relative;
      overflow: hidden;
    }
    
    .tg-rewrite-btn:disabled {
      opacity: 0.9;
    }
    
    .tg-rewrite-btn::after {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 80%
      );
      transform: rotate(30deg);
      animation: tg-shine 2s infinite;
    }
    
    @keyframes tg-shine {
      0% { left: -50%; }
      100% { left: 150%; }
    }
    
    .tg-pulse {
      animation: tg-pulse 1.5s infinite;
    }
    
    @keyframes tg-pulse {
      0% { opacity: 0.8; }
      50% { opacity: 0.4; }
      100% { opacity: 0.8; }
    }
    
    .tg-queue {
      background: #fff9db;
      color: #e67700;
      border-radius: 8px;
      padding: 10px 16px;
      font-weight: 500;
      margin: 16px 20px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .tg-status {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 500;
      color: #495057;
    }
    
    .tg-spinner {
      width: 20px;
      height: 20px;
      border: 3px solid rgba(37, 117, 252, 0.2);
      border-top: 3px solid #2575fc;
      border-radius: 50%;
      animation: tg-spin 1s linear infinite;
    }
    
    @keyframes tg-spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    .tg-copied-tooltip {
      position: fixed;
      background: #4caf50;
      color: white;
      padding: 8px 16px;
      border-radius: 6px;
      font-size: 14px;
      z-index: 9999;
      pointer-events: none;
      transform: translate(-50%, -100%);
      animation: tg-fade 1.5s forwards;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    @keyframes tg-fade {
      0% { opacity: 0; transform: translate(-50%, -80%); }
      20% { opacity: 1; transform: translate(-50%, -100%); }
      80% { opacity: 1; transform: translate(-50%, -100%); }
      100% { opacity: 0; transform: translate(-50%, -120%); }
    }
    
    .tg-word-count {
      background: rgba(255,255,255,0.2);
      border-radius: 20px;
      padding: 2px 12px;
      font-size: 0.9rem;
    }
    
    .tg-tab-badge {
      background: rgba(255,255,255,0.2);
      border-radius: 20px;
      padding: 2px 8px;
      font-size: 0.8rem;
      margin-left: 6px;
    }