 :root{
      --brand:#7D26C2;
      --brand-light:#9d53e6;
      --brand-lightest:#f5eeff;
      --brand-gradient:linear-gradient(135deg, #7D26C2, #9d53e6);
      --bg:#f8f5ff;
      --muted:#6c757d;
      --dark:#2c2c2c;
      --card-radius:20px;
      --shadow-sm:0 5px 15px rgba(125, 38, 194, 0.08);
      --shadow:0 10px 30px rgba(125, 38, 194, 0.12);
      --shadow-lg:0 15px 40px rgba(125, 38, 194, 0.15);
    }

    body{
      background: var(--bg);
      color: #333;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    /* Brand elements */
    .brand-badge{
      background: var(--brand-gradient);
      color:#fff;
      padding:.5rem 1rem;
      border-radius:50px;
      font-size:.85rem;
      font-weight:600;
      display:inline-flex;
      align-items:center;
      gap:.4rem;
      white-space:nowrap;
      box-shadow: var(--shadow-sm);
    }

    .brand-logo{
      width:80px;
      height:80px;
      border-radius:12px;
      background:#fff;
      display:grid;
      place-items:center;
      box-shadow:var(--shadow);
      overflow:hidden;
      border:2px solid white;
    }

    /* Layout */
    .page-shell{
      max-width: 1200px;
      margin: 0 auto;
    }

    .app-card{
      border:0;
      border-radius: var(--card-radius);
      box-shadow: var(--shadow);
      background: white;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .app-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
    }

    /* Search */
    .search-container {
      position: relative;
      margin-bottom: 2rem;
    }
    .search-input{
      border-radius: 16px;
      padding-left: 52px;
      height: 56px;
      border: 2px solid #e8e0ff;
      font-size: 1rem;
      background: white;
      transition: all 0.3s ease;
    }
    .search-input:focus {
      border-color: var(--brand);
      box-shadow: 0 0 0 4px rgba(125, 38, 194, 0.1);
    }
    .search-icon{
      position:absolute;
      left:20px;
      top:50%;
      transform:translateY(-50%);
      color: var(--muted);
      font-size: 1.2rem;
    }

    /* Hero Section */
    .hero{
      background: var(--brand-gradient);
      border-radius: var(--card-radius);
      overflow:hidden;
      margin-bottom: 3rem;
      position: relative;
      color: white;
      padding: 2rem;
    }
    .hero::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><g fill="white" fill-opacity="0.05"><circle cx="400" cy="400" r="600"/><circle cx="400" cy="400" r="500"/><circle cx="400" cy="400" r="300"/></g></svg>');
    }
    .hero-content {
      position: relative;
      z-index: 2;
    }
    .hero h1 {
      font-weight: 800;
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }
    .hero p {
      font-size: 1.1rem;
      opacity: 0.9;
      margin-bottom: 2rem;
    }

    /* Buttons */
    .btn-brand{
      background: var(--brand-gradient);
      color:#fff;
      border:0;
      border-radius: 14px;
      padding: .75rem 1.5rem;
      font-weight:700;
      transition: all 0.3s ease;
      box-shadow: var(--shadow-sm);
    }
    .btn-brand:hover{ 
      transform: translateY(-2px);
      box-shadow: var(--shadow);
      color:#fff; 
    }
    .btn-brand:active{
      transform: translateY(0);
    }

    .btn-outline-brand {
      border: 2px solid var(--brand);
      color: var(--brand);
      border-radius: 14px;
      padding: .75rem 1.5rem;
      font-weight: 700;
      transition: all 0.3s ease;
    }
    .btn-outline-brand:hover {
      background: var(--brand);
      color: white;
    }

    /* Sections */
    .section-title{
      font-weight:800;
      color: var(--dark);
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
    }
    .section-subtitle {
      color: var(--muted);
      margin-bottom: 1.5rem;
    }
    .view-all{
      color: var(--brand);
      font-weight:700;
      text-decoration:none;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }
    .view-all:hover{ 
      text-decoration:underline;
      color: var(--brand-light);
    }

    /* Horizontal scroll rows */
    .h-scroll{
      display:flex;
      gap:20px;
      overflow-x:auto;
      padding: 20px 5px 30px;
      scroll-snap-type:x mandatory;
      -webkit-overflow-scrolling:touch;
    }
    .h-scroll > *{
      scroll-snap-align:start;
      flex: 0 0 auto;
    }
    .h-scroll::-webkit-scrollbar{ height: 8px; }
    .h-scroll::-webkit-scrollbar-track{ background: rgba(125, 38, 194, 0.05); border-radius: 10px; }
    .h-scroll::-webkit-scrollbar-thumb{ background: rgba(125, 38, 194, 0.3); border-radius: 10px; }
    .h-scroll::-webkit-scrollbar-thumb:hover{ background: rgba(125, 38, 194, 0.5); }

    /* Mini Cards */
    .mini-card{
      width: 280px;
      border-radius: var(--card-radius);
      background:#fff;
      box-shadow: var(--shadow);
      border:0;
      transition: all 0.3s ease;
    }
    .mini-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-lg);
    }
    .mini-card .price{
      font-weight:800;
      color:#222;
      font-size: 1.5rem;
    }
    .mini-card .duration {
      color: var(--muted);
      font-size: 0.9rem;
    }

    /* Icon Tiles */
    .icon-tile{
      background:#fff;
      border: 2px solid rgba(125, 38, 194, 0.1);
      border-radius: var(--card-radius);
      padding: 1.5rem;
      height: 100%;
      box-shadow: var(--shadow-sm);
      display:flex;
      align-items:center;
      gap:1rem;
      transition: all 0.3s ease;
    }
    .icon-tile:hover {
      border-color: var(--brand);
      transform: translateY(-5px);
      box-shadow: var(--shadow);
    }
    .icon-wrap{
      width:56px;
      height:56px;
      border-radius:18px;
      display:grid;
      place-items:center;
      background: var(--brand-gradient);
      color: white;
      flex:0 0 auto;
      font-size: 1.5rem;
    }
    .tile-text{
      font-weight:800;
      color: var(--dark);
      line-height:1.2;
      font-size:1rem;
    }
    .tile-description {
      color: var(--muted);
      font-size: 0.9rem;
      margin-top: 0.25rem;
    }

    /* Issue Pills */
    .issue-pill{
      background:#fff;
      border:2px solid rgba(125, 38, 194, 0.1);
      border-radius: var(--card-radius);
      padding: 1.25rem;
      display:flex;
      gap:1rem;
      align-items:center;
      width: 280px;
      box-shadow: var(--shadow-sm);
      transition: all 0.3s ease;
    }
    .issue-pill:hover {
      border-color: var(--brand);
      transform: translateY(-5px);
      box-shadow: var(--shadow);
    }
    .issue-thumb{
      width:56px;
      height:56px;
      border-radius:18px;
      background: var(--brand-gradient);
      display:grid;
      place-items:center;
      color: white;
      font-size:1.5rem;
      overflow:hidden;
      flex:0 0 auto;
    }
    .issue-name{
      font-weight:800;
      margin:0;
      font-size:1rem;
    }

    /* Lawyer Cards */
    .lawyer-card{
      border:0;
      border-radius: var(--card-radius);
      box-shadow: var(--shadow);
      overflow:hidden;
      transition: all 0.3s ease;
    }
    .lawyer-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-lg);
    }
    .lawyer-avatar{
      width:70px;
      height:70px;
      border-radius:20px;
      object-fit:cover;
      background:#eee;
      flex:0 0 auto;
      border: 3px solid white;
      box-shadow: var(--shadow-sm);
    }
    .lawyer-name{ 
      font-weight:900; 
      margin:0; 
      font-size: 1.25rem;
      color: var(--dark);
    }
    .lawyer-role{ 
      color: var(--brand); 
      font-weight:600; 
      font-size:.9rem;
      background: rgba(125, 38, 194, 0.1);
      padding: 0.25rem 0.75rem;
      border-radius: 50px;
      display: inline-block;
      margin-top: 0.5rem;
    }
    .lawyer-experience {
      color: var(--muted);
      font-size: 0.9rem;
      margin: 0.5rem 0;
    }
    .lawyer-fee{ 
      font-weight:900; 
      font-size: 1.5rem;
      color: var(--dark);
    }

    /* Rating */
    .rating {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      background: rgba(255, 193, 7, 0.1);
      padding: 0.25rem 0.75rem;
      border-radius: 50px;
      color: #ffc107;
      font-weight: 600;
      font-size: 0.9rem;
    }

    /* Desktop Navigation */
    .desktop-nav {
      display: none;
    }
    @media (min-width: 992px) {
      .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
      }
      .nav-link {
        color: var(--dark);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
        position: relative;
      }
      .nav-link:hover {
        color: var(--brand);
      }
      .nav-link.active {
        color: var(--brand);
      }
      .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--brand-gradient);
        border-radius: 3px;
      }
    }

    /* Bottom Navigation (Mobile) */
    .bottom-nav{
      position: fixed;
      left: 0; right: 0; bottom: 0;
      background:#fff;
      border-top: 2px solid rgba(125, 38, 194, 0.1);
      padding: 1rem 1rem 1.25rem;
      z-index: 1030;
      box-shadow: 0 -5px 20px rgba(125, 38, 194, 0.1);
    }
    .bottom-nav a{
      color: #9aa0a6;
      text-decoration:none;
      font-weight:700;
      font-size:.85rem;
      display:flex;
      flex-direction:column;
      align-items:center;
      gap:6px;
      transition: color 0.3s ease;
    }
    .bottom-nav a.active{
      color: var(--brand);
    }
    .bottom-nav a .bi {
      font-size: 1.5rem;
    }

    /* Responsive Adjustments */
    @media (min-width: 992px){
      .bottom-nav{ display:none; }
      body{ padding-bottom: 0; }
      .hero {
        padding: 3rem;
      }
      .hero h1 {
        font-size: 3rem;
      }
      .section-title {
        font-size: 2rem;
      }
    }

    @media (max-width: 991.98px){
      body{ padding-bottom: 88px; }
      .hero {
        text-align: center;
        padding: 2rem 1.5rem;
      }
      .hero h1 {
        font-size: 2rem;
      }
      .hero-actions {
        flex-direction: column;
        gap: 1rem;
      }
      .hero-actions .btn {
        width: 100%;
      }
    }

    /* Footer */
    .footer {
      margin-top: 4rem;
      padding: 2rem 0;
      border-top: 2px solid rgba(125, 38, 194, 0.1);
      text-align: center;
      color: var(--muted);
      font-size: 0.9rem;
    }

    /* Utility Classes */
    .text-brand {
      color: var(--brand) !important;
    }
    .bg-brand-light {
      background: var(--brand-lightest) !important;
    }
    .border-brand {
      border-color: rgba(125, 38, 194, 0.2) !important;
    }



    /* Mobile Navigation */
    .bottom-nav{
      position: fixed;
      left: 0; right: 0; bottom: 0;
      background:#fff;
      border-top: 2px solid rgba(125, 38, 194, 0.1);
      padding: 1rem 1rem 1.25rem;
      z-index: 1030;
      box-shadow: 0 -5px 20px rgba(125, 38, 194, 0.1);
    }
    .bottom-nav a{
      color: #9aa0a6;
      text-decoration:none;
      font-weight:700;
      font-size:.85rem;
      display:flex;
      flex-direction:column;
      align-items:center;
      gap:6px;
      transition: color 0.3s ease;
    }
    .bottom-nav a.active{
      color: var(--brand);
    }
    .bottom-nav a .bi {
      font-size: 1.5rem;
    }

    /* Footer */
    .footer{
      background: white;
      border-top: 2px solid rgba(125, 38, 194, 0.1);
      padding: 4rem 0 2rem;
      margin-top: 4rem;
    }
    
    .footer-links{
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .footer-links li{
      margin-bottom: 0.75rem;
    }
    
    .footer-links a{
      color: var(--muted);
      text-decoration: none;
      transition: color 0.3s ease;
    }
    
    .footer-links a:hover{
      color: var(--brand);
    }
    
    .social-links{
      display: flex;
      gap: 1rem;
      margin-top: 1.5rem;
    }
    
    .social-icon{
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--brand-lightest);
      display: grid;
      place-items: center;
      color: var(--brand);
      text-decoration: none;
      transition: all 0.3s ease;
    }
    
    .social-icon:hover{
      background: var(--brand-gradient);
      color: white;
      transform: translateY(-3px);
    }
    
    .copyright{
      text-align: center;
      padding-top: 2rem;
      margin-top: 2rem;
      border-top: 1px solid rgba(125, 38, 194, 0.1);
      color: var(--muted);
      font-size: 0.9rem;
    }

    /* Responsive */
    @media (min-width: 992px){
      .bottom-nav{ display:none; }
      body{ padding-bottom: 0; }
      .hero-section{
        padding: 4rem 3rem;
        margin: 3rem 0 5rem;
      }
      .feature-section{
        padding: 4rem 3rem;
      }
    }

    @media (max-width: 991.98px){
      body{ padding-bottom: 88px; }
      .hero-section{
        padding: 2rem 1.5rem;
        text-align: center;
      }
      .feature-section{
        padding: 2rem 1.5rem;
      }
      .feature-image-container{
        margin-top: 2rem;
        min-height: 300px;
      }
    }

    /* Paragraph styling */
    .content-paragraph {
      margin-bottom: 1.5rem;
      color: #555;
    }
    
    .section-title {
      color: var(--dark);
      margin-bottom: 1.5rem;
      font-weight: 700;
    }
    
    .benefit-title {
      color: var(--brand);
      margin-bottom: 1rem;
      font-weight: 600;
    }
    
    .stat-badge{
      display: inline-block;
      background: var(--brand-gradient);
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 50px;
      font-weight: 600;
      font-size: 0.9rem;
      margin-right: 0.5rem;
      margin-bottom: 0.5rem;
    }
    
    .rating {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      background: rgba(255, 193, 7, 0.1);
      padding: 0.25rem 0.75rem;
      border-radius: 50px;
      color: #ffc107;
      font-weight: 600;
      font-size: 0.9rem;
    }
